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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
13 #include "net/url_request/url_request_context_getter.h" | 13 #include "net/url_request/url_request_context_getter.h" |
14 #include "net/url_request/url_request_job_factory.h" | 14 #include "net/url_request/url_request_job_factory.h" |
15 | 15 |
16 class PrefService; | 16 class PrefService; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 class CookieStore; | 19 class CookieStore; |
20 class HostResolver; | 20 class HostResolver; |
21 class HttpAuthHandlerFactory; | 21 class HttpAuthHandlerFactory; |
22 class HttpAuthPreferences; | |
22 class HttpUserAgentSettings; | 23 class HttpUserAgentSettings; |
23 class NetLog; | 24 class NetLog; |
24 class ProxyConfigService; | 25 class ProxyConfigService; |
25 class URLRequestContext; | 26 class URLRequestContext; |
26 class URLRequestJobFactory; | 27 class URLRequestJobFactory; |
27 class URLSecurityManager; | |
28 } | 28 } |
29 | 29 |
30 namespace android_webview { | 30 namespace android_webview { |
31 | 31 |
32 class AwNetworkDelegate; | 32 class AwNetworkDelegate; |
33 | 33 |
34 class AwURLRequestContextGetter : public net::URLRequestContextGetter { | 34 class AwURLRequestContextGetter : public net::URLRequestContextGetter { |
35 public: | 35 public: |
36 AwURLRequestContextGetter( | 36 AwURLRequestContextGetter( |
37 const base::FilePath& cache_path, | 37 const base::FilePath& cache_path, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 scoped_ptr<net::HttpAuthHandlerFactory> | 73 scoped_ptr<net::HttpAuthHandlerFactory> |
74 CreateNegotiateAuthHandlerFactory(net::HostResolver* resolver); | 74 CreateNegotiateAuthHandlerFactory(net::HostResolver* resolver); |
75 | 75 |
76 const base::FilePath cache_path_; | 76 const base::FilePath cache_path_; |
77 | 77 |
78 scoped_ptr<net::NetLog> net_log_; | 78 scoped_ptr<net::NetLog> net_log_; |
79 scoped_ptr<net::ProxyConfigService> proxy_config_service_; | 79 scoped_ptr<net::ProxyConfigService> proxy_config_service_; |
80 scoped_refptr<net::CookieStore> cookie_store_; | 80 scoped_refptr<net::CookieStore> cookie_store_; |
81 scoped_ptr<net::URLRequestJobFactory> job_factory_; | 81 scoped_ptr<net::URLRequestJobFactory> job_factory_; |
82 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; | 82 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; |
83 // http_auth_preferences_ holds the preferences for the negotiate | |
84 // authenticator. | |
85 scoped_ptr<net::HttpAuthPreferences> http_auth_preferences_; | |
cbentzel
2015/12/01 20:56:16
Is this guaranteed to outlive the negotiate factor
aberent
2015/12/02 13:30:18
Yes. The factory is owned by the URLRequestContext
| |
83 scoped_ptr<net::URLRequestContext> url_request_context_; | 86 scoped_ptr<net::URLRequestContext> url_request_context_; |
84 | 87 |
85 // URLSecurityManager associated with the negotiate auth handler. It is | |
86 // configured to follow the auth_server_whitelist_ | |
87 scoped_ptr<net::URLSecurityManager> url_security_manager_; | |
88 | |
89 // Store HTTP Auth-related policies in this thread. | 88 // Store HTTP Auth-related policies in this thread. |
90 std::string auth_android_negotiate_account_type_; | 89 std::string auth_android_negotiate_account_type_; |
91 std::string auth_server_whitelist_; | 90 std::string auth_server_whitelist_; |
92 | 91 |
93 // ProtocolHandlers and interceptors are stored here between | 92 // ProtocolHandlers and interceptors are stored here between |
94 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. | 93 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. |
95 content::ProtocolHandlerMap protocol_handlers_; | 94 content::ProtocolHandlerMap protocol_handlers_; |
96 content::URLRequestInterceptorScopedVector request_interceptors_; | 95 content::URLRequestInterceptorScopedVector request_interceptors_; |
97 | 96 |
98 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); | 97 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); |
99 }; | 98 }; |
100 | 99 |
101 } // namespace android_webview | 100 } // namespace android_webview |
102 | 101 |
103 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 102 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |