Home
last modified time | relevance | path

Searched refs:URLFetcher (Results 1 – 25 of 87) sorted by relevance

1234

/external/chromium/chrome/common/net/
Durl_fetcher.cc33 class URLFetcher::Core
34 : public base::RefCountedThreadSafe<URLFetcher::Core>,
41 Core(URLFetcher* fetcher,
44 URLFetcher::Delegate* d);
65 URLFetcher::Delegate* delegate() const { return delegate_; } in delegate()
70 friend class base::RefCountedThreadSafe<URLFetcher::Core>;
117 URLFetcher* fetcher_; // Corresponding fetcher object
121 URLFetcher::Delegate* delegate_; // Object to notify on completion
172 friend class URLFetcher;
176 URLFetcher::Core::Registry::Registry() {} in Registry()
[all …]
Dtest_url_fetcher_factory.h45 class TestURLFetcher : public URLFetcher {
69 const std::string& upload_data() const { return URLFetcher::upload_data(); } in upload_data()
75 Delegate* delegate() const { return URLFetcher::delegate(); } in delegate()
88 class TestURLFetcherFactory : public URLFetcher::Factory {
93 virtual URLFetcher* CreateURLFetcher(int id,
95 URLFetcher::RequestType request_type,
96 URLFetcher::Delegate* d);
141 class FakeURLFetcherFactory : public URLFetcher::Factory {
149 virtual URLFetcher* CreateURLFetcher(int id,
151 URLFetcher::RequestType request_type,
[all …]
Dtest_url_fetcher_factory.cc15 URLFetcher::RequestType request_type, in TestURLFetcher()
16 URLFetcher::Delegate* d) in TestURLFetcher()
17 : URLFetcher(url, request_type, d), in TestURLFetcher()
37 URLFetcher* TestURLFetcherFactory::CreateURLFetcher( in CreateURLFetcher()
40 URLFetcher::RequestType request_type, in CreateURLFetcher()
41 URLFetcher::Delegate* d) { in CreateURLFetcher()
59 class FakeURLFetcher : public URLFetcher {
64 : URLFetcher(url, request_type, d), in FakeURLFetcher()
109 URLFetcher* FakeURLFetcherFactory::CreateURLFetcher( in CreateURLFetcher()
112 URLFetcher::RequestType request_type, in CreateURLFetcher()
[all …]
Durl_fetcher_unittest.cc73 class URLFetcherTest : public testing::Test, public URLFetcher::Delegate {
81 virtual void OnURLFetchComplete(const URLFetcher* source,
110 return URLFetcher::GetNumFetcherCores(); in GetNumFetcherCores()
120 URLFetcher* fetcher_;
124 fetcher_ = new URLFetcher(url, URLFetcher::GET, this); in CreateFetcher()
130 void URLFetcherTest::OnURLFetchComplete(const URLFetcher* source, in OnURLFetchComplete()
157 virtual void OnURLFetchComplete(const URLFetcher* source,
169 virtual void OnURLFetchComplete(const URLFetcher* source,
182 virtual void OnURLFetchComplete(const URLFetcher* source,
198 virtual void OnURLFetchComplete(const URLFetcher* source,
[all …]
Durl_fetcher.h62 class URLFetcher {
76 virtual void OnURLFetchComplete(const URLFetcher* source,
91 virtual URLFetcher* CreateURLFetcher(int id,
103 URLFetcher(const GURL& url, RequestType request_type, Delegate* d);
105 virtual ~URLFetcher();
125 static URLFetcher* Create(int id, const GURL& url, RequestType request_type,
255 DISALLOW_COPY_AND_ASSIGN(URLFetcher);
/external/chromium/chrome/browser/chromeos/login/
Dmock_url_fetchers.h20 class ExpectCanceledFetcher : public URLFetcher {
25 URLFetcher::RequestType request_type,
26 URLFetcher::Delegate* d);
39 class GotCanceledFetcher : public URLFetcher {
44 URLFetcher::RequestType request_type,
45 URLFetcher::Delegate* d);
56 class SuccessFetcher : public URLFetcher {
61 URLFetcher::RequestType request_type,
62 URLFetcher::Delegate* d);
73 class FailFetcher : public URLFetcher {
[all …]
Dmock_url_fetchers.cc24 URLFetcher::RequestType request_type, in ExpectCanceledFetcher()
25 URLFetcher::Delegate* d) in ExpectCanceledFetcher()
26 : URLFetcher(url, request_type, d) { in ExpectCanceledFetcher()
50 URLFetcher::RequestType request_type, in GotCanceledFetcher()
51 URLFetcher::Delegate* d) in GotCanceledFetcher()
52 : URLFetcher(url, request_type, d), in GotCanceledFetcher()
72 URLFetcher::RequestType request_type, in SuccessFetcher()
73 URLFetcher::Delegate* d) in SuccessFetcher()
74 : URLFetcher(url, request_type, d), in SuccessFetcher()
93 URLFetcher::RequestType request_type, in FailFetcher()
[all …]
Dmock_auth_response_handler.h17 class URLFetcher; variable
37 MOCK_METHOD2(Handle, URLFetcher*(const std::string& to_process,
38 URLFetcher::Delegate* catcher));
40 URLFetcher* MockNetwork(std::string data, URLFetcher::Delegate* delegate);
48 static void CompleteFetch(URLFetcher::Delegate* delegate,
Dissue_response_handler.cc23 URLFetcher* IssueResponseHandler::Handle( in Handle()
25 URLFetcher::Delegate* catcher) { in Handle()
29 URLFetcher* fetcher = in Handle()
30 new URLFetcher(GURL(token_url_), URLFetcher::GET, catcher); in Handle()
Dclient_login_response_handler.cc27 URLFetcher* ClientLoginResponseHandler::Handle( in Handle()
29 URLFetcher::Delegate* catcher) { in Handle()
35 URLFetcher* fetcher = in Handle()
36 new URLFetcher(GURL(AuthResponseHandler::kIssueAuthTokenUrl), in Handle()
37 URLFetcher::POST, in Handle()
Dmock_auth_response_handler.cc36 void MockAuthResponseHandler::CompleteFetch(URLFetcher::Delegate* delegate, in CompleteFetch()
49 URLFetcher* MockAuthResponseHandler::MockNetwork( in MockNetwork()
51 URLFetcher::Delegate* delegate) { in MockNetwork()
60 return new URLFetcher(GURL(), URLFetcher::GET, delegate); in MockNetwork()
Donline_attempt_unittest.cc134 URLFetcher::set_factory(&factory); in TEST_F()
146 URLFetcher::set_factory(NULL); in TEST_F()
161 URLFetcher::set_factory(&factory); in TEST_F()
174 URLFetcher::set_factory(NULL); in TEST_F()
190 URLFetcher::set_factory(&factory); in TEST_F()
204 URLFetcher::set_factory(NULL); in TEST_F()
216 URLFetcher::set_factory(&factory); in TEST_F()
228 URLFetcher::set_factory(NULL); in TEST_F()
Dimage_downloader.h21 class ImageDownloader : public URLFetcher::Delegate {
32 virtual void OnURLFetchComplete(const URLFetcher* source,
40 scoped_ptr<URLFetcher> image_fetcher_;
/external/chromium/chrome/common/net/gaia/
Dgaia_oauth_client_unittest.cc27 class MockOAuthFetcher : public URLFetcher {
33 URLFetcher::RequestType request_type, in MockOAuthFetcher()
34 URLFetcher::Delegate* d) in MockOAuthFetcher()
35 : URLFetcher(url, request_type, d), in MockOAuthFetcher()
72 class MockOAuthFetcherFactory : public URLFetcher::Factory {
77 virtual URLFetcher* CreateURLFetcher( in CreateURLFetcher()
80 URLFetcher::RequestType request_type, in CreateURLFetcher()
81 URLFetcher::Delegate* d) { in CreateURLFetcher()
155 URLFetcher::set_factory(&factory); in TEST_F()
165 URLFetcher::set_factory(NULL); in TEST_F()
[all …]
Dgaia_auth_fetcher_unittest.h20 class MockFetcher : public URLFetcher {
25 URLFetcher::RequestType request_type,
26 URLFetcher::Delegate* d);
40 class MockFactory : public URLFetcher::Factory {
45 URLFetcher* CreateURLFetcher(int id, in CreateURLFetcher()
47 URLFetcher::RequestType request_type, in CreateURLFetcher()
48 URLFetcher::Delegate* d) { in CreateURLFetcher()
Dgaia_oauth_client.cc26 public URLFetcher::Delegate {
48 const URLFetcher* source,
59 void HandleResponse(const URLFetcher* source,
70 scoped_ptr<URLFetcher> request_;
108 request_.reset(URLFetcher::Create(0, gaia_url_, URLFetcher::POST, this)); in MakeGaiaRequest()
117 const URLFetcher* source, in OnURLFetchComplete()
140 const URLFetcher* source, in HandleResponse()
Dgaia_auth_fetcher_unittest.cc31 URLFetcher::RequestType request_type, in MockFetcher()
32 URLFetcher::Delegate* d) in MockFetcher()
33 : URLFetcher(url, request_type, d), in MockFetcher()
382 URLFetcher::set_factory(&factory); in TEST_F()
393 URLFetcher::set_factory(NULL); in TEST_F()
404 URLFetcher::set_factory(&factory); in TEST_F()
416 URLFetcher::set_factory(NULL); in TEST_F()
426 URLFetcher::set_factory(&factory); in TEST_F()
437 URLFetcher::set_factory(NULL); in TEST_F()
456 URLFetcher::set_factory(&factory); in TEST_F()
[all …]
/external/chromium/android/autofill/
Durl_fetcher_proxy.h69 class URLFetcherProxy : public URLFetcher, public URLFetcher::Delegate {
72 URLFetcher::RequestType request_type,
73 URLFetcher::Delegate* d)
74 : URLFetcher(url /*unused*/, URLFetcher::POST /*unused*/, d),
108 virtual void OnURLFetchComplete(const URLFetcher* source,
133 real_fetcher_.reset(new URLFetcher(url_, request_type_, this));
154 scoped_ptr<URLFetcher> real_fetcher_;
155 URLFetcher::RequestType request_type_;
/external/chromium/chrome/browser/safe_browsing/
Dprotocol_manager.cc170 URLFetcher* fetcher = new URLFetcher(gethash_url, URLFetcher::POST, this); in GetFullHash()
208 const URLFetcher* source, in OnURLFetchComplete()
214 scoped_ptr<const URLFetcher> fetcher; in OnURLFetchComplete()
220 std::set<const URLFetcher*>::iterator sit = safebrowsing_reports_.find( in OnURLFetchComplete()
223 const URLFetcher* report = *sit; in OnURLFetchComplete()
564 request_.reset(new URLFetcher(chunk_url, URLFetcher::GET, this)); in IssueChunkRequest()
574 request_.reset(new URLFetcher(key_url, URLFetcher::GET, this)); in IssueKeyRequest()
615 request_.reset(new URLFetcher(update_url, URLFetcher::POST, this)); in OnGetChunksComplete()
657 URLFetcher* report = new URLFetcher( in ReportSafeBrowsingHit()
658 report_url, post_data.empty() ? URLFetcher::GET : URLFetcher::POST, this); in ReportSafeBrowsingHit()
[all …]
Dclient_side_detection_service.h48 class ClientSideDetectionService : public URLFetcher::Delegate {
65 virtual void OnURLFetchComplete(const URLFetcher* source,
192 void HandleModelResponse(const URLFetcher* source,
201 void HandlePhishingVerdict(const URLFetcher* source,
221 scoped_ptr<URLFetcher> model_fetcher_;
228 std::map<const URLFetcher*, ClientReportInfo*> client_phishing_reports_;
Dmalware_details_cache.h38 public URLFetcher::Delegate {
59 virtual void OnURLFetchComplete(const URLFetcher* source,
88 scoped_ptr<URLFetcher> current_fetch_;
100 const URLFetcher* source);
Dprotocol_manager.h39 struct hash<const URLFetcher*> {
40 size_t operator()(const URLFetcher* fetcher) const {
66 class SafeBrowsingProtocolManager : public URLFetcher::Delegate {
106 virtual void OnURLFetchComplete(const URLFetcher* source,
319 scoped_ptr<URLFetcher> request_;
347 typedef base::hash_map<const URLFetcher*,
389 std::set<const URLFetcher*> safebrowsing_reports_;
/external/chromium/chrome/browser/
Dintranet_redirect_detector.cc83 URLFetcher* fetcher = new URLFetcher(random_url, URLFetcher::HEAD, this); in FinishSleep()
94 const URLFetcher* source, in OnURLFetchComplete()
101 Fetchers::iterator fetcher = fetchers_.find(const_cast<URLFetcher*>(source)); in OnURLFetchComplete()
103 scoped_ptr<URLFetcher> clean_up_fetcher(*fetcher); in OnURLFetchComplete()
/external/chromium/chrome/browser/policy/
Ddevice_management_service.h32 class DeviceManagementService : public URLFetcher::Delegate {
49 virtual void ConfigureRequest(URLFetcher* fetcher) = 0;
77 typedef std::map<const URLFetcher*, DeviceManagementJob*> JobFetcherMap;
84 virtual void OnURLFetchComplete(const URLFetcher* source,
/external/chromium/chrome/browser/net/
Dsdch_dictionary_fetcher.h22 class SdchDictionaryFetcher : public URLFetcher::Delegate,
53 virtual void OnURLFetchComplete(const URLFetcher* source,
64 scoped_ptr<URLFetcher> current_fetch_;

1234