| 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 // Called by WebContents to override the WebKit preferences that are used by | 536 // Called by WebContents to override the WebKit preferences that are used by |
| 537 // the renderer. The content layer will add its own settings, and then it's up | 537 // the renderer. The content layer will add its own settings, and then it's up |
| 538 // to the embedder to update it if it wants. | 538 // to the embedder to update it if it wants. |
| 539 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 539 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
| 540 WebPreferences* prefs) {} | 540 WebPreferences* prefs) {} |
| 541 | 541 |
| 542 // Notifies that BrowserURLHandler has been created, so that the embedder can | 542 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 543 // optionally add their own handlers. | 543 // optionally add their own handlers. |
| 544 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 544 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 545 | 545 |
| 546 // Clears browser cache. | |
| 547 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. | |
| 548 virtual void ClearCache(RenderFrameHost* rfh) {} | |
| 549 | |
| 550 // Clears browser cookies. | |
| 551 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. | |
| 552 virtual void ClearCookies(RenderFrameHost* rfh) {} | |
| 553 | |
| 554 // Clears |browser_context|'s data stored for the given |origin|. | 546 // Clears |browser_context|'s data stored for the given |origin|. |
| 555 // The datatypes to be removed are specified by |remove_cookies|, | 547 // The datatypes to be removed are specified by |remove_cookies|, |
| 556 // |remove_storage|, and |remove_cache|. Note that cookies should be removed | 548 // |remove_storage|, and |remove_cache|. Note that cookies should be removed |
| 557 // for the entire eTLD+1 of |origin|. Must call |callback| when finished. | 549 // for the entire eTLD+1 of |origin|. Must call |callback| when finished. |
| 558 // TODO(crbug.com/668114): Depreacated. Use BrowsingDataRemover instead. | 550 // TODO(crbug.com/668114): Depreacated. Use BrowsingDataRemover instead. |
| 559 virtual void ClearSiteData(content::BrowserContext* browser_context, | 551 virtual void ClearSiteData(content::BrowserContext* browser_context, |
| 560 const url::Origin& origin, | 552 const url::Origin& origin, |
| 561 bool remove_cookies, | 553 bool remove_cookies, |
| 562 bool remove_storage, | 554 bool remove_storage, |
| 563 bool remove_cache, | 555 bool remove_cache, |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 825 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 834 | 826 |
| 835 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 827 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 836 // this platform will experimentally be redirected to TaskScheduler. | 828 // this platform will experimentally be redirected to TaskScheduler. |
| 837 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 829 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 838 }; | 830 }; |
| 839 | 831 |
| 840 } // namespace content | 832 } // namespace content |
| 841 | 833 |
| 842 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 834 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |