| 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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 // Provides parameters for initializing the global task scheduler. If | 808 // Provides parameters for initializing the global task scheduler. If |
| 809 // |params_vector| is empty, default parameters are used. | 809 // |params_vector| is empty, default parameters are used. |
| 810 virtual void GetTaskSchedulerInitializationParams( | 810 virtual void GetTaskSchedulerInitializationParams( |
| 811 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | 811 std::vector<base::SchedulerWorkerPoolParams>* params_vector, |
| 812 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 812 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 813 index_to_traits_callback) {} | 813 index_to_traits_callback) {} |
| 814 | 814 |
| 815 // Performs any necessary PostTask API redirection to the task scheduler. | 815 // Performs any necessary PostTask API redirection to the task scheduler. |
| 816 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 816 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
| 817 | 817 |
| 818 // Returns true if the DOMStorageTaskRunner should be redirected to the task |
| 819 // scheduler. |
| 820 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 821 |
| 818 // 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 |
| 819 // this platform will experimentally be redirected to TaskScheduler. | 823 // this platform will experimentally be redirected to TaskScheduler. |
| 820 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 821 }; | 825 }; |
| 822 | 826 |
| 823 } // namespace content | 827 } // namespace content |
| 824 | 828 |
| 825 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |