Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: android_webview/browser/aw_browser_context.h

Issue 1423713015: [WIP] WebRestrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "android_webview/browser/aw_message_port_service.h" 11 #include "android_webview/browser/aw_message_port_service.h"
12 #include "android_webview/browser/aw_metrics_service_client.h" 12 #include "android_webview/browser/aw_metrics_service_client.h"
13 #include "android_webview/browser/aw_ssl_host_state_delegate.h" 13 #include "android_webview/browser/aw_ssl_host_state_delegate.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "components/visitedlink/browser/visitedlink_delegate.h" 19 #include "components/visitedlink/browser/visitedlink_delegate.h"
20 #include "components/web_restriction/content_resolver_web_restriction_provider.h "
20 #include "content/public/browser/browser_context.h" 21 #include "content/public/browser/browser_context.h"
21 #include "content/public/browser/content_browser_client.h" 22 #include "content/public/browser/content_browser_client.h"
22 #include "net/url_request/url_request_job_factory.h" 23 #include "net/url_request/url_request_job_factory.h"
23 24
24 class GURL; 25 class GURL;
25 class PrefService; 26 class PrefService;
26 27
27 namespace content { 28 namespace content {
28 class PermissionManager; 29 class PermissionManager;
29 class ResourceContext; 30 class ResourceContext;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 AwFormDatabaseService* GetFormDatabaseService(); 106 AwFormDatabaseService* GetFormDatabaseService();
106 data_reduction_proxy::DataReductionProxySettings* 107 data_reduction_proxy::DataReductionProxySettings*
107 GetDataReductionProxySettings(); 108 GetDataReductionProxySettings();
108 data_reduction_proxy::DataReductionProxyIOData* 109 data_reduction_proxy::DataReductionProxyIOData*
109 GetDataReductionProxyIOData(); 110 GetDataReductionProxyIOData();
110 AwURLRequestContextGetter* GetAwURLRequestContext(); 111 AwURLRequestContextGetter* GetAwURLRequestContext();
111 AwMessagePortService* GetMessagePortService(); 112 AwMessagePortService* GetMessagePortService();
112 113
113 policy::URLBlacklistManager* GetURLBlacklistManager(); 114 policy::URLBlacklistManager* GetURLBlacklistManager();
114 115
116 web_restriction::ContentResolverWebRestrictionProvider*
117 GetWebRestrictionProvider();
118
115 // content::BrowserContext implementation. 119 // content::BrowserContext implementation.
116 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( 120 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
117 const base::FilePath& partition_path) override; 121 const base::FilePath& partition_path) override;
118 base::FilePath GetPath() const override; 122 base::FilePath GetPath() const override;
119 bool IsOffTheRecord() const override; 123 bool IsOffTheRecord() const override;
120 net::URLRequestContextGetter* GetRequestContext() override; 124 net::URLRequestContextGetter* GetRequestContext() override;
121 net::URLRequestContextGetter* GetRequestContextForRenderProcess( 125 net::URLRequestContextGetter* GetRequestContextForRenderProcess(
122 int renderer_child_id) override; 126 int renderer_child_id) override;
123 net::URLRequestContextGetter* GetMediaRequestContext() override; 127 net::URLRequestContextGetter* GetMediaRequestContext() override;
124 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 128 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 172
169 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> 173 scoped_ptr<data_reduction_proxy::DataReductionProxySettings>
170 data_reduction_proxy_settings_; 174 data_reduction_proxy_settings_;
171 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; 175 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_;
172 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> 176 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData>
173 data_reduction_proxy_io_data_; 177 data_reduction_proxy_io_data_;
174 scoped_ptr<data_reduction_proxy::DataReductionProxyService> 178 scoped_ptr<data_reduction_proxy::DataReductionProxyService>
175 data_reduction_proxy_service_; 179 data_reduction_proxy_service_;
176 scoped_ptr<content::PermissionManager> permission_manager_; 180 scoped_ptr<content::PermissionManager> permission_manager_;
177 181
182 scoped_ptr<web_restriction::ContentResolverWebRestrictionProvider>
183 web_restriction_provider_;
184
178 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); 185 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
179 }; 186 };
180 187
181 } // namespace android_webview 188 } // namespace android_webview
182 189
183 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 190 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698