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

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

Issue 2539263003: Move Task Scheduler Initialization From chrome/browser to Content (Closed)
Patch Set: Rebase to bf8e2f1 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | no next file » | 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 43cf4f405c57249347e43066320026f1573e0266..39316c322bee54b716ddf62f3a5bba1058931a69 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -15,6 +15,7 @@
#include "base/callback_forward.h"
#include "base/memory/scoped_vector.h"
+#include "base/task_scheduler/task_scheduler.h"
#include "base/values.h"
#include "build/build_config.h"
#include "content/public/browser/certificate_request_result_type.h"
@@ -48,6 +49,7 @@ class GURL;
namespace base {
class CommandLine;
class FilePath;
+class SchedulerWorkerPoolParams;
}
namespace blink {
@@ -798,6 +800,16 @@ 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) {}
+
+ // Performs any necessary PostTask API redirection to the task scheduler.
+ virtual void PerformExperimentalTaskSchedulerRedirections() {}
};
} // namespace content
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698