Index: chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h |
diff --git a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h |
index cb16ee522e5f90f2163a22df569c09c3800d4136..4a7ad74120d902a7294e86590457daa873ca9213 100644 |
--- a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h |
+++ b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h |
@@ -5,19 +5,26 @@ |
#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_H_ |
#define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_H_ |
+#include "base/memory/weak_ptr.h" |
#include "chrome/browser/sync_file_system/sync_callbacks.h" |
#include "chrome/browser/sync_file_system/sync_task.h" |
namespace sync_file_system { |
namespace drive_backend { |
+class SyncEngineContext; |
+ |
class LocalToRemoteSyncer : public SyncTask { |
public: |
- LocalToRemoteSyncer(); |
+ explicit LocalToRemoteSyncer(SyncEngineContext* sync_context); |
virtual ~LocalToRemoteSyncer(); |
virtual void Run(const SyncStatusCallback& callback) OVERRIDE; |
private: |
+ SyncEngineContext* sync_context_; // Not owned. |
+ |
+ base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer); |
}; |