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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 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_SYNC_ENGINE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE; 121 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE;
122 virtual RemoteServiceState GetCurrentState() const OVERRIDE; 122 virtual RemoteServiceState GetCurrentState() const OVERRIDE;
123 virtual void GetOriginStatusMap(const StatusMapCallback& callback) OVERRIDE; 123 virtual void GetOriginStatusMap(const StatusMapCallback& callback) OVERRIDE;
124 virtual void DumpFiles(const GURL& origin, 124 virtual void DumpFiles(const GURL& origin,
125 const ListCallback& callback) OVERRIDE; 125 const ListCallback& callback) OVERRIDE;
126 virtual void DumpDatabase(const ListCallback& callback) OVERRIDE; 126 virtual void DumpDatabase(const ListCallback& callback) OVERRIDE;
127 virtual void SetSyncEnabled(bool enabled) OVERRIDE; 127 virtual void SetSyncEnabled(bool enabled) OVERRIDE;
128 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE; 128 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE;
129 129
130 // LocalChangeProcessor overrides. 130 // LocalChangeProcessor overrides.
131 virtual void ApplyLocalChange( 131 virtual void ApplyLocalChange(const FileChange& local_change,
132 const FileChange& local_change, 132 const base::FilePath& local_path,
133 const base::FilePath& local_path, 133 const SyncFileMetadata& local_metadata,
134 const SyncFileMetadata& local_metadata, 134 const storage::FileSystemURL& url,
135 const fileapi::FileSystemURL& url, 135 const SyncStatusCallback& callback) OVERRIDE;
136 const SyncStatusCallback& callback) OVERRIDE;
137 136
138 // drive::DriveNotificationObserver overrides. 137 // drive::DriveNotificationObserver overrides.
139 virtual void OnNotificationReceived() OVERRIDE; 138 virtual void OnNotificationReceived() OVERRIDE;
140 virtual void OnPushNotificationEnabled(bool enabled) OVERRIDE; 139 virtual void OnPushNotificationEnabled(bool enabled) OVERRIDE;
141 140
142 // drive::DriveServiceObserver overrides. 141 // drive::DriveServiceObserver overrides.
143 virtual void OnReadyToSendRequests() OVERRIDE; 142 virtual void OnReadyToSendRequests() OVERRIDE;
144 virtual void OnRefreshTokenInvalid() OVERRIDE; 143 virtual void OnRefreshTokenInvalid() OVERRIDE;
145 144
146 // net::NetworkChangeNotifier::NetworkChangeObserver overrides. 145 // net::NetworkChangeNotifier::NetworkChangeObserver overrides.
(...skipping 20 matching lines...) Expand all
167 drive::DriveNotificationManager* notification_manager, 166 drive::DriveNotificationManager* notification_manager,
168 ExtensionServiceInterface* extension_service, 167 ExtensionServiceInterface* extension_service,
169 SigninManagerBase* signin_manager, 168 SigninManagerBase* signin_manager,
170 OAuth2TokenService* token_service, 169 OAuth2TokenService* token_service,
171 net::URLRequestContextGetter* request_context, 170 net::URLRequestContextGetter* request_context,
172 scoped_ptr<DriveServiceFactory> drive_service_factory, 171 scoped_ptr<DriveServiceFactory> drive_service_factory,
173 leveldb::Env* env_override); 172 leveldb::Env* env_override);
174 173
175 // Called by WorkerObserver. 174 // Called by WorkerObserver.
176 void OnPendingFileListUpdated(int item_count); 175 void OnPendingFileListUpdated(int item_count);
177 void OnFileStatusChanged(const fileapi::FileSystemURL& url, 176 void OnFileStatusChanged(const storage::FileSystemURL& url,
178 SyncFileStatus file_status, 177 SyncFileStatus file_status,
179 SyncAction sync_action, 178 SyncAction sync_action,
180 SyncDirection direction); 179 SyncDirection direction);
181 void UpdateServiceState(RemoteServiceState state, 180 void UpdateServiceState(RemoteServiceState state,
182 const std::string& description); 181 const std::string& description);
183 182
184 SyncStatusCallback TrackCallback(const SyncStatusCallback& callback); 183 SyncStatusCallback TrackCallback(const SyncStatusCallback& callback);
185 184
186 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 185 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
187 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; 186 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 CallbackTracker callback_tracker_; 228 CallbackTracker callback_tracker_;
230 229
231 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; 230 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_;
232 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 231 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
233 }; 232 };
234 233
235 } // namespace drive_backend 234 } // namespace drive_backend
236 } // namespace sync_file_system 235 } // namespace sync_file_system
237 236
238 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 237 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698