Chromium Code Reviews| 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 | |
|
nasko
2016/08/11 20:07:22
nit: s/will be removed/should be removed/, as this
msramek
2016/08/12 15:06:28
Done. Makes sense.
| |
| 557 // for the entire eTLD+1 of |origin|. Calls |callback| when finished. | |
|
nasko
2016/08/11 20:07:22
nit: Same here - must call |callback|.
msramek
2016/08/12 15:06:28
Done.
| |
| 558 virtual void ClearSiteData(content::BrowserContext* browser_context, | |
| 559 const url::Origin& origin, | |
| 560 bool remove_cookies, | |
| 561 bool remove_storage, | |
| 562 bool remove_cache, | |
| 563 const base::Closure& callback) {} | |
| 564 | |
| 554 // Returns the default download directory. | 565 // Returns the default download directory. |
| 555 // This can be called on any thread. | 566 // This can be called on any thread. |
| 556 virtual base::FilePath GetDefaultDownloadDirectory(); | 567 virtual base::FilePath GetDefaultDownloadDirectory(); |
| 557 | 568 |
| 558 // Returns the default filename used in downloads when we have no idea what | 569 // Returns the default filename used in downloads when we have no idea what |
| 559 // else we should do with the file. | 570 // else we should do with the file. |
| 560 virtual std::string GetDefaultDownloadName(); | 571 virtual std::string GetDefaultDownloadName(); |
| 561 | 572 |
| 562 // Returns the path to the browser shader disk cache root. | 573 // Returns the path to the browser shader disk cache root. |
| 563 virtual base::FilePath GetShaderDiskCacheDirectory(); | 574 virtual base::FilePath GetShaderDiskCacheDirectory(); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 789 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 779 // implementation. Return nullptr to disable external surface video. | 790 // implementation. Return nullptr to disable external surface video. |
| 780 virtual ExternalVideoSurfaceContainer* | 791 virtual ExternalVideoSurfaceContainer* |
| 781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 792 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 782 #endif | 793 #endif |
| 783 }; | 794 }; |
| 784 | 795 |
| 785 } // namespace content | 796 } // namespace content |
| 786 | 797 |
| 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |