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

Unified Diff: ios/web/public/web_client.h

Issue 2797803002: Use TaskScheduler::InitParams to initialize TaskScheduler in web_main_loop.mm. (Closed)
Patch Set: fix-build-error 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 | « ios/web/app/web_main_loop.mm ('k') | ios/web/public/web_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_client.h
diff --git a/ios/web/public/web_client.h b/ios/web/public/web_client.h
index feeac03cdfa5601d37d188fcf628829ace2f5778..0ade6caadb6bb77b25b269a35cd0121c4dfceadc 100644
--- a/ios/web/public/web_client.h
+++ b/ios/web/public/web_client.h
@@ -18,7 +18,6 @@
namespace base {
class RefCountedMemory;
-class SchedulerWorkerPoolParams;
}
class GURL;
@@ -125,12 +124,10 @@ class WebClient {
bool overridable,
const base::Callback<void(bool)>& callback);
- // 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 | « ios/web/app/web_main_loop.mm ('k') | ios/web/public/web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698