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|. |
| 557 virtual void ClearSiteData(content::BrowserContext* browser_context, |
| 558 const url::Origin& origin, |
| 559 bool remove_cookies, |
| 560 bool remove_storage, |
| 561 bool remove_cache) {} |
| 562 |
553 // Returns the default download directory. | 563 // Returns the default download directory. |
554 // This can be called on any thread. | 564 // This can be called on any thread. |
555 virtual base::FilePath GetDefaultDownloadDirectory(); | 565 virtual base::FilePath GetDefaultDownloadDirectory(); |
556 | 566 |
557 // Returns the default filename used in downloads when we have no idea what | 567 // Returns the default filename used in downloads when we have no idea what |
558 // else we should do with the file. | 568 // else we should do with the file. |
559 virtual std::string GetDefaultDownloadName(); | 569 virtual std::string GetDefaultDownloadName(); |
560 | 570 |
561 // Returns the path to the browser shader disk cache root. | 571 // Returns the path to the browser shader disk cache root. |
562 virtual base::FilePath GetShaderDiskCacheDirectory(); | 572 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 | 785 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
776 // implementation. Return nullptr to disable external surface video. | 786 // implementation. Return nullptr to disable external surface video. |
777 virtual ExternalVideoSurfaceContainer* | 787 virtual ExternalVideoSurfaceContainer* |
778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 788 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
779 #endif | 789 #endif |
780 }; | 790 }; |
781 | 791 |
782 } // namespace content | 792 } // namespace content |
783 | 793 |
784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 794 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |