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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_task_token.h

Issue 297803011: [SyncFS] Run LocalToRemoteSyncer as SyncTask (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/drive_backend/sync_task_token.h
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_task_token.h b/chrome/browser/sync_file_system/drive_backend/sync_task_token.h
index fcfa86eba5bdf7474c02004f365f1a46c54c23fb..2950b8c1327a9f6ba764dd6814becdcdcbf0e27d 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_task_token.h
+++ b/chrome/browser/sync_file_system/drive_backend/sync_task_token.h
@@ -21,9 +21,12 @@ struct BlockingFactor;
// should run exclusively, and held by SyncTaskManager when no task is running.
class SyncTaskToken {
public:
+ static const int64 kTestingTaskTokenID;
static const int64 kForegroundTaskTokenID;
static const int64 kMinimumBackgroundTaskTokenID;
+ static scoped_ptr<SyncTaskToken> CreateForTesting(
+ const SyncStatusCallback& callback);
static scoped_ptr<SyncTaskToken> CreateForForegroundTask(
const base::WeakPtr<SyncTaskManager>& manager);
static scoped_ptr<SyncTaskToken> CreateForBackgroundTask(
@@ -53,7 +56,8 @@ class SyncTaskToken {
private:
SyncTaskToken(const base::WeakPtr<SyncTaskManager>& manager,
int64 token_id,
- scoped_ptr<BlockingFactor> blocking_factor);
+ scoped_ptr<BlockingFactor> blocking_factor,
+ const SyncStatusCallback& callback);
base::WeakPtr<SyncTaskManager> manager_;
tracked_objects::Location location_;

Powered by Google App Engine
This is Rietveld 408576698