Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 scoped_ptr<net::URLRequestContext> url_request_context_; | 83 scoped_ptr<net::URLRequestContext> url_request_context_; |
| 84 | 84 |
| 85 // URLSecurityManager associated with the negotiate auth handler. It is | 85 // http_auth_preferences_ holds the preferences for the negotiate |
| 86 // configured to follow the auth_server_whitelist_ | 86 // authenticator. |
| 87 scoped_ptr<net::URLSecurityManager> url_security_manager_; | 87 scoped_ptr<net::HttpAuthPreferences> http_auth_preferences_; |
|
asanka
2015/12/01 05:30:03
The scoped_ptr<net::URLRequestContext> in line 83
aberent
2015/12/01 14:33:25
Done.
| |
| 88 | 88 |
| 89 // Store HTTP Auth-related policies in this thread. | 89 // Store HTTP Auth-related policies in this thread. |
| 90 std::string auth_android_negotiate_account_type_; | 90 std::string auth_android_negotiate_account_type_; |
| 91 std::string auth_server_whitelist_; | 91 std::string auth_server_whitelist_; |
| 92 | 92 |
| 93 // ProtocolHandlers and interceptors are stored here between | 93 // ProtocolHandlers and interceptors are stored here between |
| 94 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. | 94 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. |
| 95 content::ProtocolHandlerMap protocol_handlers_; | 95 content::ProtocolHandlerMap protocol_handlers_; |
| 96 content::URLRequestInterceptorScopedVector request_interceptors_; | 96 content::URLRequestInterceptorScopedVector request_interceptors_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); | 98 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace android_webview | 101 } // namespace android_webview |
| 102 | 102 |
| 103 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 103 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
| OLD | NEW |