OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_URL_REQUEST_URL_FETCHER_H_ | 5 #ifndef NET_URL_REQUEST_URL_FETCHER_H_ |
6 #define NET_URL_REQUEST_URL_FETCHER_H_ | 6 #define NET_URL_REQUEST_URL_FETCHER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 14 matching lines...) Expand all Loading... |
25 class TaskRunner; | 25 class TaskRunner; |
26 class TimeDelta; | 26 class TimeDelta; |
27 } | 27 } |
28 | 28 |
29 namespace url { | 29 namespace url { |
30 class Origin; | 30 class Origin; |
31 } | 31 } |
32 | 32 |
33 namespace net { | 33 namespace net { |
34 class HostPortPair; | 34 class HostPortPair; |
35 class HttpRequestHeaders; | |
36 class HttpResponseHeaders; | 35 class HttpResponseHeaders; |
37 class URLFetcherDelegate; | 36 class URLFetcherDelegate; |
38 class URLFetcherResponseWriter; | 37 class URLFetcherResponseWriter; |
39 class URLRequestContextGetter; | 38 class URLRequestContextGetter; |
40 class URLRequestStatus; | 39 class URLRequestStatus; |
41 | 40 |
42 // To use this class, create an instance with the desired URL and a pointer to | 41 // To use this class, create an instance with the desired URL and a pointer to |
43 // the object to be notified when the URL has been loaded: | 42 // the object to be notified when the URL has been loaded: |
44 // std::unique_ptr<URLFetcher> fetcher = | 43 // std::unique_ptr<URLFetcher> fetcher = |
45 // URLFetcher::Create(GURL("http://www.google.com"), | 44 // URLFetcher::Create(GURL("http://www.google.com"), |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // be removed once the URLFetcher is destroyed. User should not take | 329 // be removed once the URLFetcher is destroyed. User should not take |
331 // ownership more than once, or call this method after taking ownership. | 330 // ownership more than once, or call this method after taking ownership. |
332 virtual bool GetResponseAsFilePath( | 331 virtual bool GetResponseAsFilePath( |
333 bool take_ownership, | 332 bool take_ownership, |
334 base::FilePath* out_response_path) const = 0; | 333 base::FilePath* out_response_path) const = 0; |
335 }; | 334 }; |
336 | 335 |
337 } // namespace net | 336 } // namespace net |
338 | 337 |
339 #endif // NET_URL_REQUEST_URL_FETCHER_H_ | 338 #endif // NET_URL_REQUEST_URL_FETCHER_H_ |
OLD | NEW |