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_; |