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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // the renderer. The content layer will add its own settings, and then it's up | 533 // the renderer. The content layer will add its own settings, and then it's up |
534 // to the embedder to update it if it wants. | 534 // to the embedder to update it if it wants. |
535 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 535 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
536 WebPreferences* prefs) {} | 536 WebPreferences* prefs) {} |
537 | 537 |
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 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. |
543 virtual void ClearCache(RenderFrameHost* rfh) {} | 544 virtual void ClearCache(RenderFrameHost* rfh) {} |
544 | 545 |
545 // Clears browser cookies. | 546 // Clears browser cookies. |
| 547 // TODO(crbug.com/668114): Deprecated. Use BrowsingDataRemover instead. |
546 virtual void ClearCookies(RenderFrameHost* rfh) {} | 548 virtual void ClearCookies(RenderFrameHost* rfh) {} |
547 | 549 |
548 // Clears |browser_context|'s data stored for the given |origin|. | 550 // Clears |browser_context|'s data stored for the given |origin|. |
549 // The datatypes to be removed are specified by |remove_cookies|, | 551 // The datatypes to be removed are specified by |remove_cookies|, |
550 // |remove_storage|, and |remove_cache|. Note that cookies should be removed | 552 // |remove_storage|, and |remove_cache|. Note that cookies should be removed |
551 // for the entire eTLD+1 of |origin|. Must call |callback| when finished. | 553 // for the entire eTLD+1 of |origin|. Must call |callback| when finished. |
| 554 // TODO(crbug.com/668114): Depreacated. Use BrowsingDataRemover instead. |
552 virtual void ClearSiteData(content::BrowserContext* browser_context, | 555 virtual void ClearSiteData(content::BrowserContext* browser_context, |
553 const url::Origin& origin, | 556 const url::Origin& origin, |
554 bool remove_cookies, | 557 bool remove_cookies, |
555 bool remove_storage, | 558 bool remove_storage, |
556 bool remove_cache, | 559 bool remove_cache, |
557 const base::Closure& callback) {} | 560 const base::Closure& callback) {} |
558 | 561 |
559 // Returns the default download directory. | 562 // Returns the default download directory. |
560 // This can be called on any thread. | 563 // This can be called on any thread. |
561 virtual base::FilePath GetDefaultDownloadDirectory(); | 564 virtual base::FilePath GetDefaultDownloadDirectory(); |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 828 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
826 | 829 |
827 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 830 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
828 // this platform will experimentally be redirected to TaskScheduler. | 831 // this platform will experimentally be redirected to TaskScheduler. |
829 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 832 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
830 }; | 833 }; |
831 | 834 |
832 } // namespace content | 835 } // namespace content |
833 | 836 |
834 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 837 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |