OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ | 5 #ifndef NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ |
6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ | 6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "base/string16.h" | 15 #include "base/string16.h" |
14 #include "base/task.h" | 16 #include "base/task.h" |
15 #include "base/time.h" | 17 #include "base/time.h" |
16 #include "net/proxy/proxy_script_fetcher.h" | 18 #include "net/proxy/proxy_script_fetcher.h" |
17 #include "net/url_request/url_request.h" | 19 #include "net/url_request/url_request.h" |
18 | 20 |
19 class GURL; | 21 class GURL; |
20 class X509Certificate; | |
21 | 22 |
22 namespace net { | 23 namespace net { |
23 | 24 |
24 class URLRequestContext; | 25 class URLRequestContext; |
25 | 26 |
26 // Implementation of ProxyScriptFetcher that downloads scripts using the | 27 // Implementation of ProxyScriptFetcher that downloads scripts using the |
27 // specified request context. | 28 // specified request context. |
28 class NET_EXPORT ProxyScriptFetcherImpl : public ProxyScriptFetcher, | 29 class NET_EXPORT ProxyScriptFetcherImpl : public ProxyScriptFetcher, |
29 public URLRequest::Delegate { | 30 public URLRequest::Delegate { |
30 public: | 31 public: |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 119 |
119 // The maximum amount of time to wait for download to complete. | 120 // The maximum amount of time to wait for download to complete. |
120 base::TimeDelta max_duration_; | 121 base::TimeDelta max_duration_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); | 123 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace net | 126 } // namespace net |
126 | 127 |
127 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ | 128 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ |
OLD | NEW |