Searched refs:response_code (Results 1 - 25 of 253) sorted by relevance

1234567891011

/external/chromium_org/components/feedback/
H A Dfeedback_uploader_delegate.cc38 int response_code = source->GetResponseCode(); local
39 if (response_code == kHttpPostSuccessNoContent) {
44 if (response_code == kHttpPostFailNoConnection) {
46 } else if ((response_code > kHttpPostFailClientError) &&
47 (response_code < kHttpPostFailServerError)) {
48 error_stream << "Client error: HTTP response code " << response_code; local
49 } else if (response_code > kHttpPostFailServerError) {
50 error_stream << "Server error: HTTP response code " << response_code; local
52 error_stream << "Unknown error: HTTP response code " << response_code; local
/external/chromium_org/net/url_request/
H A Durl_request_throttler_test_support.cc27 int response_code)
28 : fake_response_code_(response_code) {
34 int response_code)
37 fake_response_code_(response_code) {
26 MockURLRequestThrottlerHeaderAdapter( int response_code) argument
31 MockURLRequestThrottlerHeaderAdapter( const std::string& retry_value, const std::string& opt_out_value, int response_code) argument
H A Durl_request_throttler_header_adapter.cc26 return response_header_->response_code();
H A Durl_request_throttler_test_support.h35 // Constructs mock response headers with the given |response_code| and no
37 explicit MockURLRequestThrottlerHeaderAdapter(int response_code);
39 // Constructs mock response headers with the given |response_code| and
44 int response_code);
/external/chromium_org/tools/python/google/
H A Dgethash_timer.py21 CSV format: sample_number,response_code,elapsed_time_ms
50 response_code = h.getresponse().status
52 return response_code
63 response_code = IssueGetHash(prefix)
64 return response_code, (time.time() - start) * 1000
83 response_code, elapsed_time = TimedGetHash(prefix)
84 LogResponse(sample_count, response_code, elapsed_time)
91 def LogResponse(sample_count, response_code, elapsed_time):
95 response_code: The HTTP response code for the GetHash request.
102 output_list = (sample_count, response_code, elapsed_tim
[all...]
/external/chromium_org/sync/internal_api/
H A Dsyncapi_server_connection_manager.cc52 int response_code = 0; local
53 if (!http->MakeSynchronousPost(&error_code, &response_code)) {
61 response->response_code = response_code;
66 if (response->response_code < 400)
68 else if (response->response_code == net::HTTP_UNAUTHORIZED)
H A Dhttp_bridge_unittest.cc171 int response_code = 0; local
172 bridge->MakeSynchronousPost(&os_error, &response_code);
199 int response_code = 0; local
200 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code);
202 EXPECT_EQ(200, response_code);
223 int response_code = 0; local
224 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code);
226 EXPECT_EQ(200, response_code);
248 int response_code = 0; local
249 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code);
276 int response_code = 0; local
302 int response_code = 0; local
321 int response_code = 0; local
340 int response_code = 0; local
[all...]
/external/chromium_org/components/metrics/net/
H A Dnet_metrics_log_uploader.cc53 int response_code = source->GetResponseCode(); local
54 if (response_code == net::URLFetcher::RESPONSE_CODE_INVALID)
55 response_code = -1;
56 on_upload_complete_.Run(response_code);
/external/chromium_org/chrome/browser/ui/omnibox/
H A Domnibox_navigation_observer.cc30 bool ResponseCodeIndicatesSuccess(int response_code) { argument
31 return ((response_code / 100) == 2) || (response_code == 401) ||
32 (response_code == 407);
131 int response_code = source->GetResponseCode(); local
133 (status.is_success() && ResponseCodeIndicatesSuccess(response_code)) ||
135 ((response_code / 100) == 3) &&
/external/chromium_org/components/copresence/rpc/
H A Dhttp_post.cc83 int response_code = source->GetResponseCode(); local
86 if (response_code < 0) {
93 } else if (response_code != net::HTTP_OK) {
95 << response_code << ". Response:\n" << response;
99 response_callback_.Run(response_code, response);
H A Dhttp_post_unittest.cc41 void TestResponseCallback(int response_code, argument
43 received_response_code_ = response_code;
48 bool ResponsePassedThrough(int response_code, const std::string& response) { argument
59 fetcher->set_response_code(response_code);
63 return received_response_code_ == response_code &&
/external/chromium_org/components/captive_portal/
H A Dcaptive_portal_detector.cc82 results->response_code = url_fetcher->GetResponseCode();
94 if (results->response_code == 503) {
118 if (results->response_code == 511) {
124 if (results->response_code >= 400 || results->response_code < 200)
128 if (results->response_code == 204) {
H A Dcaptive_portal_detector_unittest.cc92 EXPECT_EQ(expected_results.response_code,
93 client.captive_portal_results().response_code);
127 results.response_code = 204;
133 results.response_code = 500;
138 results.response_code = net::URLFetcher::RESPONSE_CODE_INVALID;
145 results.response_code = 200;
151 results.response_code = 511;
163 results.response_code = 503;
168 results.response_code = 204;
191 results.response_code
[all...]
/external/chromium_org/components/rappor/
H A Dlog_uploader.cc108 const int response_code = source->GetResponseCode(); local
116 DCHECK_EQ(-1, response_code);
119 UMA_HISTOGRAM_SPARSE_SLOWLY("Rappor.UploadResponseCode", response_code);
122 const bool upload_succeeded = response_code == 200;
128 } else if (response_code == 400) {
143 const bool server_is_healthy = upload_succeeded || response_code == 400;
/external/chromium_org/chrome/browser/safe_browsing/
H A Dtwo_phase_uploader.cc50 void Finish(int net_error, int response_code, const std::string& response);
99 int response_code = source->GetResponseCode(); local
102 << " " << status.status() << " " << response_code;
107 Finish(status.error(), response_code, std::string());
117 if (response_code != 201) {
119 << response_code;
120 Finish(net::OK, response_code, response);
127 Finish(net::OK, response_code, std::string());
136 if (response_code != 200) {
138 << response_code;
183 Finish(int net_error, int response_code, const std::string& response) argument
[all...]
/external/chromium_org/device/test/
H A Dusb_test_gadget_impl.cc218 const int response_code = SimplePOSTRequest(url, form_data); local
220 if (response_code == 200) {
227 if (response_code != 403) {
228 LOG(WARNING) << "Unexpected HTTP " << response_code << " from /claim.";
256 const int response_code = url_fetcher->GetResponseCode(); local
257 if (response_code != 200) {
258 VLOG(2) << "Unexpected HTTP " << response_code << " from /version.";
301 const int response_code = url_fetcher->GetResponseCode(); local
302 if (response_code != 200) {
303 LOG(ERROR) << "Unexpected HTTP " << response_code << " fro
423 const int response_code = SimplePOSTRequest(url, ""); local
442 const int response_code = SimplePOSTRequest(url, ""); local
471 const int response_code = SimplePOSTRequest(url, ""); local
499 const int response_code = SimplePOSTRequest(url, ""); local
[all...]
/external/chromium_org/chrome/browser/sync/test/
H A Dtest_http_bridge_factory.cc10 int* response_code) {
9 MakeSynchronousPost(int* error_code, int* response_code) argument
/external/chromium_org/chromeos/network/portal_detector/
H A Dnetwork_portal_detector.h34 response_code(net::URLFetcher::RESPONSE_CODE_INVALID) {
38 return status == o.status && response_code == o.response_code;
42 int response_code; member in struct:chromeos::NetworkPortalDetector::CaptivePortalState
/external/chromium_org/sync/internal_api/public/
H A Dhttp_post_provider_interface.h37 virtual bool MakeSynchronousPost(int* error_code, int* response_code) = 0;
/external/chromium_org/sync/test/fake_server/
H A Dfake_server_http_post_provider.cc69 int response_code,
72 post_response_code_ = response_code;
78 int* response_code) {
89 *response_code = post_response_code_;
68 OnPostComplete(int error_code, int response_code, const std::string& response) argument
77 MakeSynchronousPost(int* error_code, int* response_code) argument
/external/chromium_org/chrome/browser/supervised_user/experimental/
H A Dsupervised_user_blacklist_downloader.cc59 int response_code = source->GetResponseCode(); local
60 if (response_code != net::HTTP_OK) {
61 DLOG(WARNING) << "HTTP error " << response_code;
/external/chromium_org/google_apis/gaia/
H A Dgaia_auth_fetcher.h270 int response_code);
274 int response_code);
279 int response_code);
283 int response_code);
287 int response_code);
291 int response_code);
295 int response_code);
299 int response_code);
303 int response_code);
307 int response_code);
[all...]
H A Dgaia_oauth_client_unittest.cc35 MockOAuthFetcher(int response_code, argument
47 set_response_code(response_code);
106 void set_response_code(int response_code) { argument
107 response_code_ = response_code;
208 MOCK_METHOD1(OnNetworkError, void(int response_code));
236 int response_code = net::HTTP_INTERNAL_SERVER_ERROR; local
239 EXPECT_CALL(delegate, OnNetworkError(response_code))
243 factory.set_response_code(response_code);
251 int response_code = net::HTTP_INTERNAL_SERVER_ERROR; local
258 factory.set_response_code(response_code);
267 int response_code = net::HTTP_BAD_REQUEST; local
[all...]
/external/chromium_org/chrome/browser/chromeos/net/
H A Dnetwork_portal_notification_controller_unittest.cc103 wifi_state.response_code = 204;
109 wifi_state.response_code = 200;
115 wifi_state.response_code = 204;
124 wifi1_state.response_code = 200;
139 wifi2_state.response_code = 204;
155 portal_state.response_code = 200;
/external/chromium_org/net/tools/quic/
H A Dquic_in_memory_cache_test.cc50 const StringPiece& response_code,
58 response_code,
89 EXPECT_EQ("200", response->headers().response_code());
95 EXPECT_EQ("200", response->headers().response_code());
108 EXPECT_EQ("200", response->headers().response_code());
122 EXPECT_EQ("200", response->headers().response_code());
47 AddToCache(const StringPiece& method, const StringPiece& path, const StringPiece& version, const StringPiece& response_code, const StringPiece& response_detail, const StringPiece& body) argument

Completed in 761 milliseconds

1234567891011