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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 2798623002: Use TaskScheduler::InitParams to initialize TaskScheduler in child processes. (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/child/child_process.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 78543f883ce061fd47b90459db6f184551651c57..704289c9fcd20c93717554a70ddcec6baf382360 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -29,7 +29,6 @@ class SkBitmap;
namespace base {
class FilePath;
-class SchedulerWorkerPoolParams;
}
namespace blink {
@@ -359,12 +358,10 @@ class CONTENT_EXPORT ContentRendererClient {
// An empty URL is returned if the URL is not overriden.
virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
- // Provides parameters for initializing the global task scheduler. If
- // |params_vector| is left 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();
// Returns true if the media pipeline can be suspended, or false otherwise.
virtual bool AllowMediaSuspend();
« no previous file with comments | « content/child/child_process.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698