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 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
543 // Notifies that BrowserURLHandler has been created, so that the embedder can | 543 // Notifies that BrowserURLHandler has been created, so that the embedder can |
544 // optionally add their own handlers. | 544 // optionally add their own handlers. |
545 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 545 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
546 | 546 |
547 // Clears browser cache. | 547 // Clears browser cache. |
548 virtual void ClearCache(RenderFrameHost* rfh) {} | 548 virtual void ClearCache(RenderFrameHost* rfh) {} |
549 | 549 |
550 // Clears browser cookies. | 550 // Clears browser cookies. |
551 virtual void ClearCookies(RenderFrameHost* rfh) {} | 551 virtual void ClearCookies(RenderFrameHost* rfh) {} |
552 | 552 |
553 // Clears |browser_context|'s data stored for the given |origin|. | |
554 // The datatypes to be removed are specified by |remove_cookies|, | |
555 // |remove_storage|, and |remove_cache|. Note that cookies will be removed | |
556 // for the entire eTLD+1 of |origin|. | |
nasko
2016/07/28 17:30:31
Why would cookies and other types of data differ?
msramek
2016/08/01 16:03:19
The proposal is to delete data for an origin as a
| |
557 virtual void ClearSiteData( | |
558 content::BrowserContext* browser_context, const url::Origin& origin, | |
nasko
2016/07/28 17:30:31
style: Each parameter goes on a new line. Ideally,
msramek
2016/08/01 16:03:19
Done, also ran git cl format. (Some parts of this
nasko
2016/08/03 20:53:13
The main goal of git cl format is to remove any di
| |
559 bool remove_cookies, bool remove_storage, bool remove_cache) {} | |
560 | |
553 // Returns the default download directory. | 561 // Returns the default download directory. |
554 // This can be called on any thread. | 562 // This can be called on any thread. |
555 virtual base::FilePath GetDefaultDownloadDirectory(); | 563 virtual base::FilePath GetDefaultDownloadDirectory(); |
556 | 564 |
557 // Returns the default filename used in downloads when we have no idea what | 565 // Returns the default filename used in downloads when we have no idea what |
558 // else we should do with the file. | 566 // else we should do with the file. |
559 virtual std::string GetDefaultDownloadName(); | 567 virtual std::string GetDefaultDownloadName(); |
560 | 568 |
561 // Returns the path to the browser shader disk cache root. | 569 // Returns the path to the browser shader disk cache root. |
562 virtual base::FilePath GetShaderDiskCacheDirectory(); | 570 virtual base::FilePath GetShaderDiskCacheDirectory(); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
775 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 783 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
776 // implementation. Return nullptr to disable external surface video. | 784 // implementation. Return nullptr to disable external surface video. |
777 virtual ExternalVideoSurfaceContainer* | 785 virtual ExternalVideoSurfaceContainer* |
778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 786 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
779 #endif | 787 #endif |
780 }; | 788 }; |
781 | 789 |
782 } // namespace content | 790 } // namespace content |
783 | 791 |
784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |