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

Side by Side Diff: chrome/browser/sync_file_system/local/local_file_sync_service.h

Issue 98633003: SyncFS v2: Add modest logging for ApplyLocalChange, ApplyRemoteChange (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 const fileapi::FileSystemURL& url, 188 const fileapi::FileSystemURL& url,
189 fileapi::FileSystemContext* file_system_context, 189 fileapi::FileSystemContext* file_system_context,
190 const PrepareChangeCallback& callback, 190 const PrepareChangeCallback& callback,
191 SyncStatusCode status); 191 SyncStatusCode status);
192 192
193 // Runs local_sync_callback_ and resets it. 193 // Runs local_sync_callback_ and resets it.
194 void RunLocalSyncCallback( 194 void RunLocalSyncCallback(
195 SyncStatusCode status, 195 SyncStatusCode status,
196 const fileapi::FileSystemURL& url); 196 const fileapi::FileSystemURL& url);
197 197
198 // Callback for ApplyRemoteChange.
199 void DidApplyRemoteChange(
200 const SyncStatusCallback& callback,
201 SyncStatusCode status);
202
198 // Callbacks for ProcessLocalChange. 203 // Callbacks for ProcessLocalChange.
199 void DidGetFileForLocalSync( 204 void DidGetFileForLocalSync(
200 SyncStatusCode status, 205 SyncStatusCode status,
201 const LocalFileSyncInfo& sync_file_info, 206 const LocalFileSyncInfo& sync_file_info,
202 webkit_blob::ScopedFile snapshot); 207 webkit_blob::ScopedFile snapshot);
203 void ProcessNextChangeForURL( 208 void ProcessNextChangeForURL(
204 webkit_blob::ScopedFile snapshot, 209 webkit_blob::ScopedFile snapshot,
205 const LocalFileSyncInfo& sync_file_info, 210 const LocalFileSyncInfo& sync_file_info,
206 const FileChange& last_change, 211 const FileChange& last_change,
207 const FileChangeList& changes, 212 const FileChangeList& changes,
(...skipping 26 matching lines...) Expand all
234 GetLocalChangeProcessorCallback get_local_change_processor_; 239 GetLocalChangeProcessorCallback get_local_change_processor_;
235 240
236 ObserverList<Observer> change_observers_; 241 ObserverList<Observer> change_observers_;
237 242
238 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService); 243 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService);
239 }; 244 };
240 245
241 } // namespace sync_file_system 246 } // namespace sync_file_system
242 247
243 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_ 248 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698