Searched defs:url_fetcher (Results 1 - 18 of 18) sorted by relevance

/external/chromium_org/content/common/net/
H A Durl_fetcher.cc5 #include "content/public/common/url_fetcher.h"
9 #include "net/url_request/url_fetcher.h"
23 void AssociateURLFetcherWithRenderFrame(net::URLFetcher* url_fetcher, argument
27 url_fetcher->SetFirstPartyForCookies(first_party_for_cookies);
28 url_fetcher->SetURLRequestUserData(
/external/chromium_org/components/policy/core/common/cloud/
H A Duser_info_fetcher_unittest.cc52 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0); local
53 url_fetcher->set_status(net::URLRequestStatus(
55 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
73 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0); local
74 url_fetcher->set_response_code(net::HTTP_OK);
75 url_fetcher->SetResponseString(kUserInfoResponse);
76 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
/external/chromium_org/chrome/browser/extensions/
H A Dtest_blacklist_state_fetcher.cc52 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID( local
54 if (!url_fetcher)
57 const std::string& request_str = url_fetcher->upload_data();
73 url_fetcher->set_status(net::URLRequestStatus());
74 url_fetcher->set_response_code(200);
75 url_fetcher->SetResponseString(response_str);
76 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
/external/chromium_org/chrome/browser/ui/search_engines/
H A Dsearch_engine_tab_helper.cc23 #include "content/public/common/url_fetcher.h"
68 net::URLFetcher* url_fetcher) {
70 url_fetcher,
67 AssociateURLFetcherWithWebContents(content::WebContents* web_contents, net::URLFetcher* url_fetcher) argument
/external/chromium_org/components/captive_portal/
H A Dcaptive_portal_detector.cc76 const net::URLFetcher* url_fetcher,
79 DCHECK(!url_fetcher->GetStatus().is_io_pending());
82 results->response_code = url_fetcher->GetResponseCode();
84 results->landing_url = url_fetcher->GetURL();
90 if (url_fetcher->GetStatus().status() != net::URLRequestStatus::SUCCESS)
95 net::HttpResponseHeaders* headers = url_fetcher->GetResponseHeaders();
75 GetCaptivePortalResultFromResponse( const net::URLFetcher* url_fetcher, Results* results) const argument
/external/chromium_org/components/enhanced_bookmarks/
H A Dbookmark_server_search_service.cc10 #include "net/url_request/url_fetcher.h"
66 net::URLFetcher* url_fetcher = local
69 return url_fetcher;
/external/chromium_org/chrome/browser/local_discovery/
H A Dprivetv3_session.cc126 scoped_ptr<PrivetURLFetcher> url_fetcher = local
133 url_fetcher->SetUploadData(cloud_print::kContentTypeJSON, json);
135 request->fetcher_delegate_->url_fetcher_ = url_fetcher.Pass();
/external/chromium_org/google_apis/gaia/
H A Doauth2_access_token_fetcher_impl_unittest.cc17 #include "net/url_request/url_fetcher.h"
99 TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, &fetcher_); local
102 url_fetcher->set_status(URLRequestStatus(status, 0));
105 url_fetcher->set_response_code(response_code);
108 url_fetcher->SetResponseString(body);
111 .WillOnce(Return(url_fetcher));
112 return url_fetcher;
126 TestURLFetcher* url_fetcher = SetupGetAccessToken(false, 0, std::string()); local
129 fetcher_.OnURLFetchComplete(url_fetcher);
134 TestURLFetcher* url_fetcher local
142 TestURLFetcher* url_fetcher = local
[all...]
H A Doauth2_api_call_flow_unittest.cc21 #include "net/url_request/url_fetcher.h"
125 TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, flow_.get()); local
128 url_fetcher->set_status(URLRequestStatus(status, 0));
131 url_fetcher->set_response_code(response_code);
134 url_fetcher->SetResponseString(body);
136 return url_fetcher;
156 TestURLFetcher* url_fetcher = local
159 .WillOnce(Return(url_fetcher));
160 return url_fetcher;
175 TestURLFetcher* url_fetcher local
223 TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_UNAUTHORIZED); local
240 TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_OK); local
256 TestURLFetcher* url_fetcher = SetupApiCall(false, net::HTTP_BAD_GATEWAY); local
[all...]
/external/chromium_org/sync/internal_api/attachments/
H A Dattachment_downloader_impl.cc11 #include "net/url_request/url_fetcher.h"
28 scoped_ptr<net::URLFetcher> url_fetcher; member in struct:syncer::AttachmentDownloaderImpl::DownloadState
97 download_state->url_fetcher =
99 download_state->url_fetcher->Start();
134 DCHECK(source == download_state.url_fetcher.get());
166 scoped_ptr<net::URLFetcher> url_fetcher(
168 url_fetcher->SetAutomaticallyRetryOn5xx(false);
170 url_fetcher->AddExtraRequestHeader(auth_header);
171 url_fetcher->SetRequestContext(url_request_context_getter_.get());
172 url_fetcher
[all...]
/external/chromium_org/chrome/browser/chromeos/policy/
H A Ddevice_cloud_policy_manager_chromeos_unittest.cc439 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID( local
441 ASSERT_TRUE(url_fetcher);
442 url_fetcher->SetMaxRetriesOn5xx(0);
443 url_fetcher->set_status(net::URLRequestStatus());
444 url_fetcher->set_response_code(url_fetcher_response_code_);
445 url_fetcher->SetResponseString(url_fetcher_response_string_);
446 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
/external/chromium_org/chrome/browser/safe_browsing/
H A Dprotocol_manager_unittest.cc101 const net::TestURLFetcher* url_fetcher,
103 ASSERT_TRUE(url_fetcher);
104 EXPECT_EQ(net::LOAD_DISABLE_CACHE, url_fetcher->GetLoadFlags());
109 EXPECT_EQ(expected_lists, url_fetcher->upload_data());
112 url_fetcher->GetOriginalURL());
115 void ValidateUpdateFetcherRequest(const net::TestURLFetcher* url_fetcher) { argument
116 ValidateUpdateFetcherRequest(url_fetcher, kUrlPrefix);
119 void ValidateRedirectFetcherRequest(const net::TestURLFetcher* url_fetcher, argument
121 ASSERT_TRUE(url_fetcher);
122 EXPECT_EQ(net::LOAD_DISABLE_CACHE, url_fetcher
100 ValidateUpdateFetcherRequest( const net::TestURLFetcher* url_fetcher, const std::string& expected_prefix) argument
433 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
475 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
523 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
570 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
618 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
669 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
717 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
764 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
813 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
860 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
905 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
941 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
988 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
1037 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
1091 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local
[all...]
/external/chromium_org/chrome/browser/supervised_user/
H A Dpermission_request_creator_apiary.cc26 #include "net/url_request/url_fetcher.h"
47 scoped_ptr<net::URLFetcher> url_fetcher; member in struct:PermissionRequestCreatorApiary::Request
124 (*it)->url_fetcher.reset(URLFetcher::Create(id, url, URLFetcher::POST, this));
126 (*it)->url_fetcher->SetRequestContext(context_);
127 (*it)->url_fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
129 (*it)->url_fetcher->SetAutomaticallyRetryOnNetworkChanges(kNumRetries);
130 (*it)->url_fetcher->AddExtraRequestHeader(
139 (*it)->url_fetcher->SetUploadData("application/json", body);
141 (*it)->url_fetcher->Start();
162 if (source == (*it)->url_fetcher
[all...]
H A Dsupervised_user_refresh_token_fetcher_unittest.cc59 void SendResponse(net::TestURLFetcher* url_fetcher, argument
61 url_fetcher->set_status(
63 url_fetcher->set_response_code(net::HTTP_OK);
64 url_fetcher->SetResponseString(response);
65 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
68 void SetNetworkError(net::TestURLFetcher* url_fetcher, int error) { argument
69 url_fetcher->set_status(
71 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
74 SetHttpError(net::TestURLFetcher* url_fetcher, int error) argument
154 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID(1); local
181 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID( local
[all...]
/external/chromium_org/components/dom_distiller/core/
H A Ddistiller.cc218 DistillerURLFetcher* url_fetcher,
224 DCHECK(url_fetcher);
228 url_fetcher);
231 // Delete the |url_fetcher| by DeleteSoon since the OnFetchImageDone
232 // callback is invoked by the |url_fetcher|.
234 base::MessageLoop::current()->DeleteSoon(FROM_HERE, url_fetcher);
217 OnFetchImageDone(int page_num, DistillerURLFetcher* url_fetcher, const std::string& id, const std::string& response) argument
/external/chromium_org/chrome/browser/media/
H A Dwebrtc_log_uploader.cc23 #include "net/url_request/url_fetcher.h"
339 net::URLFetcher* url_fetcher = local
341 url_fetcher->SetRequestContext(g_browser_process->system_request_context());
342 url_fetcher->SetUploadData(content_type, *post_data);
343 url_fetcher->Start();
344 upload_done_data_[url_fetcher] = upload_done_data;
/external/chromium_org/device/test/
H A Dusb_test_gadget_impl.cc30 #include "net/url_request/url_fetcher.h"
176 scoped_ptr<net::URLFetcher> url_fetcher(
179 url_fetcher->SetRequestContext(
184 return url_fetcher.PassAs<net::URLFetcher>();
190 scoped_ptr<net::URLFetcher> url_fetcher = local
193 url_fetcher->SetUploadData("application/x-www-form-urlencoded", form_data);
194 url_fetcher->Start();
197 return url_fetcher->GetResponseCode();
250 scoped_ptr<net::URLFetcher> url_fetcher = local
253 url_fetcher
279 scoped_ptr<net::URLFetcher> url_fetcher = local
[all...]
/external/chromium_org/google_apis/drive/
H A Dbase_requests.cc22 #include "net/url_request/url_fetcher.h"
61 // |url_fetcher| does not contain a valid response. Used only for debugging.
62 std::string GetResponseHeadersAsString(const URLFetcher* url_fetcher) { argument
71 if (url_fetcher->GetResponseCode() == URLFetcher::RESPONSE_CODE_INVALID) {
74 url_fetcher->GetResponseHeaders()->GetNormalizedHeaders(&headers);

Completed in 449 milliseconds