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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 namespace user_prefs { | 36 namespace user_prefs { |
37 class PrefRegistrySyncable; | 37 class PrefRegistrySyncable; |
38 } | 38 } |
39 | 39 |
40 namespace version_info { | 40 namespace version_info { |
41 enum class Channel; | 41 enum class Channel; |
42 } | 42 } |
43 | 43 |
| 44 namespace url { |
| 45 class Origin; |
| 46 } |
| 47 |
44 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 48 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
45 public: | 49 public: |
46 ChromeContentBrowserClient(); | 50 ChromeContentBrowserClient(); |
47 ~ChromeContentBrowserClient() override; | 51 ~ChromeContentBrowserClient() override; |
48 | 52 |
49 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
50 | 54 |
51 // Notification that the application locale has changed. This allows us to | 55 // Notification that the application locale has changed. This allows us to |
52 // update our I/O thread cache of this value. | 56 // update our I/O thread cache of this value. |
53 static void SetApplicationLocale(const std::string& locale); | 57 static void SetApplicationLocale(const std::string& locale); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 bool* no_javascript_access) override; | 210 bool* no_javascript_access) override; |
207 void ResourceDispatcherHostCreated() override; | 211 void ResourceDispatcherHostCreated() override; |
208 content::SpeechRecognitionManagerDelegate* | 212 content::SpeechRecognitionManagerDelegate* |
209 CreateSpeechRecognitionManagerDelegate() override; | 213 CreateSpeechRecognitionManagerDelegate() override; |
210 net::NetLog* GetNetLog() override; | 214 net::NetLog* GetNetLog() override; |
211 void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 215 void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
212 content::WebPreferences* prefs) override; | 216 content::WebPreferences* prefs) override; |
213 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override; | 217 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override; |
214 void ClearCache(content::RenderFrameHost* rfh) override; | 218 void ClearCache(content::RenderFrameHost* rfh) override; |
215 void ClearCookies(content::RenderFrameHost* rfh) override; | 219 void ClearCookies(content::RenderFrameHost* rfh) override; |
| 220 void ClearSiteData(content::BrowserContext* browser_context, |
| 221 const url::Origin& origin, |
| 222 bool remove_cookies, |
| 223 bool remove_storage, |
| 224 bool remove_cache, |
| 225 const base::Closure& callback) override; |
216 base::FilePath GetDefaultDownloadDirectory() override; | 226 base::FilePath GetDefaultDownloadDirectory() override; |
217 std::string GetDefaultDownloadName() override; | 227 std::string GetDefaultDownloadName() override; |
218 base::FilePath GetShaderDiskCacheDirectory() override; | 228 base::FilePath GetShaderDiskCacheDirectory() override; |
219 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; | 229 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; |
220 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 230 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
221 int plugin_process_id) override; | 231 int plugin_process_id) override; |
222 gpu::GpuChannelEstablishFactory* GetGpuChannelEstablishFactory() override; | 232 gpu::GpuChannelEstablishFactory* GetGpuChannelEstablishFactory() override; |
223 bool AllowPepperSocketAPI( | 233 bool AllowPepperSocketAPI( |
224 content::BrowserContext* browser_context, | 234 content::BrowserContext* browser_context, |
225 const GURL& url, | 235 const GURL& url, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 // Vector of additional ChromeContentBrowserClientParts. | 352 // Vector of additional ChromeContentBrowserClientParts. |
343 // Parts are deleted in the reverse order they are added. | 353 // Parts are deleted in the reverse order they are added. |
344 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 354 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
345 | 355 |
346 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 356 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
347 | 357 |
348 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 358 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
349 }; | 359 }; |
350 | 360 |
351 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 361 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |