Home | History | Annotate | Download | only in net

Lines Matching refs:URLFetcher

18 // URLFetcher. TestURLFetcherFactory is a URLFetcher::Factory that creates
22 // URLFetcher.
26 // // And io_thread to release URLRequestContextGetter in URLFetcher::Core.
30 // URLFetcher::set_factory(&factory);
31 // // Do something that triggers creation of a URLFetcher.
36 // // Make sure consumer of URLFetcher does the right thing.
39 // URLFetcher::set_factory(NULL);
45 class TestURLFetcher : public URLFetcher {
63 // URL we were created with. Because of how we're using URLFetcher url()
68 // Returns the data uploaded on this URLFetcher.
69 const std::string& upload_data() const { return URLFetcher::upload_data(); }
71 // Returns the chunks of data uploaded on this URLFetcher.
74 // Returns the delegate installed on the URLFetcher.
75 Delegate* delegate() const { return URLFetcher::delegate(); }
86 // Simple URLFetcher::Factory method that creates TestURLFetchers. All fetchers
88 class TestURLFetcherFactory : public URLFetcher::Factory {
93 virtual URLFetcher* CreateURLFetcher(int id,
95 URLFetcher::RequestType request_type,
96 URLFetcher::Delegate* d);
101 // Maps from id passed to create to the returned URLFetcher.
109 // ones above but don't require you to know when exactly the URLFetcher objects
115 // We assume that the thread that is calling Start() on the URLFetcher object
120 // OK to start URLFetcher objects while setting or clearning fake responses
121 // since already created URLFetcher objects will not be affected by any changes
122 // made to the fake responses (once a URLFetcher object is created you cannot
127 // URLFetcher::set_factory(&factory);
141 class FakeURLFetcherFactory : public URLFetcher::Factory {
147 // Otherwise, it will return a URLFetcher object which will respond with the
149 virtual URLFetcher* CreateURLFetcher(int id,
151 URLFetcher::RequestType request_type,
152 URLFetcher::Delegate* d);