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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h

Issue 61203003: [SyncFS] Wire up LocalChangeProcessor to SyncTask (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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_
7 7
8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/sync_file_system/remote_change_processor.h"
8 #include "chrome/browser/sync_file_system/sync_callbacks.h" 10 #include "chrome/browser/sync_file_system/sync_callbacks.h"
9 #include "chrome/browser/sync_file_system/sync_task.h" 11 #include "chrome/browser/sync_file_system/sync_task.h"
10 12
13 namespace drive {
14 class DriveServiceInterface;
15 }
16
11 namespace sync_file_system { 17 namespace sync_file_system {
12 namespace drive_backend { 18 namespace drive_backend {
13 19
20 class MetadataDatabase;
21 class SyncEngineContext;
22
14 class RemoteToLocalSyncer : public SyncTask { 23 class RemoteToLocalSyncer : public SyncTask {
15 public: 24 public:
16 RemoteToLocalSyncer(); 25 explicit RemoteToLocalSyncer(SyncEngineContext* sync_context);
17 virtual ~RemoteToLocalSyncer(); 26 virtual ~RemoteToLocalSyncer();
18 virtual void Run(const SyncStatusCallback& callback) OVERRIDE; 27 virtual void Run(const SyncStatusCallback& callback) OVERRIDE;
19 28
20 private: 29 private:
30 drive::DriveServiceInterface* drive_service();
31 MetadataDatabase* metadata_database();
32 RemoteChangeProcessor* remote_change_processor();
33
34 SyncEngineContext* sync_context_; // Not owned.
35
36 base::WeakPtrFactory<RemoteToLocalSyncer> weak_ptr_factory_;
37
21 DISALLOW_COPY_AND_ASSIGN(RemoteToLocalSyncer); 38 DISALLOW_COPY_AND_ASSIGN(RemoteToLocalSyncer);
22 }; 39 };
23 40
24 } // namespace drive_backend 41 } // namespace drive_backend
25 } // namespace sync_file_system 42 } // namespace sync_file_system
26 43
27 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_ H_ 44 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698