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

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

Issue 59193003: [SyncFS] Add RemoteToLocalSyncer skeleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698