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

Unified Diff: components/scheduler/child/scheduler_helper.h

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 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 | « components/policy/tools/generate_policy_source.py ('k') | components/scheduler/child/scheduler_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/scheduler_helper.h
diff --git a/components/scheduler/child/scheduler_helper.h b/components/scheduler/child/scheduler_helper.h
index 7ace6944c42b3d8ab5d0403f4bdd28c2fb46f73d..3cb6997f8bae7e7a3560282276b64c58b18309f3 100644
--- a/components/scheduler/child/scheduler_helper.h
+++ b/components/scheduler/child/scheduler_helper.h
@@ -6,6 +6,7 @@
#define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_HELPER_H_
#include "components/scheduler/child/cancelable_closure_holder.h"
+#include "components/scheduler/child/prioritizing_task_queue_selector.h"
#include "components/scheduler/child/single_thread_idle_task_runner.h"
#include "components/scheduler/child/task_queue_manager.h"
#include "components/scheduler/child/time_source.h"
@@ -13,7 +14,6 @@
namespace scheduler {
-class PrioritizingTaskQueueSelector;
class NestableSingleThreadTaskRunner;
// Common scheduler functionality for Default and Idle tasks.
@@ -159,11 +159,16 @@ class SCHEDULER_EXPORT SchedulerHelper {
// Accessor methods.
base::TimeTicks Now() const;
IdlePeriodState SchedulerIdlePeriodState() const;
- PrioritizingTaskQueueSelector* SchedulerTaskQueueSelector() const;
scoped_refptr<base::SingleThreadTaskRunner> TaskRunnerForQueue(
size_t queue_index) const;
void SetQueueName(size_t queue_index, const char* name);
bool IsQueueEmpty(size_t queue_index) const;
+ void SetQueuePriority(size_t queue_index,
+ PrioritizingTaskQueueSelector::QueuePriority priority);
+ void EnableQueue(size_t queue_index,
+ PrioritizingTaskQueueSelector::QueuePriority priority);
+ void DisableQueue(size_t queue_index);
+ bool IsQueueEnabled(size_t queue_index) const;
// Test helpers.
void SetTimeSourceForTesting(scoped_ptr<TimeSource> time_source);
« no previous file with comments | « components/policy/tools/generate_policy_source.py ('k') | components/scheduler/child/scheduler_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698