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

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: 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..3893fcf4f02a1316f191d8123f61bb84d0cc5b3e 100644
--- a/chrome/browser/sync_file_system/sync_task_manager.h
+++ b/chrome/browser/sync_file_system/sync_task_manager.h
@@ -57,23 +57,29 @@ 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);
nhiroki 2014/03/07 07:12:03 style-nit: can you add a line-break between "task"
tzik 2014/03/07 09:38:11 Done.
+ 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