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

Side by Side Diff: content/public/browser/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: REMOVE_PLUGIN_DATA for eTLD+1 Created 4 years, 4 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 | « content/content_tests.gypi ('k') | no next file » | 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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 // Notifies that BrowserURLHandler has been created, so that the embedder can 538 // Notifies that BrowserURLHandler has been created, so that the embedder can
539 // optionally add their own handlers. 539 // optionally add their own handlers.
540 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} 540 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {}
541 541
542 // Clears browser cache. 542 // Clears browser cache.
543 virtual void ClearCache(RenderFrameHost* rfh) {} 543 virtual void ClearCache(RenderFrameHost* rfh) {}
544 544
545 // Clears browser cookies. 545 // Clears browser cookies.
546 virtual void ClearCookies(RenderFrameHost* rfh) {} 546 virtual void ClearCookies(RenderFrameHost* rfh) {}
547 547
548 // Clears |browser_context|'s data stored for the given |origin|.
549 // The datatypes to be removed are specified by |remove_cookies|,
550 // |remove_storage|, and |remove_cache|. Note that cookies should be removed
551 // for the entire eTLD+1 of |origin|. Must call |callback| when finished.
552 virtual void ClearSiteData(content::BrowserContext* browser_context,
553 const url::Origin& origin,
554 bool remove_cookies,
555 bool remove_storage,
556 bool remove_cache,
557 const base::Closure& callback) {}
558
548 // Returns the default download directory. 559 // Returns the default download directory.
549 // This can be called on any thread. 560 // This can be called on any thread.
550 virtual base::FilePath GetDefaultDownloadDirectory(); 561 virtual base::FilePath GetDefaultDownloadDirectory();
551 562
552 // Returns the default filename used in downloads when we have no idea what 563 // Returns the default filename used in downloads when we have no idea what
553 // else we should do with the file. 564 // else we should do with the file.
554 virtual std::string GetDefaultDownloadName(); 565 virtual std::string GetDefaultDownloadName();
555 566
556 // Returns the path to the browser shader disk cache root. 567 // Returns the path to the browser shader disk cache root.
557 virtual base::FilePath GetShaderDiskCacheDirectory(); 568 virtual base::FilePath GetShaderDiskCacheDirectory();
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 786 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
776 // implementation. Return nullptr to disable external surface video. 787 // implementation. Return nullptr to disable external surface video.
777 virtual ExternalVideoSurfaceContainer* 788 virtual ExternalVideoSurfaceContainer*
778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 789 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
779 #endif 790 #endif
780 }; 791 };
781 792
782 } // namespace content 793 } // namespace content
783 794
784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 795 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698