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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 2025683003: First experimental implementation of the Clear-Site-Data header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix ListValue iteration. Created 4 years, 6 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 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 content::SpeechRecognitionManagerDelegate* 214 content::SpeechRecognitionManagerDelegate*
211 CreateSpeechRecognitionManagerDelegate() override; 215 CreateSpeechRecognitionManagerDelegate() override;
212 net::NetLog* GetNetLog() override; 216 net::NetLog* GetNetLog() override;
213 content::AccessTokenStore* CreateAccessTokenStore() override; 217 content::AccessTokenStore* CreateAccessTokenStore() override;
214 bool IsFastShutdownPossible() override; 218 bool IsFastShutdownPossible() override;
215 void OverrideWebkitPrefs(content::RenderViewHost* rvh, 219 void OverrideWebkitPrefs(content::RenderViewHost* rvh,
216 content::WebPreferences* prefs) override; 220 content::WebPreferences* prefs) override;
217 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override; 221 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override;
218 void ClearCache(content::RenderFrameHost* rfh) override; 222 void ClearCache(content::RenderFrameHost* rfh) override;
219 void ClearCookies(content::RenderFrameHost* rfh) override; 223 void ClearCookies(content::RenderFrameHost* rfh) override;
224 void ClearSiteData(
225 content::BrowserContext* browser_context, const url::Origin& origin,
226 bool remove_cookies, bool remove_storage, bool remove_cache) override;
220 base::FilePath GetDefaultDownloadDirectory() override; 227 base::FilePath GetDefaultDownloadDirectory() override;
221 std::string GetDefaultDownloadName() override; 228 std::string GetDefaultDownloadName() override;
222 base::FilePath GetShaderDiskCacheDirectory() override; 229 base::FilePath GetShaderDiskCacheDirectory() override;
223 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; 230 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override;
224 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( 231 content::BrowserPpapiHost* GetExternalBrowserPpapiHost(
225 int plugin_process_id) override; 232 int plugin_process_id) override;
226 bool AllowPepperSocketAPI( 233 bool AllowPepperSocketAPI(
227 content::BrowserContext* browser_context, 234 content::BrowserContext* browser_context,
228 const GURL& url, 235 const GURL& url,
229 bool private_api, 236 bool private_api,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // Vector of additional ChromeContentBrowserClientParts. 347 // Vector of additional ChromeContentBrowserClientParts.
341 // Parts are deleted in the reverse order they are added. 348 // Parts are deleted in the reverse order they are added.
342 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 349 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
343 350
344 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 351 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
345 352
346 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 353 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
347 }; 354 };
348 355
349 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 356 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | chrome/browser/chrome_content_browser_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698