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

Unified Diff: content/public/browser/content_browser_client.h

Issue 2799433002: Use TaskScheduler::InitParams to initialize TaskScheduler in browser process. (Closed)
Patch Set: Created 3 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 714a4eb9558a7e6aaa6b6f0216d64d10b221a9e4..77514d6dc75a5a9be37ec001a9a419eb7845d997 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -50,7 +50,6 @@ class GURL;
namespace base {
class CommandLine;
class FilePath;
-class SchedulerWorkerPoolParams;
}
namespace gfx {
@@ -813,12 +812,10 @@ class CONTENT_EXPORT ContentBrowserClient {
// Returns the RapporService from the browser process.
virtual ::rappor::RapporService* GetRapporService();
- // Provides parameters for initializing the global task scheduler. If
- // |params_vector| is empty, default parameters are used.
- virtual void GetTaskSchedulerInitializationParams(
- std::vector<base::SchedulerWorkerPoolParams>* params_vector,
- base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
- index_to_traits_callback) {}
+ // Provides parameters for initializing the global task scheduler. Default
+ // params are used if this returns nullptr.
+ virtual std::unique_ptr<base::TaskScheduler::InitParams>
+ GetTaskSchedulerInitParams();
// Performs any necessary PostTask API redirection to the task scheduler.
virtual void PerformExperimentalTaskSchedulerRedirections() {}
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698