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

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

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 8 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
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ssl_host_state_delegate.h" 12 #include "android_webview/browser/aw_ssl_host_state_delegate.h"
13 #include "base/basictypes.h" 13 #include "base/basictypes.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/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "components/visitedlink/browser/visitedlink_delegate.h" 18 #include "components/visitedlink/browser/visitedlink_delegate.h"
19 #include "content/public/browser/browser_context.h" 19 #include "content/public/browser/browser_context.h"
20 #include "content/public/browser/content_browser_client.h" 20 #include "content/public/browser/content_browser_client.h"
21 #include "net/url_request/url_request_job_factory.h" 21 #include "net/url_request/url_request_job_factory.h"
22 22
23 class GURL; 23 class GURL;
24 class PrefService; 24 class PrefService;
25 25
26 namespace content { 26 namespace content {
27 class PermissionManager;
27 class ResourceContext; 28 class ResourceContext;
28 class SSLHostStateDelegate; 29 class SSLHostStateDelegate;
29 class WebContents; 30 class WebContents;
30 } 31 }
31 32
32 namespace data_reduction_proxy { 33 namespace data_reduction_proxy {
33 class DataReductionProxyConfigurator; 34 class DataReductionProxyConfigurator;
34 class DataReductionProxyIOData; 35 class DataReductionProxyIOData;
35 class DataReductionProxyService; 36 class DataReductionProxyService;
36 class DataReductionProxySettings; 37 class DataReductionProxySettings;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int renderer_child_id) override; 115 int renderer_child_id) override;
115 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( 116 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
116 const base::FilePath& partition_path, 117 const base::FilePath& partition_path,
117 bool in_memory) override; 118 bool in_memory) override;
118 content::ResourceContext* GetResourceContext() override; 119 content::ResourceContext* GetResourceContext() override;
119 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 120 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
120 content::BrowserPluginGuestManager* GetGuestManager() override; 121 content::BrowserPluginGuestManager* GetGuestManager() override;
121 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 122 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
122 content::PushMessagingService* GetPushMessagingService() override; 123 content::PushMessagingService* GetPushMessagingService() override;
123 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 124 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
125 content::PermissionManager* GetPermissionManager() override;
124 126
125 // visitedlink::VisitedLinkDelegate implementation. 127 // visitedlink::VisitedLinkDelegate implementation.
126 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override; 128 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override;
127 129
128 private: 130 private:
129 void CreateDataReductionProxyStatisticsIfNecessary(); 131 void CreateDataReductionProxyStatisticsIfNecessary();
130 static bool data_reduction_proxy_enabled_; 132 static bool data_reduction_proxy_enabled_;
131 133
132 // Delay, in milliseconds, before removing the legacy cache dir. 134 // Delay, in milliseconds, before removing the legacy cache dir.
133 // This is non-const for testing purposes. 135 // This is non-const for testing purposes.
(...skipping 16 matching lines...) Expand all
150 152
151 scoped_ptr<PrefService> user_pref_service_; 153 scoped_ptr<PrefService> user_pref_service_;
152 154
153 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> 155 scoped_ptr<data_reduction_proxy::DataReductionProxySettings>
154 data_reduction_proxy_settings_; 156 data_reduction_proxy_settings_;
155 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; 157 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_;
156 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> 158 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData>
157 data_reduction_proxy_io_data_; 159 data_reduction_proxy_io_data_;
158 scoped_ptr<data_reduction_proxy::DataReductionProxyService> 160 scoped_ptr<data_reduction_proxy::DataReductionProxyService>
159 data_reduction_proxy_service_; 161 data_reduction_proxy_service_;
162 scoped_ptr<content::PermissionManager> permission_manager_;
160 163
161 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); 164 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
162 }; 165 };
163 166
164 } // namespace android_webview 167 } // namespace android_webview
165 168
166 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 169 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698