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

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

Issue 2570693003: Move Task Scheduler Initialization From ios/chrome/browser to Web (Closed)
Patch Set: Merge Fixes 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 | « ios/web/app/web_main_loop.mm ('k') | no next file » | 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 a47f8b511ac67c67dea14849dcbb5bde2eb604b4..a852a760058eaaa86d52960f3a24185b4aca0fb7 100644
--- a/ios/web/public/web_client.h
+++ b/ios/web/public/web_client.h
@@ -11,11 +11,13 @@
#include "base/callback.h"
#include "base/strings/string16.h"
#include "base/strings/string_piece.h"
+#include "base/task_scheduler/task_scheduler.h"
#include "ui/base/layout.h"
#include "url/url_util.h"
namespace base {
class RefCountedMemory;
+class SchedulerWorkerPoolParams;
}
class GURL;
@@ -127,6 +129,16 @@ class WebClient {
const GURL& request_url,
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) {}
+
+ // Performs any necessary PostTask API redirection to the task scheduler.
+ virtual void PerformExperimentalTaskSchedulerRedirections() {}
};
} // namespace web
« no previous file with comments | « ios/web/app/web_main_loop.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698