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/http/http_network_session.h" | 13 #include "net/http/http_network_session.h" |
14 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
15 #include "net/url_request/url_request_job_factory.h" | 15 #include "net/url_request/url_request_job_factory.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 class CookieStore; | 18 class CookieStore; |
19 class HttpTransactionFactory; | 19 class HttpTransactionFactory; |
| 20 class HttpUserAgentSettings; |
20 class NetLog; | 21 class NetLog; |
21 class ProxyConfigService; | 22 class ProxyConfigService; |
22 class URLRequestContext; | 23 class URLRequestContext; |
23 class URLRequestJobFactory; | 24 class URLRequestJobFactory; |
24 } | 25 } |
25 | 26 |
26 namespace android_webview { | 27 namespace android_webview { |
27 | 28 |
28 class AwNetworkDelegate; | 29 class AwNetworkDelegate; |
29 | 30 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 64 |
64 void InitializeURLRequestContext(); | 65 void InitializeURLRequestContext(); |
65 | 66 |
66 const base::FilePath cache_path_; | 67 const base::FilePath cache_path_; |
67 scoped_refptr<net::CookieStore> cookie_store_; | 68 scoped_refptr<net::CookieStore> cookie_store_; |
68 scoped_ptr<net::NetLog> net_log_; | 69 scoped_ptr<net::NetLog> net_log_; |
69 scoped_ptr<net::URLRequestContext> url_request_context_; | 70 scoped_ptr<net::URLRequestContext> url_request_context_; |
70 scoped_ptr<net::ProxyConfigService> proxy_config_service_; | 71 scoped_ptr<net::ProxyConfigService> proxy_config_service_; |
71 scoped_ptr<net::URLRequestJobFactory> job_factory_; | 72 scoped_ptr<net::URLRequestJobFactory> job_factory_; |
72 scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 73 scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
| 74 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; |
73 | 75 |
74 // ProtocolHandlers and interceptors are stored here between | 76 // ProtocolHandlers and interceptors are stored here between |
75 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. | 77 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. |
76 content::ProtocolHandlerMap protocol_handlers_; | 78 content::ProtocolHandlerMap protocol_handlers_; |
77 content::URLRequestInterceptorScopedVector request_interceptors_; | 79 content::URLRequestInterceptorScopedVector request_interceptors_; |
78 | 80 |
79 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); | 81 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); |
80 }; | 82 }; |
81 | 83 |
82 } // namespace android_webview | 84 } // namespace android_webview |
83 | 85 |
84 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 86 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |