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

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

Issue 407073003: [SyncFS] Add completion callback to PromoteDemotedChanges (1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FAKE_SYNC_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE; 66 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE;
67 virtual void SetRemoteChangeProcessor( 67 virtual void SetRemoteChangeProcessor(
68 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) 68 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker)
69 OVERRIDE; 69 OVERRIDE;
70 virtual RemoteServiceState GetCurrentState() const OVERRIDE; 70 virtual RemoteServiceState GetCurrentState() const OVERRIDE;
71 virtual void GetOriginStatusMap( 71 virtual void GetOriginStatusMap(
72 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE; 72 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE;
73 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; 73 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE;
74 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE; 74 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE;
75 virtual void SetSyncEnabled(bool enabled) OVERRIDE; 75 virtual void SetSyncEnabled(bool enabled) OVERRIDE;
76 virtual void PromoteDemotedChanges() OVERRIDE; 76 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE;
77 virtual void ApplyLocalChange( 77 virtual void ApplyLocalChange(
78 const FileChange& local_change, 78 const FileChange& local_change,
79 const base::FilePath& local_path, 79 const base::FilePath& local_path,
80 const SyncFileMetadata& local_metadata, 80 const SyncFileMetadata& local_metadata,
81 const fileapi::FileSystemURL& url, 81 const fileapi::FileSystemURL& url,
82 const SyncStatusCallback& callback) OVERRIDE; 82 const SyncStatusCallback& callback) OVERRIDE;
83 virtual void OnNotificationReceived() OVERRIDE; 83 virtual void OnNotificationReceived() OVERRIDE;
84 virtual void OnReadyToSendRequests() OVERRIDE; 84 virtual void OnReadyToSendRequests() OVERRIDE;
85 virtual void OnRefreshTokenInvalid() OVERRIDE; 85 virtual void OnRefreshTokenInvalid() OVERRIDE;
86 virtual void OnNetworkChanged( 86 virtual void OnNetworkChanged(
(...skipping 28 matching lines...) Expand all
115 ObserverList<Observer> observers_; 115 ObserverList<Observer> observers_;
116 base::SequenceChecker sequence_checker_; 116 base::SequenceChecker sequence_checker_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(FakeSyncWorker); 118 DISALLOW_COPY_AND_ASSIGN(FakeSyncWorker);
119 }; 119 };
120 120
121 } // namespace drive_backend 121 } // namespace drive_backend
122 } // namespace sync_file_system 122 } // namespace sync_file_system
123 123
124 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ 124 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698