Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2576243003: Add an experiment to redirect DOMStorageTaskRunner to TaskScheduler. (Closed)
Patch Set: fix compile Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_task_runner.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698