Searched defs:fetcher (Results 1 - 25 of 126) sorted by relevance

123456

/external/chromium/chrome/browser/chromeos/login/
H A Dclient_login_response_handler.cc35 URLFetcher* fetcher = local
39 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES);
40 fetcher->set_upload_data("application/x-www-form-urlencoded", payload_);
43 fetcher->set_request_context(getter_);
44 fetcher->Start();
46 return fetcher;
H A Dissue_response_handler.cc29 URLFetcher* fetcher = local
31 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES);
34 fetcher->set_request_context(getter_);
35 fetcher->Start();
37 return fetcher;
/external/chromium/chrome/browser/sync/
H A Dsignin_manager_unittest.cc34 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
35 DCHECK(fetcher);
36 DCHECK(fetcher->delegate());
37 fetcher->delegate()->OnURLFetchComplete(
38 fetcher, GURL(GaiaAuthFetcher::kClientLoginUrl),
43 // A new URL fetcher is used for each call.
44 fetcher = factory_.GetFetcherByID(0);
45 DCHECK(fetcher);
46 DCHECK(fetcher->delegate());
47 fetcher
[all...]
/external/chromium_org/chrome/browser/captive_portal/
H A Dtesting_utils.h37 // Sets URL fetcher state and notifies portal detector.
46 net::TestURLFetcher* fetcher() { return factory_.GetFetcherByID(0); } function in class:captive_portal::CaptivePortalDetectorTestBase
/external/chromium_org/third_party/WebKit/Source/core/xml/parser/
H A DXMLDocumentParserScope.cpp33 XMLDocumentParserScope::XMLDocumentParserScope(ResourceFetcher* fetcher) argument
39 currentFetcher = fetcher;
42 XMLDocumentParserScope::XMLDocumentParserScope(ResourceFetcher* fetcher, xmlGenericErrorFunc genericErrorFunc, xmlStructuredErrorFunc structuredErrorFunc, void* errorContext) argument
48 currentFetcher = fetcher;
/external/chromium_org/chrome/browser/extensions/api/feedback_private/
H A Dfeedback_service_chromeos.cc58 chromeos::AboutSystemLogsFetcher* fetcher = local
60 fetcher->Fetch(base::Bind(&FeedbackServiceImpl::ProcessSystemLogs,
/external/chromium_org/chrome/browser/extensions/api/log_private/
H A Dlog_private_api_chromeos.cc64 chromeos::AboutSystemLogsFetcher* fetcher = local
66 fetcher->Fetch(
/external/chromium_org/content/browser/device_orientation/
H A Ddata_fetcher_impl_android_unittest.cc53 FakeDataFetcherImplAndroid fetcher; local
54 fetcher.SetNumberActiveDeviceMotionSensors(3);
56 fetcher.StartFetchingDeviceMotionData(buffer_.get());
59 fetcher.GotAcceleration(0, 0, 1, 2, 3);
62 fetcher.GotAccelerationIncludingGravity(0, 0, 1, 2, 3);
65 fetcher.GotRotationRate(0, 0, 1, 2, 3);
69 fetcher.StopFetchingDeviceMotionData();
75 FakeDataFetcherImplAndroid fetcher; local
76 fetcher.SetNumberActiveDeviceMotionSensors(2);
78 fetcher
94 FakeDataFetcherImplAndroid fetcher; local
[all...]
H A Ddata_fetcher_impl_win.cc28 explicit SensorEventSink(DataFetcherImplWin* const fetcher) argument
29 : fetcher_(fetcher) {}
107 scoped_ptr<DataFetcherImplWin> fetcher(new DataFetcherImplWin);
108 if (fetcher->Initialize())
109 return fetcher.release();
/external/chromium_org/content/browser/gamepad/
H A Dgamepad_service.cc19 GamepadService::GamepadService(scoped_ptr<GamepadDataFetcher> fetcher) argument
21 provider_(new GamepadProvider(fetcher.Pass())) {
/external/chromium_org/content/browser/speech/
H A Dgoogle_one_shot_remote_engine_unittest.cc24 // Creates a speech recognition request and invokes its URL fetcher delegate
64 net::TestURLFetcher* fetcher = url_fetcher_factory_.GetFetcherByID(0); local
65 ASSERT_TRUE(fetcher);
67 fetcher->set_url(fetcher->GetOriginalURL());
71 fetcher->set_status(status);
72 fetcher->set_response_code(success ? 200 : 500);
73 fetcher->SetResponseString(http_response);
75 fetcher->delegate()->OnURLFetchComplete(fetcher);
[all...]
/external/chromium_org/third_party/WebKit/Source/core/xml/
H A DXSLImportRule.cpp76 ResourceFetcher* fetcher = 0; local
86 fetcher = rootSheet->fetcher();
101 FetchRequest request(ResourceRequest(fetcher->document()->completeURL(absHref)), FetchInitiatorTypeNames::xml);
102 m_resource = fetcher->requestXSLStyleSheet(request);
/external/chromium_org/chrome/browser/chromeos/login/
H A Deula_browsertest.cc36 scoped_ptr<net::FakeURLFetcher> fetcher(
38 OnRequestCreate(url, fetcher.get());
39 return fetcher.Pass();
45 void AddMimeHeader(const GURL& url, net::FakeURLFetcher* fetcher) { argument
49 fetcher->set_response_headers(download_headers);
/external/chromium/webkit/glue/
H A Dresource_fetcher_unittest.cc105 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcher(
118 fetcher.reset(new ResourceFetcher(url, frame,
138 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcher(
156 // Grab a page that takes at least 1 sec to respond, but set the fetcher to
160 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcherWithTimeout(
176 void SetFetcher(ResourceFetcher* fetcher) { argument
177 fetcher_.reset(fetcher);
197 // Grab a page that takes at least 1 sec to respond, but set the fetcher to
201 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcherWithTimeout(
204 delegate->SetFetcher(fetcher
[all...]
/external/chromium_org/chrome/browser/chromeos/attestation/
H A Dattestation_ca_client.cc70 DCHECK(result) << "Invalid fetcher setting.";
80 net::URLFetcher* fetcher = net::URLFetcher::Create(0, local
84 fetcher->SetRequestContext(g_browser_process->system_request_context());
85 fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
88 fetcher->SetUploadData(kMimeContentType, request);
89 pending_requests_[fetcher] = on_response;
90 fetcher->Start();
H A Dattestation_ca_client_unittest.cc44 net::TestURLFetcher* fetcher = url_fetcher_factory_.GetFetcherByID(0); local
45 CHECK(fetcher);
46 fetcher->set_status(net::URLRequestStatus(status, 0));
47 fetcher->set_response_code(response_code);
48 fetcher->SetResponseString(fetcher->upload_data() + "_response");
49 fetcher->delegate()->OnURLFetchComplete(fetcher);
/external/chromium_org/chrome/browser/
H A Dintranet_redirect_detector.cc85 net::URLFetcher* fetcher = net::URLFetcher::Create( local
88 fetcher->SetLoadFlags(net::LOAD_DISABLE_CACHE |
91 fetcher->SetRequestContext(g_browser_process->system_request_context());
92 fetcher->Start();
93 fetchers_.insert(fetcher);
99 // Delete the fetcher on this function's exit.
100 Fetchers::iterator fetcher = fetchers_.find( local
102 DCHECK(fetcher != fetchers_.end());
103 scoped_ptr<net::URLFetcher> clean_up_fetcher(*fetcher);
104 fetchers_.erase(fetcher);
[all...]
/external/chromium_org/chrome/browser/local_discovery/
H A Dprivet_confirm_api_flow_unittest.cc95 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
97 EXPECT_EQ(GURL("http://SoMeUrL.com"), fetcher->GetOriginalURL());
100 fetcher->GetExtraRequestHeaders(&headers);
108 fetcher->SetResponseString(kSampleConfirmResponse);
109 fetcher->set_status(net::URLRequestStatus(net::URLRequestStatus::SUCCESS,
111 fetcher->set_response_code(200);
115 fetcher->delegate()->OnURLFetchComplete(fetcher);
137 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
139 EXPECT_EQ(GURL("http://SoMeUrL.com"), fetcher
159 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
[all...]
H A Dprivet_url_fetcher_unittest.cc27 virtual void OnError(PrivetURLFetcher* fetcher,
34 virtual void OnParsedJson(PrivetURLFetcher* fetcher,
74 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
75 ASSERT_TRUE(fetcher != NULL);
76 fetcher->SetResponseString(kSampleParsableJSON);
77 fetcher->set_status(net::URLRequestStatus(net::URLRequestStatus::SUCCESS,
79 fetcher->set_response_code(200);
82 fetcher->delegate()->OnURLFetchComplete(fetcher);
93 net::TestURLFetcher* fetcher local
106 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
120 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
134 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
146 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
[all...]
/external/chromium_org/chrome/browser/policy/cloud/
H A Dcomponent_cloud_policy_updater_unittest.cc124 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
125 ASSERT_TRUE(fetcher);
126 EXPECT_EQ(GURL(kTestDownload), fetcher->GetOriginalURL());
129 fetcher->set_response_code(200);
130 fetcher->SetResponseString(kTestPolicy);
132 fetcher->delegate()->OnURLFetchComplete(fetcher);
159 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
160 ASSERT_TRUE(fetcher);
161 EXPECT_EQ(GURL(kTestDownload2), fetcher
183 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
218 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
239 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
262 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
[all...]
H A Dexternal_policy_data_updater_unittest.cc119 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
120 ASSERT_TRUE(fetcher);
121 EXPECT_EQ(GURL(kExternalPolicyDataURLs[0]), fetcher->GetOriginalURL());
124 fetcher->set_response_code(200);
125 fetcher->SetResponseString(kExternalPolicyDataPayload);
132 fetcher->delegate()->OnURLFetchComplete(fetcher);
139 fetcher = fetcher_factory_.GetFetcherByID(1);
140 ASSERT_TRUE(fetcher);
141 EXPECT_EQ(GURL(kExternalPolicyDataURLs[1]), fetcher
159 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
193 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
226 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
256 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
276 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
305 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
357 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
387 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
442 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
473 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
513 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
540 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
626 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
712 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
785 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
858 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
[all...]
/external/chromium_org/chrome/browser/safe_browsing/
H A Dping_manager.cc87 net::URLFetcher* fetcher = net::URLFetcher::Create( local
89 fetcher->SetLoadFlags(net::LOAD_DISABLE_CACHE);
90 fetcher->SetRequestContext(request_context_getter_.get());
91 fetcher->SetUploadData("application/octet-stream", report);
93 fetcher->SetAutomaticallyRetryOn5xx(false);
94 fetcher->Start();
95 safebrowsing_reports_.insert(fetcher);
/external/chromium_org/chrome/browser/signin/
H A Doauth2_token_service_unittest.cc110 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
111 EXPECT_TRUE(fetcher);
112 fetcher->set_response_code(net::HTTP_UNAUTHORIZED);
113 fetcher->SetResponseString(std::string());
114 fetcher->delegate()->OnURLFetchComplete(fetcher);
117 EXPECT_EQ(fetcher, factory_.GetFetcherByID(0));
128 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
129 EXPECT_TRUE(fetcher);
130 fetcher
157 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
203 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
238 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
272 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
290 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
317 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
331 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
410 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
438 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
[all...]
H A Dprofile_oauth2_token_service_unittest.cc327 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
328 fetcher->set_response_code(net::HTTP_OK);
329 fetcher->SetResponseString(GetValidTokenResponse("token", 3600));
330 fetcher->delegate()->OnURLFetchComplete(fetcher);
350 fetcher = factory_.GetFetcherByID(0);
351 fetcher->set_response_code(net::HTTP_OK);
352 fetcher->SetResponseString(GetValidTokenResponse("another token", 3600));
353 fetcher->delegate()->OnURLFetchComplete(fetcher);
[all...]
/external/chromium_org/components/autofill/content/browser/autocheckout/
H A Dwhitelist_manager_unittest.cc134 net::TestURLFetcher* fetcher = factory.GetFetcherByID(0); local
135 ASSERT_TRUE(fetcher);
136 fetcher->set_response_code(response_code);
137 fetcher->SetResponseString(response);
138 fetcher->delegate()->OnURLFetchComplete(fetcher);

Completed in 1689 milliseconds

123456