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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 549 // Notifies that BrowserURLHandler has been created, so that the embedder can | 549 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 550 // optionally add their own handlers. | 550 // optionally add their own handlers. |
| 551 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 551 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 552 | 552 |
| 553 // Clears browser cache. | 553 // Clears browser cache. |
| 554 virtual void ClearCache(RenderFrameHost* rfh) {} | 554 virtual void ClearCache(RenderFrameHost* rfh) {} |
| 555 | 555 |
| 556 // Clears browser cookies. | 556 // Clears browser cookies. |
| 557 virtual void ClearCookies(RenderFrameHost* rfh) {} | 557 virtual void ClearCookies(RenderFrameHost* rfh) {} |
| 558 | 558 |
| 559 // Clears |browser_context|'s data stored for the given |origin|. | |
| 560 // The datatypes to be removed are specified by |remove_cookies|, | |
| 561 // |remove_storage|, and |remove_cache|. Note that cookies will be removed | |
| 562 // for the entire eTLD+1 of |origin|. | |
| 563 virtual void ClearSiteData( | |
|
Mike West
2016/06/02 07:05:44
Daniel, is this a structure that Opera would be ab
Daniel Bratell
2016/06/02 09:15:46
I did a quick check and it seems this should be fi
msramek
2016/06/14 20:12:08
Acknowledged.
| |
| 564 content::BrowserContext* browser_context, const url::Origin& origin, | |
| 565 bool remove_cookies, bool remove_storage, bool remove_cache) {} | |
| 566 | |
| 559 // Returns the default download directory. | 567 // Returns the default download directory. |
| 560 // This can be called on any thread. | 568 // This can be called on any thread. |
| 561 virtual base::FilePath GetDefaultDownloadDirectory(); | 569 virtual base::FilePath GetDefaultDownloadDirectory(); |
| 562 | 570 |
| 563 // Returns the default filename used in downloads when we have no idea what | 571 // Returns the default filename used in downloads when we have no idea what |
| 564 // else we should do with the file. | 572 // else we should do with the file. |
| 565 virtual std::string GetDefaultDownloadName(); | 573 virtual std::string GetDefaultDownloadName(); |
| 566 | 574 |
| 567 // Returns the path to the browser shader disk cache root. | 575 // Returns the path to the browser shader disk cache root. |
| 568 virtual base::FilePath GetShaderDiskCacheDirectory(); | 576 virtual base::FilePath GetShaderDiskCacheDirectory(); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 785 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 778 // implementation. Return nullptr to disable external surface video. | 786 // implementation. Return nullptr to disable external surface video. |
| 779 virtual ExternalVideoSurfaceContainer* | 787 virtual ExternalVideoSurfaceContainer* |
| 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 788 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 781 #endif | 789 #endif |
| 782 }; | 790 }; |
| 783 | 791 |
| 784 } // namespace content | 792 } // namespace content |
| 785 | 793 |
| 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 794 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |