| 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_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 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "net/base/net_export.h" |
| 19 #include "net/proxy/proxy_script_fetcher.h" | 20 #include "net/proxy/proxy_script_fetcher.h" |
| 20 #include "net/url_request/url_request.h" | 21 #include "net/url_request/url_request.h" |
| 21 | 22 |
| 22 class GURL; | 23 class GURL; |
| 23 | 24 |
| 24 namespace net { | 25 namespace net { |
| 25 | 26 |
| 26 class URLRequestContext; | 27 class URLRequestContext; |
| 27 | 28 |
| 28 // Implementation of ProxyScriptFetcher that downloads scripts using the | 29 // Implementation of ProxyScriptFetcher that downloads scripts using the |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Factory for creating the time-out task. This takes care of revoking | 128 // Factory for creating the time-out task. This takes care of revoking |
| 128 // outstanding tasks when |this| is deleted. | 129 // outstanding tasks when |this| is deleted. |
| 129 base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_; | 130 base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_; |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); | 132 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace net | 135 } // namespace net |
| 135 | 136 |
| 136 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ | 137 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ |
| OLD | NEW |