| 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 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 543 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 544 | 544 |
| 545 // Clears browser cache. | 545 // Clears browser cache. |
| 546 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. | 546 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. |
| 547 virtual void ClearCache(RenderFrameHost* rfh) {} | 547 virtual void ClearCache(RenderFrameHost* rfh) {} |
| 548 | 548 |
| 549 // Clears browser cookies. | 549 // Clears browser cookies. |
| 550 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. | 550 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. |
| 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 should be removed | |
| 556 // for the entire eTLD+1 of |origin|. Must call |callback| when finished. | |
| 557 // TODO(crbug.com/668114): Depreacated. Use BrowsingDataRemover instead. | |
| 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 | |
| 565 // Returns the default download directory. | 553 // Returns the default download directory. |
| 566 // This can be called on any thread. | 554 // This can be called on any thread. |
| 567 virtual base::FilePath GetDefaultDownloadDirectory(); | 555 virtual base::FilePath GetDefaultDownloadDirectory(); |
| 568 | 556 |
| 569 // Returns the default filename used in downloads when we have no idea what | 557 // Returns the default filename used in downloads when we have no idea what |
| 570 // else we should do with the file. | 558 // else we should do with the file. |
| 571 virtual std::string GetDefaultDownloadName(); | 559 virtual std::string GetDefaultDownloadName(); |
| 572 | 560 |
| 573 // Returns the path to the browser shader disk cache root. | 561 // Returns the path to the browser shader disk cache root. |
| 574 virtual base::FilePath GetShaderDiskCacheDirectory(); | 562 virtual base::FilePath GetShaderDiskCacheDirectory(); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 820 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 833 | 821 |
| 834 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 822 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 835 // this platform will experimentally be redirected to TaskScheduler. | 823 // this platform will experimentally be redirected to TaskScheduler. |
| 836 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 837 }; | 825 }; |
| 838 | 826 |
| 839 } // namespace content | 827 } // namespace content |
| 840 | 828 |
| 841 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |