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

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: Moved channel IDs under 'cookies' Created 4 years, 5 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 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // Notifies that BrowserURLHandler has been created, so that the embedder can 551 // Notifies that BrowserURLHandler has been created, so that the embedder can
552 // optionally add their own handlers. 552 // optionally add their own handlers.
553 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} 553 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {}
554 554
555 // Clears browser cache. 555 // Clears browser cache.
556 virtual void ClearCache(RenderFrameHost* rfh) {} 556 virtual void ClearCache(RenderFrameHost* rfh) {}
557 557
558 // Clears browser cookies. 558 // Clears browser cookies.
559 virtual void ClearCookies(RenderFrameHost* rfh) {} 559 virtual void ClearCookies(RenderFrameHost* rfh) {}
560 560
561 // Clears |browser_context|'s data stored for the given |origin|.
562 // The datatypes to be removed are specified by |remove_cookies|,
563 // |remove_storage|, and |remove_cache|. Note that cookies will be removed
564 // for the entire eTLD+1 of |origin|.
565 virtual void ClearSiteData(
566 content::BrowserContext* browser_context, const url::Origin& origin,
567 bool remove_cookies, bool remove_storage, bool remove_cache) {}
568
561 // Returns the default download directory. 569 // Returns the default download directory.
562 // This can be called on any thread. 570 // This can be called on any thread.
563 virtual base::FilePath GetDefaultDownloadDirectory(); 571 virtual base::FilePath GetDefaultDownloadDirectory();
564 572
565 // Returns the default filename used in downloads when we have no idea what 573 // Returns the default filename used in downloads when we have no idea what
566 // else we should do with the file. 574 // else we should do with the file.
567 virtual std::string GetDefaultDownloadName(); 575 virtual std::string GetDefaultDownloadName();
568 576
569 // Returns the path to the browser shader disk cache root. 577 // Returns the path to the browser shader disk cache root.
570 virtual base::FilePath GetShaderDiskCacheDirectory(); 578 virtual base::FilePath GetShaderDiskCacheDirectory();
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 791 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
784 // implementation. Return nullptr to disable external surface video. 792 // implementation. Return nullptr to disable external surface video.
785 virtual ExternalVideoSurfaceContainer* 793 virtual ExternalVideoSurfaceContainer*
786 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 794 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
787 #endif 795 #endif
788 }; 796 };
789 797
790 } // namespace content 798 } // namespace content
791 799
792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 800 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« content/browser/frame_host/navigation_handle_impl.cc ('K') | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698