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

Unified Diff: chrome/browser/sync_file_system/sync_task_manager.h

Issue 190663004: [SyncFS] Drop default priority version of SyncTaskManager::ScheduleTask (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: chrome/browser/sync_file_system/sync_task_manager.h
diff --git a/chrome/browser/sync_file_system/sync_task_manager.h b/chrome/browser/sync_file_system/sync_task_manager.h
index 0eb19034f54020f382107ef94e3de9d87c28c139..6aa2da5acd424f6bc22a2c1c0ef45e9a2f450e3e 100644
--- a/chrome/browser/sync_file_system/sync_task_manager.h
+++ b/chrome/browser/sync_file_system/sync_task_manager.h
@@ -56,24 +56,16 @@ class SyncTaskManager
// service status. This should not be called more than once.
void Initialize(SyncStatusCode status);
- // Schedules a task at PRIORITY_MED.
+ // Schedules a task at the given priority.
void ScheduleTask(const tracked_objects::Location& from_here,
const Task& task,
+ Priority priority,
const SyncStatusCallback& callback);
void ScheduleSyncTask(const tracked_objects::Location& from_here,
scoped_ptr<SyncTask> task,
+ Priority priority,
const SyncStatusCallback& callback);
- // Schedules a task at the given priority.
- void ScheduleTaskAtPriority(const tracked_objects::Location& from_here,
- const Task& task,
- Priority priority,
- const SyncStatusCallback& callback);
- void ScheduleSyncTaskAtPriority(const tracked_objects::Location& from_here,
- scoped_ptr<SyncTask> task,
- Priority priority,
- const SyncStatusCallback& callback);
-
// Runs the posted task only when we're idle. Returns true if tha task is
// scheduled.
bool ScheduleTaskIfIdle(const tracked_objects::Location& from_here,

Powered by Google App Engine
This is Rietveld 408576698