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

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

Issue 11411352: Clear syncing flag after a remote or local sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: also check REMOTE_SERVICE_DISABLED state Created 8 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local_file_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // |processor| must have same or longer lifetime than this service. 82 // |processor| must have same or longer lifetime than this service.
83 void ProcessLocalChange(LocalChangeProcessor* processor, 83 void ProcessLocalChange(LocalChangeProcessor* processor,
84 const fileapi::SyncFileCallback& callback); 84 const fileapi::SyncFileCallback& callback);
85 85
86 // Returns true via |callback| if the given file |url| has local pending 86 // Returns true via |callback| if the given file |url| has local pending
87 // changes. 87 // changes.
88 void HasPendingLocalChanges( 88 void HasPendingLocalChanges(
89 const fileapi::FileSystemURL& url, 89 const fileapi::FileSystemURL& url,
90 const HasPendingLocalChangeCallback& callback); 90 const HasPendingLocalChangeCallback& callback);
91 91
92 // A local or remote sync has been finished (either successfully or
93 // with an error). Clears the internal sync flag and enable writing for |url|.
94 void ClearSyncFlagForURL(const fileapi::FileSystemURL& url);
95
92 // Returns the metadata of a remote file pointed by |url|. 96 // Returns the metadata of a remote file pointed by |url|.
93 virtual void GetLocalFileMetadata( 97 virtual void GetLocalFileMetadata(
94 const fileapi::FileSystemURL& url, 98 const fileapi::FileSystemURL& url,
95 const fileapi::SyncFileMetadataCallback& callback); 99 const fileapi::SyncFileMetadataCallback& callback);
96 100
97 // RemoteChangeProcessor overrides. 101 // RemoteChangeProcessor overrides.
98 virtual void PrepareForProcessRemoteChange( 102 virtual void PrepareForProcessRemoteChange(
99 const fileapi::FileSystemURL& url, 103 const fileapi::FileSystemURL& url,
100 const PrepareChangeCallback& callback) OVERRIDE; 104 const PrepareChangeCallback& callback) OVERRIDE;
101 virtual void ApplyRemoteChange( 105 virtual void ApplyRemoteChange(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 fileapi::SyncFileCallback local_sync_callback_; 172 fileapi::SyncFileCallback local_sync_callback_;
169 173
170 ObserverList<Observer> change_observers_; 174 ObserverList<Observer> change_observers_;
171 175
172 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService); 176 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService);
173 }; 177 };
174 178
175 } // namespace sync_file_system 179 } // namespace sync_file_system
176 180
177 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_ 181 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698