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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 | 807 |
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 |
| 818 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 819 // this platform will experimentally be redirected to TaskScheduler. |
| 820 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
817 }; | 821 }; |
818 | 822 |
819 } // namespace content | 823 } // namespace content |
820 | 824 |
821 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 825 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |