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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // Notifies that BrowserURLHandler has been created, so that the embedder can | 544 // Notifies that BrowserURLHandler has been created, so that the embedder can |
545 // optionally add their own handlers. | 545 // optionally add their own handlers. |
546 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 546 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
547 | 547 |
548 // Clears browser cache. | 548 // Clears browser cache. |
549 virtual void ClearCache(RenderFrameHost* rfh) {} | 549 virtual void ClearCache(RenderFrameHost* rfh) {} |
550 | 550 |
551 // Clears browser cookies. | 551 // Clears browser cookies. |
552 virtual void ClearCookies(RenderFrameHost* rfh) {} | 552 virtual void ClearCookies(RenderFrameHost* rfh) {} |
553 | 553 |
| 554 // Clears |browser_context|'s data stored for the given |origin|. |
| 555 // The datatypes to be removed are specified by |remove_cookies|, |
| 556 // |remove_storage|, and |remove_cache|. Note that cookies will be removed |
| 557 // for the entire eTLD+1 of |origin|. |
| 558 virtual void ClearSiteData( |
| 559 content::BrowserContext* browser_context, const url::Origin& origin, |
| 560 bool remove_cookies, bool remove_storage, bool remove_cache) {} |
| 561 |
554 // Returns the default download directory. | 562 // Returns the default download directory. |
555 // This can be called on any thread. | 563 // This can be called on any thread. |
556 virtual base::FilePath GetDefaultDownloadDirectory(); | 564 virtual base::FilePath GetDefaultDownloadDirectory(); |
557 | 565 |
558 // Returns the default filename used in downloads when we have no idea what | 566 // Returns the default filename used in downloads when we have no idea what |
559 // else we should do with the file. | 567 // else we should do with the file. |
560 virtual std::string GetDefaultDownloadName(); | 568 virtual std::string GetDefaultDownloadName(); |
561 | 569 |
562 // Returns the path to the browser shader disk cache root. | 570 // Returns the path to the browser shader disk cache root. |
563 virtual base::FilePath GetShaderDiskCacheDirectory(); | 571 virtual base::FilePath GetShaderDiskCacheDirectory(); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
770 // implementation. Return nullptr to disable external surface video. | 778 // implementation. Return nullptr to disable external surface video. |
771 virtual ExternalVideoSurfaceContainer* | 779 virtual ExternalVideoSurfaceContainer* |
772 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
773 #endif | 781 #endif |
774 }; | 782 }; |
775 | 783 |
776 } // namespace content | 784 } // namespace content |
777 | 785 |
778 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |