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

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

Issue 190243003: [SyncFS] Move FROM_HEREs in SyncTaskManager to its client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 cfd243e9b10a2586957b4636f90adaef2a2587c7..0eb19034f54020f382107ef94e3de9d87c28c139 100644
--- a/chrome/browser/sync_file_system/sync_task_manager.h
+++ b/chrome/browser/sync_file_system/sync_task_manager.h
@@ -57,23 +57,30 @@ class SyncTaskManager
void Initialize(SyncStatusCode status);
// Schedules a task at PRIORITY_MED.
- void ScheduleTask(const Task& task,
+ void ScheduleTask(const tracked_objects::Location& from_here,
+ const Task& task,
const SyncStatusCallback& callback);
- void ScheduleSyncTask(scoped_ptr<SyncTask> task,
+ void ScheduleSyncTask(const tracked_objects::Location& from_here,
+ scoped_ptr<SyncTask> task,
const SyncStatusCallback& callback);
// Schedules a task at the given priority.
- void ScheduleTaskAtPriority(const Task& task,
+ void ScheduleTaskAtPriority(const tracked_objects::Location& from_here,
+ const Task& task,
Priority priority,
const SyncStatusCallback& callback);
- void ScheduleSyncTaskAtPriority(scoped_ptr<SyncTask> task,
+ 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 Task& task, const SyncStatusCallback& callback);
- bool ScheduleSyncTaskIfIdle(scoped_ptr<SyncTask> task,
+ bool ScheduleTaskIfIdle(const tracked_objects::Location& from_here,
+ const Task& task,
+ const SyncStatusCallback& callback);
+ bool ScheduleSyncTaskIfIdle(const tracked_objects::Location& from_here,
+ scoped_ptr<SyncTask> task,
const SyncStatusCallback& callback);
void NotifyTaskDone(scoped_ptr<TaskToken> token,

Powered by Google App Engine
This is Rietveld 408576698