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 ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class HttpAuthPreferences; | 24 class HttpAuthPreferences; |
25 class HttpUserAgentSettings; | 25 class HttpUserAgentSettings; |
26 class NetLog; | 26 class NetLog; |
27 class ProxyConfigService; | 27 class ProxyConfigService; |
28 class URLRequestContext; | 28 class URLRequestContext; |
29 class URLRequestJobFactory; | 29 class URLRequestJobFactory; |
30 } | 30 } |
31 | 31 |
32 namespace android_webview { | 32 namespace android_webview { |
33 | 33 |
34 class AwNetworkDelegate; | |
35 | |
36 class AwURLRequestContextGetter : public net::URLRequestContextGetter { | 34 class AwURLRequestContextGetter : public net::URLRequestContextGetter { |
37 public: | 35 public: |
38 AwURLRequestContextGetter( | 36 AwURLRequestContextGetter( |
39 const base::FilePath& cache_path, | 37 const base::FilePath& cache_path, |
40 std::unique_ptr<net::ProxyConfigService> config_service, | 38 std::unique_ptr<net::ProxyConfigService> config_service, |
41 PrefService* pref_service); | 39 PrefService* pref_service); |
42 | 40 |
43 // net::URLRequestContextGetter implementation. | 41 // net::URLRequestContextGetter implementation. |
44 net::URLRequestContext* GetURLRequestContext() override; | 42 net::URLRequestContext* GetURLRequestContext() override; |
45 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() | 43 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. | 91 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. |
94 content::ProtocolHandlerMap protocol_handlers_; | 92 content::ProtocolHandlerMap protocol_handlers_; |
95 content::URLRequestInterceptorScopedVector request_interceptors_; | 93 content::URLRequestInterceptorScopedVector request_interceptors_; |
96 | 94 |
97 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); | 95 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); |
98 }; | 96 }; |
99 | 97 |
100 } // namespace android_webview | 98 } // namespace android_webview |
101 | 99 |
102 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 100 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |