Home
last modified time | relevance | path

Searched refs:url_fetcher_ (Results 1 – 25 of 59) sorted by relevance

123

/external/chromium_org/chrome/browser/captive_portal/
Dcaptive_portal_detector.cc58 url_fetcher_.reset(net::URLFetcher::Create(0, in DetectCaptivePortal()
62 url_fetcher_->SetAutomaticallyRetryOn5xx(false); in DetectCaptivePortal()
63 url_fetcher_->SetRequestContext(request_context_.get()); in DetectCaptivePortal()
67 url_fetcher_->SetLoadFlags( in DetectCaptivePortal()
73 url_fetcher_->Start(); in DetectCaptivePortal()
77 url_fetcher_.reset(); in Cancel()
84 DCHECK_EQ(url_fetcher_.get(), source); in OnURLFetchComplete()
88 GetCaptivePortalResultFromResponse(url_fetcher_.get(), &results); in OnURLFetchComplete()
90 url_fetcher_.reset(); in OnURLFetchComplete()
166 return url_fetcher_.get() != NULL; in FetchingURL()
/external/chromium_org/content/browser/speech/
Dgoogle_one_shot_remote_engine.cc164 DCHECK(!url_fetcher_.get()); in StartRecognition()
209 url_fetcher_.reset(net::URLFetcher::Create(url_fetcher_id_for_tests, in StartRecognition()
213 url_fetcher_->SetChunkedUpload(encoder_->mime_type()); in StartRecognition()
214 url_fetcher_->SetRequestContext(url_context_.get()); in StartRecognition()
215 url_fetcher_->SetReferrer(config_.origin_url); in StartRecognition()
221 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES | in StartRecognition()
224 url_fetcher_->Start(); in StartRecognition()
228 url_fetcher_.reset(); in EndRecognition()
232 DCHECK(url_fetcher_.get()); in TakeAudioChunk()
237 url_fetcher_->AppendChunkToUpload(encoded_data->AsString(), false); in TakeAudioChunk()
[all …]
/external/chromium_org/chrome/browser/component_updater/
Durl_fetcher_downloader.cc35 url_fetcher_.reset(net::URLFetcher::Create(0, in DoStartDownload()
39 url_fetcher_->SetRequestContext(context_getter_); in DoStartDownload()
40 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | in DoStartDownload()
43 url_fetcher_->SetAutomaticallyRetryOn5xx(false); in DoStartDownload()
44 url_fetcher_->SaveResponseToTemporaryFile(task_runner_); in DoStartDownload()
46 url_fetcher_->Start(); in DoStartDownload()
65 const int fetch_error(GetFetchError(*url_fetcher_)); in OnURLFetchComplete()
/external/chromium_org/chrome/browser/local_discovery/
Dcloud_print_base_api_flow.cc92 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES); in Start()
94 url_fetcher_->Start(); in Start()
107 url_fetcher_->AddExtraRequestHeader(authorization_header); in OnGetTokenSuccess()
108 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES | in OnGetTokenSuccess()
110 url_fetcher_->Start(); in OnGetTokenSuccess()
120 url_fetcher_.reset(net::URLFetcher::Create(url, in CreateRequest()
124 url_fetcher_->SetRequestContext(request_context_.get()); in CreateRequest()
126 url_fetcher_->AddExtraRequestHeader( in CreateRequest()
Dprivet_http_impl.cc76 url_fetcher_ = privet_client_->CreateURLFetcher( in Start()
79 url_fetcher_->DoNotRetryOnTransientError(); in Start()
80 url_fetcher_->AllowEmptyPrivetToken(); in Start()
82 url_fetcher_->Start(); in Start()
126 url_fetcher_.reset(); in Cancel()
208 url_fetcher_ = privet_client_->CreateURLFetcher( in SendRequest()
210 url_fetcher_->Start(); in SendRequest()
301 url_fetcher_ = in Cancelation()
305 url_fetcher_->DoNotRetryOnTransientError(); in Cancelation()
306 url_fetcher_->Start(); in Cancelation()
[all …]
Dprivet_url_fetcher.cc65 url_fetcher_.reset(net::URLFetcher::Create(url_, request_type_, this)); in Try()
66 url_fetcher_->SetRequestContext(request_context_); in Try()
67 url_fetcher_->AddExtraRequestHeader(std::string(kXPrivetTokenHeaderPrefix) + in Try()
73 url_fetcher_->SetUploadFilePath( in Try()
81 url_fetcher_->SetUploadData(upload_content_type_, upload_data_); in Try()
85 url_fetcher_->Start(); in Try()
Dprivet_url_fetcher.h78 const GURL& url() const { return url_fetcher_->GetOriginalURL(); } in url()
79 int response_code() const { return url_fetcher_->GetResponseCode(); } in response_code()
101 scoped_ptr<net::URLFetcher> url_fetcher_; variable
/external/chromium_org/chrome/browser/safe_browsing/
Dtwo_phase_uploader.cc62 scoped_ptr<net::URLFetcher> url_fetcher_; member in __anoncd4ef6660111::TwoPhaseUploaderImpl
163 url_fetcher_.reset(net::URLFetcher::Create(base_url_, net::URLFetcher::POST, in UploadMetadata()
165 url_fetcher_->SetRequestContext(url_request_context_getter_.get()); in UploadMetadata()
166 url_fetcher_->SetExtraRequestHeaders(kStartHeader); in UploadMetadata()
167 url_fetcher_->SetUploadData(kUploadContentType, metadata_); in UploadMetadata()
168 url_fetcher_->Start(); in UploadMetadata()
175 url_fetcher_.reset(net::URLFetcher::Create(upload_url_, net::URLFetcher::PUT, in UploadFile()
177 url_fetcher_->SetRequestContext(url_request_context_getter_.get()); in UploadFile()
178 url_fetcher_->SetUploadFilePath( in UploadFile()
180 url_fetcher_->Start(); in UploadFile()
/external/chromium_org/chrome/browser/chromeos/extensions/
Dwallpaper_api.cc42 url_fetcher_.reset(net::URLFetcher::Create(url, in FetchWallpaper()
45 url_fetcher_->SetRequestContext( in FetchWallpaper()
47 url_fetcher_->SetLoadFlags(net::LOAD_DISABLE_CACHE); in FetchWallpaper()
48 url_fetcher_->Start(); in FetchWallpaper()
57 url_fetcher_->GetResponseAsString(&response); in OnURLFetchComplete()
61 url_fetcher_.reset(); in OnURLFetchComplete()
66 if (url_fetcher_.get()) { in CancelPreviousFetch()
69 url_fetcher_->GetOriginalURL().ExtractFileName().c_str()); in CancelPreviousFetch()
71 url_fetcher_.reset(); in CancelPreviousFetch()
75 scoped_ptr<net::URLFetcher> url_fetcher_; member in __anonf73533b80111::WallpaperFetcher
/external/chromium_org/remoting/host/
Ddns_blackhole_checker.cc42 url_fetcher_.reset(NULL); in OnURLFetchComplete()
50 if (!url_fetcher_.get()) { in CheckForDnsBlackhole()
61 url_fetcher_.reset(net::URLFetcher::Create(GURL(talkgadget_url), in CheckForDnsBlackhole()
63 url_fetcher_->SetRequestContext(url_request_context_getter_.get()); in CheckForDnsBlackhole()
64 url_fetcher_->Start(); in CheckForDnsBlackhole()
/external/chromium_org/components/policy/core/common/cloud/
Duser_info_fetcher.cc44 url_fetcher_.reset(net::URLFetcher::Create( in Start()
47 url_fetcher_->SetRequestContext(context_); in Start()
48 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | in Start()
50 url_fetcher_->AddExtraRequestHeader(MakeAuthorizationHeader(access_token)); in Start()
51 url_fetcher_->Start(); // Results in a call to OnURLFetchComplete(). in Start()
/external/chromium_org/components/dom_distiller/core/
Ddistiller_url_fetcher.cc40 DCHECK(!url_fetcher_ || !url_fetcher_->GetStatus().is_io_pending()); in FetchURL()
42 url_fetcher_.reset(CreateURLFetcher(context_getter_, url)); in FetchURL()
43 url_fetcher_->Start(); in FetchURL()
Ddistiller_url_fetcher_unittest.cc32 url_fetcher_.reset(new dom_distiller::DistillerURLFetcher(NULL)); in SetUp()
49 url_fetcher_->FetchURL( in Fetch()
57 scoped_ptr<dom_distiller::DistillerURLFetcher> url_fetcher_; member in DistillerURLFetcherTest
/external/chromium_org/components/autofill/content/browser/wallet/
Dwallet_signin_helper.cc103 DCHECK(!url_fetcher_); in StartPassiveSignin()
106 url_fetcher_.reset(net::URLFetcher::Create( in StartPassiveSignin()
108 url_fetcher_->SetRequestContext(getter_); in StartPassiveSignin()
109 url_fetcher_->Start(); in StartPassiveSignin()
137 DCHECK_EQ(url_fetcher_.get(), fetcher); in OnURLFetchComplete()
138 scoped_ptr<net::URLFetcher> url_fetcher(url_fetcher_.release()); in OnURLFetchComplete()
/external/chromium_org/chrome/browser/managed_mode/
Dmanaged_user_refresh_token_fetcher.cc103 scoped_ptr<URLFetcher> url_fetcher_; member in __anonc512f6820111::ManagedUserRefreshTokenFetcherImpl
148 url_fetcher_.reset(URLFetcher::Create(id, url, URLFetcher::POST, this)); in OnGetTokenSuccess()
150 url_fetcher_->SetRequestContext(context_); in OnGetTokenSuccess()
151 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | in OnGetTokenSuccess()
153 url_fetcher_->SetAutomaticallyRetryOnNetworkChanges(kNumRetries); in OnGetTokenSuccess()
154 url_fetcher_->AddExtraRequestHeader( in OnGetTokenSuccess()
164 url_fetcher_->SetUploadData("application/x-www-form-urlencoded", body); in OnGetTokenSuccess()
166 url_fetcher_->Start(); in OnGetTokenSuccess()
/external/chromium_org/chrome/browser/web_resource/
Dweb_resource_service.cc126 url_fetcher_.reset(net::URLFetcher::Create( in StartFetch()
130 url_fetcher_->SetLoadFlags(net::LOAD_DISABLE_CACHE | in StartFetch()
135 url_fetcher_->SetRequestContext(url_request_context_getter); in StartFetch()
136 url_fetcher_->Start(); in StartFetch()
141 scoped_ptr<net::URLFetcher> clean_up_fetcher(url_fetcher_.release()); in OnURLFetchComplete()
/external/chromium_org/chrome/browser/extensions/
Dwebstore_install_helper.cc63 url_fetcher_.reset(net::URLFetcher::Create( in Start()
65 url_fetcher_->SetRequestContext(context_getter_); in Start()
66 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES | in Start()
69 url_fetcher_->Start(); in Start()
90 CHECK(source == url_fetcher_.get()); in OnURLFetchComplete()
108 url_fetcher_.reset(); in OnURLFetchComplete()
Dinstall_signer.cc304 CHECK(!url_fetcher_.get()); in GetSignature()
336 url_fetcher_.reset(net::URLFetcher::Create( in GetSignature()
338 url_fetcher_->SetRequestContext(context_getter_); in GetSignature()
360 url_fetcher_->SetUploadData("application/json", json); in GetSignature()
363 url_fetcher_->Start(); in GetSignature()
373 bool fetch_success = url_fetcher_->GetStatus().is_success(); in ParseFetchResponse()
378 if (!url_fetcher_->GetResponseAsString(&response)) in ParseFetchResponse()
/external/chromium/chrome/browser/web_resource/
Dweb_resource_service.cc67 url_fetcher_.reset(new URLFetcher(GURL( in StartFetch()
72 url_fetcher_->set_load_flags(net::LOAD_DISABLE_CACHE | in StartFetch()
76 url_fetcher_->set_request_context(url_request_context_getter); in StartFetch()
77 url_fetcher_->Start(); in StartFetch()
88 scoped_ptr<URLFetcher> clean_up_fetcher(url_fetcher_.release()); in OnURLFetchComplete()
105 scoped_ptr<URLFetcher> url_fetcher_; member in WebResourceService::WebResourceFetcher
/external/chromium_org/content/browser/geolocation/
Dnetwork_location_request.cc119 if (url_fetcher_ != NULL) { in MakeRequest()
122 url_fetcher_.reset(); in MakeRequest()
128 url_fetcher_.reset(net::URLFetcher::Create( in MakeRequest()
130 url_fetcher_->SetRequestContext(url_context_.get()); in MakeRequest()
133 url_fetcher_->SetUploadData("application/json", upload_data); in MakeRequest()
134 url_fetcher_->SetLoadFlags( in MakeRequest()
140 url_fetcher_->Start(); in MakeRequest()
146 DCHECK_EQ(url_fetcher_.get(), source); in OnURLFetchComplete()
165 url_fetcher_.reset(); in OnURLFetchComplete()
/external/chromium_org/components/precache/core/
Dprecache_fetcher.cc112 scoped_ptr<URLFetcher> url_fetcher_; member in precache::PrecacheFetcher::Fetcher
121 url_fetcher_.reset(URLFetcher::Create(url, URLFetcher::GET, this)); in Fetcher()
122 url_fetcher_->SetRequestContext(request_context); in Fetcher()
123 url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_PROMPT_FOR_LOGIN); in Fetcher()
124 url_fetcher_->Start(); in Fetcher()
/external/chromium_org/chrome/browser/notifications/sync_notifier/
Dnotification_bitmap_fetcher.cc22 url_fetcher_.reset( in Start()
28 url_fetcher_->SetRequestContext(profile->GetRequestContext()); in Start()
29 url_fetcher_->Start(); in Start()
/external/chromium_org/google_apis/drive/
Dbase_requests.cc218 url_fetcher_.reset( in Start()
220 url_fetcher_->SetRequestContext(sender_->url_request_context_getter()); in Start()
222 url_fetcher_->SetLoadFlags( in Start()
234 url_fetcher_->SaveResponseWithWriter( in Start()
242 url_fetcher_->AddExtraRequestHeader("User-Agent: " + custom_user_agent); in Start()
243 url_fetcher_->AddExtraRequestHeader(kGDataVersionHeader); in Start()
244 url_fetcher_->AddExtraRequestHeader( in Start()
248 url_fetcher_->AddExtraRequestHeader(headers[i]); in Start()
256 url_fetcher_->SetUploadData(upload_content_type, upload_content); in Start()
263 url_fetcher_->SetUploadFilePath( in Start()
[all …]
/external/chromium_org/chrome/browser/search_engines/
Dtemplate_url_fetcher.cc56 scoped_ptr<net::URLFetcher> url_fetcher_; member in TemplateURLFetcher::RequestDelegate
78 : url_fetcher_(net::URLFetcher::Create( in RequestDelegate()
98 url_fetcher_->SetRequestContext(fetcher->profile()->GetRequestContext()); in RequestDelegate()
102 url_fetcher_.get(), in RequestDelegate()
108 url_fetcher_->Start(); in RequestDelegate()
/external/chromium_org/chrome/browser/history/
Dweb_history_service.cc91 DCHECK_EQ(source, url_fetcher_.get()); in OnURLFetchComplete()
92 response_code_ = url_fetcher_->GetResponseCode(); in OnURLFetchComplete()
113 url_fetcher_->GetResponseAsString(&response_body_); in OnURLFetchComplete()
114 url_fetcher_.reset(); in OnURLFetchComplete()
133 url_fetcher_.reset(CreateUrlFetcher(access_token)); in OnGetTokenSuccess()
134 url_fetcher_->Start(); in OnGetTokenSuccess()
187 scoped_ptr<net::URLFetcher> url_fetcher_; member in history::__anonc7a41ae90111::RequestImpl

123