| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 // Called by WebContents to override the WebKit preferences that are used by | 524 // Called by WebContents to override the WebKit preferences that are used by |
| 525 // the renderer. The content layer will add its own settings, and then it's up | 525 // the renderer. The content layer will add its own settings, and then it's up |
| 526 // to the embedder to update it if it wants. | 526 // to the embedder to update it if it wants. |
| 527 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 527 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
| 528 WebPreferences* prefs) {} | 528 WebPreferences* prefs) {} |
| 529 | 529 |
| 530 // Notifies that BrowserURLHandler has been created, so that the embedder can | 530 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 531 // optionally add their own handlers. | 531 // optionally add their own handlers. |
| 532 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 532 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 533 | 533 |
| 534 // Clears |browser_context|'s data stored for the given |origin|. | |
| 535 // The datatypes to be removed are specified by |remove_cookies|, | |
| 536 // |remove_storage|, and |remove_cache|. Note that cookies should be removed | |
| 537 // for the entire eTLD+1 of |origin|. Must call |callback| when finished. | |
| 538 // TODO(crbug.com/668114): Depreacated. Use BrowsingDataRemover instead. | |
| 539 virtual void ClearSiteData(content::BrowserContext* browser_context, | |
| 540 const url::Origin& origin, | |
| 541 bool remove_cookies, | |
| 542 bool remove_storage, | |
| 543 bool remove_cache, | |
| 544 const base::Closure& callback) {} | |
| 545 | |
| 546 // Returns the default download directory. | 534 // Returns the default download directory. |
| 547 // This can be called on any thread. | 535 // This can be called on any thread. |
| 548 virtual base::FilePath GetDefaultDownloadDirectory(); | 536 virtual base::FilePath GetDefaultDownloadDirectory(); |
| 549 | 537 |
| 550 // Returns the default filename used in downloads when we have no idea what | 538 // Returns the default filename used in downloads when we have no idea what |
| 551 // else we should do with the file. | 539 // else we should do with the file. |
| 552 virtual std::string GetDefaultDownloadName(); | 540 virtual std::string GetDefaultDownloadName(); |
| 553 | 541 |
| 554 // Returns the path to the browser shader disk cache root. | 542 // Returns the path to the browser shader disk cache root. |
| 555 virtual base::FilePath GetShaderDiskCacheDirectory(); | 543 virtual base::FilePath GetShaderDiskCacheDirectory(); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 801 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 814 | 802 |
| 815 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 803 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 816 // this platform will experimentally be redirected to TaskScheduler. | 804 // this platform will experimentally be redirected to TaskScheduler. |
| 817 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 805 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 818 }; | 806 }; |
| 819 | 807 |
| 820 } // namespace content | 808 } // namespace content |
| 821 | 809 |
| 822 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 810 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |