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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |