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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/supports_user_data.h" | 14 #include "base/supports_user_data.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 #include "net/url_request/url_request.h" | 16 #include "net/url_request/url_request.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class FilePath; | 21 class FilePath; |
22 class MessageLoopProxy; | |
23 class SequencedTaskRunner; | 22 class SequencedTaskRunner; |
24 class TaskRunner; | 23 class TaskRunner; |
25 class TimeDelta; | 24 class TimeDelta; |
26 } | 25 } |
27 | 26 |
28 namespace net { | 27 namespace net { |
29 class HostPortPair; | 28 class HostPortPair; |
30 class HttpRequestHeaders; | 29 class HttpRequestHeaders; |
31 class HttpResponseHeaders; | 30 class HttpResponseHeaders; |
32 class URLFetcherDelegate; | 31 class URLFetcherDelegate; |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 // be removed once the URLFetcher is destroyed. User should not take | 314 // be removed once the URLFetcher is destroyed. User should not take |
316 // ownership more than once, or call this method after taking ownership. | 315 // ownership more than once, or call this method after taking ownership. |
317 virtual bool GetResponseAsFilePath( | 316 virtual bool GetResponseAsFilePath( |
318 bool take_ownership, | 317 bool take_ownership, |
319 base::FilePath* out_response_path) const = 0; | 318 base::FilePath* out_response_path) const = 0; |
320 }; | 319 }; |
321 | 320 |
322 } // namespace net | 321 } // namespace net |
323 | 322 |
324 #endif // NET_URL_REQUEST_URL_FETCHER_H_ | 323 #endif // NET_URL_REQUEST_URL_FETCHER_H_ |
OLD | NEW |