Index: components/task_scheduler_util/variations/browser_variations_util.h |
diff --git a/components/task_scheduler_util/variations/browser_variations_util.h b/components/task_scheduler_util/variations/browser_variations_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4892919f0c9f8ee045c4907c094571c07550438a |
--- /dev/null |
+++ b/components/task_scheduler_util/variations/browser_variations_util.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_ |
+#define COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_ |
+ |
+#include <vector> |
+ |
+#include "base/task_scheduler/scheduler_worker_pool_params.h" |
+ |
+namespace task_scheduler_util { |
+namespace variations { |
+ |
+// Gets the browser SchedulerWorkerPoolParams vector based off of variations. |
+// Returns an empty vector on failure. |
+std::vector<base::SchedulerWorkerPoolParams> |
+GetBrowserSchedulerWorkerPoolParamsFromVariations(); |
+ |
+// Performs various PostTask style redirections to the browser task scheduler |
+// based off of input from the variations parameters. |
gab
2016/12/06 19:16:08
// Redirects zero-to-many PostTask APIs to the bro
robliao
2016/12/07 00:03:55
Done.
|
+void MaybePerformBrowserTaskSchedulerRedirection(); |
+ |
+} // variations |
+} // namespace task_scheduler_util |
+ |
+#endif // COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_ |