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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 net::NetLog* GetNetLog() override; | 216 net::NetLog* GetNetLog() override; |
213 | 217 |
214 content::GeolocationDelegate* CreateGeolocationDelegate() override; | 218 content::GeolocationDelegate* CreateGeolocationDelegate() override; |
215 | 219 |
216 bool IsFastShutdownPossible() override; | 220 bool IsFastShutdownPossible() override; |
217 void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 221 void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
218 content::WebPreferences* prefs) override; | 222 content::WebPreferences* prefs) override; |
219 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override; | 223 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override; |
220 void ClearCache(content::RenderFrameHost* rfh) override; | 224 void ClearCache(content::RenderFrameHost* rfh) override; |
221 void ClearCookies(content::RenderFrameHost* rfh) override; | 225 void ClearCookies(content::RenderFrameHost* rfh) override; |
| 226 void ClearSiteData( |
| 227 content::BrowserContext* browser_context, const url::Origin& origin, |
| 228 bool remove_cookies, bool remove_storage, bool remove_cache) override; |
222 base::FilePath GetDefaultDownloadDirectory() override; | 229 base::FilePath GetDefaultDownloadDirectory() override; |
223 std::string GetDefaultDownloadName() override; | 230 std::string GetDefaultDownloadName() override; |
224 base::FilePath GetShaderDiskCacheDirectory() override; | 231 base::FilePath GetShaderDiskCacheDirectory() override; |
225 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; | 232 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; |
226 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 233 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
227 int plugin_process_id) override; | 234 int plugin_process_id) override; |
228 bool AllowPepperSocketAPI( | 235 bool AllowPepperSocketAPI( |
229 content::BrowserContext* browser_context, | 236 content::BrowserContext* browser_context, |
230 const GURL& url, | 237 const GURL& url, |
231 bool private_api, | 238 bool private_api, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 // Vector of additional ChromeContentBrowserClientParts. | 354 // Vector of additional ChromeContentBrowserClientParts. |
348 // Parts are deleted in the reverse order they are added. | 355 // Parts are deleted in the reverse order they are added. |
349 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 356 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
350 | 357 |
351 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 358 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
352 | 359 |
353 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 360 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
354 }; | 361 }; |
355 | 362 |
356 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 363 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |