Home | History | Annotate | Download | only in net

Lines Matching refs:URLFetcher

5 // This file contains URLFetcher, a wrapper around net::URLRequest that handles
10 // NOTE(willchan): Only one "IO" thread is supported for URLFetcher. This is a
36 // URLFetcher* fetcher = new URLFetcher("http://www.google.com",
37 // URLFetcher::GET, this);
46 // The object you supply as a delegate must inherit from URLFetcher::Delegate;
49 // until the original URLFetcher instance is destroyed, you may examine the
51 // need them to live longer than the URLFetcher instance.) If the URLFetcher
55 // You may create the URLFetcher instance on any thread; OnURLFetchComplete()
59 // NOTE: By default URLFetcher requests are NOT intercepted, except when
62 class URLFetcher {
75 // URLFetcher instance is destroyed.
76 virtual void OnURLFetchComplete(const URLFetcher* source,
87 // URLFetcher::Create uses the currently registered Factory to create the
88 // URLFetcher. Factory is intended for testing.
91 virtual URLFetcher* CreateURLFetcher(int id,
103 URLFetcher(const GURL& url, RequestType request_type, Delegate* d);
105 virtual ~URLFetcher();
107 // Sets the factory used by the static method Create to create a URLFetcher.
108 // URLFetcher does not take ownership of |factory|. A value of NULL results
109 // in a URLFetcher being created directly.
114 // Normally interception is disabled for URLFetcher, but you can use this
116 // of testing code that uses an URLFetcher.
121 // Creates a URLFetcher, ownership returns to the caller. If there is no
122 // Factory (the default) this creates and returns a new URLFetcher. See the
124 // to identify who is creating the URLFetcher.
125 static URLFetcher* Create(int id, const GURL& url, RequestType request_type,
178 // if it is true URLFetcher will automatically re-execute the request,
179 // after backoff_delay() elapses. URLFetcher has it set to true by default.
215 // Cancels all existing URLFetchers. Will notify the URLFetcher::Delegates.
233 // Only used by URLFetcherTest, returns the number of URLFetcher::Core objects
244 // propagated to the observer, if it is true URLFetcher will automatically
255 DISALLOW_COPY_AND_ASSIGN(URLFetcher);