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_AW_BROWSER_CONTEXT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "android_webview/browser/aw_download_manager_delegate.h" | 10 #include "android_webview/browser/aw_download_manager_delegate.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class GURL; | 21 class GURL; |
22 class PrefService; | 22 class PrefService; |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class ResourceContext; | 25 class ResourceContext; |
26 class SSLHostStateDelegate; | 26 class SSLHostStateDelegate; |
27 class WebContents; | 27 class WebContents; |
28 } | 28 } |
29 | 29 |
30 namespace data_reduction_proxy { | 30 namespace data_reduction_proxy { |
31 class DataReductionProxyAuthRequestHandler; | |
32 class DataReductionProxySettings; | 31 class DataReductionProxySettings; |
33 } | 32 } |
34 | 33 |
35 namespace net { | 34 namespace net { |
36 class CookieStore; | 35 class CookieStore; |
37 } | 36 } |
38 | 37 |
39 namespace visitedlink { | 38 namespace visitedlink { |
40 class VisitedLinkMaster; | 39 class VisitedLinkMaster; |
41 } | 40 } |
42 | 41 |
43 using data_reduction_proxy::DataReductionProxyAuthRequestHandler; | |
44 using data_reduction_proxy::DataReductionProxySettings; | |
45 | |
46 namespace android_webview { | 42 namespace android_webview { |
47 | 43 |
48 class AwFormDatabaseService; | 44 class AwFormDatabaseService; |
49 class AwQuotaManagerBridge; | 45 class AwQuotaManagerBridge; |
50 class AwURLRequestContextGetter; | 46 class AwURLRequestContextGetter; |
51 class JniDependencyFactory; | 47 class JniDependencyFactory; |
52 | 48 |
53 class AwBrowserContext : public content::BrowserContext, | 49 class AwBrowserContext : public content::BrowserContext, |
54 public visitedlink::VisitedLinkDelegate { | 50 public visitedlink::VisitedLinkDelegate { |
55 public: | 51 public: |
(...skipping 24 matching lines...) Expand all Loading... |
80 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 76 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
81 const base::FilePath& partition_path, | 77 const base::FilePath& partition_path, |
82 bool in_memory, | 78 bool in_memory, |
83 content::ProtocolHandlerMap* protocol_handlers, | 79 content::ProtocolHandlerMap* protocol_handlers, |
84 content::URLRequestInterceptorScopedVector request_interceptors); | 80 content::URLRequestInterceptorScopedVector request_interceptors); |
85 | 81 |
86 AwQuotaManagerBridge* GetQuotaManagerBridge(); | 82 AwQuotaManagerBridge* GetQuotaManagerBridge(); |
87 | 83 |
88 AwFormDatabaseService* GetFormDatabaseService(); | 84 AwFormDatabaseService* GetFormDatabaseService(); |
89 | 85 |
90 DataReductionProxySettings* GetDataReductionProxySettings(); | 86 data_reduction_proxy::DataReductionProxySettings* |
91 | 87 GetDataReductionProxySettings(); |
92 DataReductionProxyAuthRequestHandler* | |
93 GetDataReductionProxyAuthRequestHandler(); | |
94 | 88 |
95 void CreateUserPrefServiceIfNecessary(); | 89 void CreateUserPrefServiceIfNecessary(); |
96 | 90 |
97 // content::BrowserContext implementation. | 91 // content::BrowserContext implementation. |
98 virtual base::FilePath GetPath() const OVERRIDE; | 92 virtual base::FilePath GetPath() const OVERRIDE; |
99 virtual bool IsOffTheRecord() const OVERRIDE; | 93 virtual bool IsOffTheRecord() const OVERRIDE; |
100 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 94 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
101 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 95 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
102 int renderer_child_id) OVERRIDE; | 96 int renderer_child_id) OVERRIDE; |
103 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 97 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
130 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; | 124 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; |
131 scoped_ptr<AwFormDatabaseService> form_database_service_; | 125 scoped_ptr<AwFormDatabaseService> form_database_service_; |
132 | 126 |
133 AwDownloadManagerDelegate download_manager_delegate_; | 127 AwDownloadManagerDelegate download_manager_delegate_; |
134 | 128 |
135 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 129 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
136 scoped_ptr<content::ResourceContext> resource_context_; | 130 scoped_ptr<content::ResourceContext> resource_context_; |
137 | 131 |
138 scoped_ptr<PrefService> user_pref_service_; | 132 scoped_ptr<PrefService> user_pref_service_; |
139 | 133 |
140 scoped_ptr<DataReductionProxySettings> data_reduction_proxy_settings_; | 134 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
141 scoped_ptr<DataReductionProxyAuthRequestHandler> | 135 data_reduction_proxy_settings_; |
142 data_reduction_proxy_auth_request_handler_; | |
143 | 136 |
144 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 137 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
145 }; | 138 }; |
146 | 139 |
147 } // namespace android_webview | 140 } // namespace android_webview |
148 | 141 |
149 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 142 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
OLD | NEW |