Home
last modified time | relevance | path

Searched refs:response_code (Results 1 – 25 of 254) sorted by relevance

1234567891011

/external/chromium_org/components/feedback/
Dfeedback_uploader_delegate.cc38 int response_code = source->GetResponseCode(); in OnURLFetchComplete() local
39 if (response_code == kHttpPostSuccessNoContent) { in OnURLFetchComplete()
44 if (response_code == kHttpPostFailNoConnection) { in OnURLFetchComplete()
46 } else if ((response_code > kHttpPostFailClientError) && in OnURLFetchComplete()
47 (response_code < kHttpPostFailServerError)) { in OnURLFetchComplete()
48 error_stream << "Client error: HTTP response code " << response_code; in OnURLFetchComplete()
49 } else if (response_code > kHttpPostFailServerError) { in OnURLFetchComplete()
50 error_stream << "Server error: HTTP response code " << response_code; in OnURLFetchComplete()
52 error_stream << "Unknown error: HTTP response code " << response_code; in OnURLFetchComplete()
/external/chromium_org/tools/python/google/
Dgethash_timer.py50 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): argument
102 output_list = (sample_count, response_code, elapsed_time)
/external/chromium_org/chrome/browser/safe_browsing/
Dtwo_phase_uploader.cc50 void Finish(int net_error, int response_code, const std::string& response);
99 int response_code = source->GetResponseCode(); in OnURLFetchComplete() local
102 << " " << status.status() << " " << response_code; in OnURLFetchComplete()
107 Finish(status.error(), response_code, std::string()); in OnURLFetchComplete()
117 if (response_code != 201) { in OnURLFetchComplete()
119 << response_code; in OnURLFetchComplete()
120 Finish(net::OK, response_code, response); in OnURLFetchComplete()
127 Finish(net::OK, response_code, std::string()); in OnURLFetchComplete()
136 if (response_code != 200) { in OnURLFetchComplete()
138 << response_code; in OnURLFetchComplete()
[all …]
/external/chromium_org/device/test/
Dusb_test_gadget_impl.cc218 const int response_code = SimplePOSTRequest(url, form_data); in FindUnclaimed() local
220 if (response_code == 200) { in FindUnclaimed()
227 if (response_code != 403) { in FindUnclaimed()
228 LOG(WARNING) << "Unexpected HTTP " << response_code << " from /claim."; in FindUnclaimed()
256 const int response_code = url_fetcher->GetResponseCode(); in GetVersion() local
257 if (response_code != 200) { in GetVersion()
258 VLOG(2) << "Unexpected HTTP " << response_code << " from /version."; in GetVersion()
301 const int response_code = url_fetcher->GetResponseCode(); in Update() local
302 if (response_code != 200) { in Update()
303 LOG(ERROR) << "Unexpected HTTP " << response_code << " from /update."; in Update()
[all …]
/external/chromium_org/components/captive_portal/
Dcaptive_portal_detector_unittest.cc92 EXPECT_EQ(expected_results.response_code, in RunTest()
93 client.captive_portal_results().response_code); in RunTest()
127 results.response_code = 204; in TEST_F()
133 results.response_code = 500; in TEST_F()
138 results.response_code = net::URLFetcher::RESPONSE_CODE_INVALID; in TEST_F()
145 results.response_code = 200; in TEST_F()
151 results.response_code = 511; in TEST_F()
163 results.response_code = 503; in TEST_F()
168 results.response_code = 204; in TEST_F()
191 results.response_code = 503; in TEST_F()
[all …]
Dcaptive_portal_detector.cc82 results->response_code = url_fetcher->GetResponseCode(); in GetCaptivePortalResultFromResponse()
94 if (results->response_code == 503) { in GetCaptivePortalResultFromResponse()
118 if (results->response_code == 511) { in GetCaptivePortalResultFromResponse()
124 if (results->response_code >= 400 || results->response_code < 200) in GetCaptivePortalResultFromResponse()
128 if (results->response_code == 204) { in GetCaptivePortalResultFromResponse()
/external/chromium_org/sync/internal_api/
Dhttp_bridge_unittest.cc171 int response_code = 0; in RunSyncThreadBridgeUseTest() local
172 bridge->MakeSynchronousPost(&os_error, &response_code); in RunSyncThreadBridgeUseTest()
199 int response_code = 0; in TEST_F() local
200 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code); in TEST_F()
202 EXPECT_EQ(200, response_code); in TEST_F()
223 int response_code = 0; in TEST_F() local
224 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code); in TEST_F()
226 EXPECT_EQ(200, response_code); in TEST_F()
248 int response_code = 0; in TEST_F() local
249 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code); in TEST_F()
[all …]
Dsyncapi_server_connection_manager.cc52 int response_code = 0; in Init() local
53 if (!http->MakeSynchronousPost(&error_code, &response_code)) { in Init()
61 response->response_code = response_code; in Init()
66 if (response->response_code < 400) in Init()
68 else if (response->response_code == net::HTTP_UNAUTHORIZED) in Init()
/external/chromium_org/google_apis/gaia/
Dgaia_auth_fetcher.cc771 int response_code) { in OnClientLoginFetched() argument
772 if (status.is_success() && response_code == net::HTTP_OK) { in OnClientLoginFetched()
788 int response_code) { in OnIssueAuthTokenFetched() argument
789 if (status.is_success() && response_code == net::HTTP_OK) { in OnIssueAuthTokenFetched()
803 int response_code) { in OnClientLoginToOAuth2Fetched() argument
804 if (status.is_success() && response_code == net::HTTP_OK) { in OnClientLoginToOAuth2Fetched()
823 int response_code) { in OnOAuth2TokenPairFetched() argument
829 if (status.is_success() && response_code == net::HTTP_OK) { in OnOAuth2TokenPairFetched()
851 int response_code) { in OnOAuth2RevokeTokenFetched() argument
857 int response_code) { in OnListAccountsFetched() argument
[all …]
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 …]
Dgaia_oauth_client_unittest.cc35 MockOAuthFetcher(int response_code, in MockOAuthFetcher() argument
47 set_response_code(response_code); in MockOAuthFetcher()
106 void set_response_code(int response_code) { in set_response_code() argument
107 response_code_ = response_code; in set_response_code()
208 MOCK_METHOD1(OnNetworkError, void(int response_code));
236 int response_code = net::HTTP_INTERNAL_SERVER_ERROR; in TEST_F() local
239 EXPECT_CALL(delegate, OnNetworkError(response_code)) in TEST_F()
243 factory.set_response_code(response_code); in TEST_F()
251 int response_code = net::HTTP_INTERNAL_SERVER_ERROR; in TEST_F() local
258 factory.set_response_code(response_code); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/omnibox/
Domnibox_navigation_observer.cc30 bool ResponseCodeIndicatesSuccess(int response_code) { in ResponseCodeIndicatesSuccess() argument
31 return ((response_code / 100) == 2) || (response_code == 401) || in ResponseCodeIndicatesSuccess()
32 (response_code == 407); in ResponseCodeIndicatesSuccess()
131 int response_code = source->GetResponseCode(); in OnURLFetchComplete() local
133 (status.is_success() && ResponseCodeIndicatesSuccess(response_code)) || in OnURLFetchComplete()
135 ((response_code / 100) == 3) && in OnURLFetchComplete()
/external/chromium_org/chrome/browser/chromeos/net/
Dnetwork_portal_detector_impl.cc149 : result(captive_portal::RESULT_COUNT), response_code(-1) { in DetectionAttemptCompletedReport()
156 int response_code) in DetectionAttemptCompletedReport() argument
160 response_code(response_code) { in DetectionAttemptCompletedReport()
172 << "response_code=" << response_code; in Report()
178 response_code), in Report()
185 result == o.result && response_code == o.response_code; in Equals()
483 int response_code = results.response_code; in OnAttemptCompleted() local
493 response_code = 200; in OnAttemptCompleted()
497 default_network_name_, default_network_id_, result, response_code); in OnAttemptCompleted()
507 state.response_code = response_code; in OnAttemptCompleted()
[all …]
Dnetwork_portal_notification_controller_unittest.cc103 wifi_state.response_code = 204; in TEST_F()
109 wifi_state.response_code = 200; in TEST_F()
115 wifi_state.response_code = 204; in TEST_F()
124 wifi1_state.response_code = 200; in TEST_F()
139 wifi2_state.response_code = 204; in TEST_F()
155 portal_state.response_code = 200; in TEST_F()
/external/chromium_org/net/url_request/
Durl_request_throttler_test_support.cc27 int response_code) in MockURLRequestThrottlerHeaderAdapter() argument
28 : fake_response_code_(response_code) { in MockURLRequestThrottlerHeaderAdapter()
34 int response_code) in MockURLRequestThrottlerHeaderAdapter() argument
37 fake_response_code_(response_code) { in MockURLRequestThrottlerHeaderAdapter()
/external/chromium_org/components/rappor/
Dlog_uploader.cc108 const int response_code = source->GetResponseCode(); in OnURLFetchComplete() local
116 DCHECK_EQ(-1, response_code); in OnURLFetchComplete()
119 UMA_HISTOGRAM_SPARSE_SLOWLY("Rappor.UploadResponseCode", response_code); in OnURLFetchComplete()
122 const bool upload_succeeded = response_code == 200; in OnURLFetchComplete()
128 } else if (response_code == 400) { in OnURLFetchComplete()
143 const bool server_is_healthy = upload_succeeded || response_code == 400; in OnURLFetchComplete()
/external/chromium_org/components/copresence/rpc/
Dhttp_post.cc83 int response_code = source->GetResponseCode(); in OnURLFetchComplete() local
86 if (response_code < 0) { in OnURLFetchComplete()
93 } else if (response_code != net::HTTP_OK) { in OnURLFetchComplete()
95 << response_code << ". Response:\n" << response; in OnURLFetchComplete()
99 response_callback_.Run(response_code, response); in OnURLFetchComplete()
Dhttp_post_unittest.cc41 void TestResponseCallback(int response_code, in TestResponseCallback() argument
43 received_response_code_ = response_code; in TestResponseCallback()
48 bool ResponsePassedThrough(int response_code, const std::string& response) { in ResponsePassedThrough() argument
59 fetcher->set_response_code(response_code); in ResponsePassedThrough()
63 return received_response_code_ == response_code && in ResponsePassedThrough()
/external/chromium_org/components/metrics/net/
Dnet_metrics_log_uploader.cc53 int response_code = source->GetResponseCode(); in OnURLFetchComplete() local
54 if (response_code == net::URLFetcher::RESPONSE_CODE_INVALID) in OnURLFetchComplete()
55 response_code = -1; in OnURLFetchComplete()
56 on_upload_complete_.Run(response_code); in OnURLFetchComplete()
/external/chromium_org/content/child/npapi/
Dplugin_url_fetcher.cc245 int response_code = info.headers->response_code(); in OnReceivedResponse() local
246 if (response_code == 206) { in OnReceivedResponse()
273 } else if (response_code == 200) { in OnReceivedResponse()
292 int response_code = info.headers->response_code(); in OnReceivedResponse() local
293 headers = base::StringPrintf("HTTP %d ", response_code); in OnReceivedResponse()
311 (response_code < 100 || response_code >= 400)) { in OnReceivedResponse()
/external/chromium_org/net/tools/quic/
Dquic_in_memory_cache_test.cc50 const StringPiece& response_code, in AddToCache() argument
58 response_code, in AddToCache()
89 EXPECT_EQ("200", response->headers().response_code()); in TEST_F()
95 EXPECT_EQ("200", response->headers().response_code()); in TEST_F()
108 EXPECT_EQ("200", response->headers().response_code()); in TEST_F()
122 EXPECT_EQ("200", response->headers().response_code()); in TEST_F()
/external/chromium_org/content/browser/appcache/
Dappcache_update_job.cc42 int response_code) { in FormatUrlErrorMessage() argument
44 int code = response_code; in FormatUrlErrorMessage()
178 int response_code = -1; in OnResponseStarted() local
180 response_code = request->GetResponseCode(); in OnResponseStarted()
183 if ((response_code / 100) == 2) { in OnResponseStarted()
218 if (response_code > 0) in OnResponseStarted()
522 int response_code = -1; in HandleManifestFetchCompleted() local
525 response_code = request->GetResponseCode(); in HandleManifestFetchCompleted()
526 is_valid_response_code = (response_code / 100 == 2); in HandleManifestFetchCompleted()
541 } else if (response_code == 304 && update_type_ == UPGRADE_ATTEMPT) { in HandleManifestFetchCompleted()
[all …]
/external/chromium_org/components/data_reduction_proxy/common/
Ddata_reduction_proxy_headers.cc220 if (headers->response_code() == net::HTTP_INTERNAL_SERVER_ERROR) in GetDataReductionProxyBypassType()
222 if (headers->response_code() == net::HTTP_BAD_GATEWAY) in GetDataReductionProxyBypassType()
224 if (headers->response_code() == net::HTTP_SERVICE_UNAVAILABLE) in GetDataReductionProxyBypassType()
228 if (headers->response_code() == net::HTTP_PROXY_AUTHENTICATION_REQUIRED && in GetDataReductionProxyBypassType()
233 (headers->response_code() != net::HTTP_NOT_MODIFIED)) { in GetDataReductionProxyBypassType()
241 if (headers->response_code() >= net::HTTP_BAD_REQUEST && in GetDataReductionProxyBypassType()
242 headers->response_code() < net::HTTP_INTERNAL_SERVER_ERROR) { in GetDataReductionProxyBypassType()
/external/chromium_org/sync/test/fake_server/
Dfake_server_http_post_provider.cc69 int response_code, in OnPostComplete() argument
72 post_response_code_ = response_code; in OnPostComplete()
78 int* response_code) { in MakeSynchronousPost() argument
89 *response_code = post_response_code_; in MakeSynchronousPost()
/external/chromium_org/chromeos/network/portal_detector/
Dnetwork_portal_detector.h34 response_code(net::URLFetcher::RESPONSE_CODE_INVALID) { in CaptivePortalState()
38 return status == o.status && response_code == o.response_code;
42 int response_code; member

1234567891011