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

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

Issue 11421197: Implement SyncFileSystemService::GetFileSyncStatus method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent fix 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
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_REMOTE_FILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // After a change is processed |callback| will be called (to return 101 // After a change is processed |callback| will be called (to return
102 // the control to the sync engine). 102 // the control to the sync engine).
103 virtual void ProcessRemoteChange( 103 virtual void ProcessRemoteChange(
104 RemoteChangeProcessor* processor, 104 RemoteChangeProcessor* processor,
105 const fileapi::SyncOperationCallback& callback) = 0; 105 const fileapi::SyncOperationCallback& callback) = 0;
106 106
107 // Returns a LocalChangeProcessor that applies a local change to the remote 107 // Returns a LocalChangeProcessor that applies a local change to the remote
108 // storage backed by this service. 108 // storage backed by this service.
109 virtual LocalChangeProcessor* GetLocalChangeProcessor() = 0; 109 virtual LocalChangeProcessor* GetLocalChangeProcessor() = 0;
110 110
111 // Returns true if the file |url| is marked conflicted in the remote service.
112 virtual bool IsConflicting(const fileapi::FileSystemURL& url) = 0;
113
114 // TODO(kinuko,tzik): Clean up unused interface methods when we fix
115 // the manual conflict resolution API.
111 // Returns a list of conflicting files for the given origin. 116 // Returns a list of conflicting files for the given origin.
112 virtual void GetConflictFiles( 117 virtual void GetConflictFiles(
113 const GURL& origin, 118 const GURL& origin,
114 const fileapi::SyncFileSetCallback& callback) = 0; 119 const fileapi::SyncFileSetCallback& callback) = 0;
115 120
116 // Returns the metadata of a remote file pointed by |url|. 121 // Returns the metadata of a remote file pointed by |url|.
117 virtual void GetRemoteFileMetadata( 122 virtual void GetRemoteFileMetadata(
118 const fileapi::FileSystemURL& url, 123 const fileapi::FileSystemURL& url,
119 const fileapi::SyncFileMetadataCallback& callback) = 0; 124 const fileapi::SyncFileMetadataCallback& callback) = 0;
120 125
121 // Returns the current remote service state (should equal to the value 126 // Returns the current remote service state (should equal to the value
122 // returned by the last OnRemoteServiceStateUpdated notification. 127 // returned by the last OnRemoteServiceStateUpdated notification.
123 virtual RemoteServiceState GetCurrentState() const = 0; 128 virtual RemoteServiceState GetCurrentState() const = 0;
124 129
125 private: 130 private:
126 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); 131 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService);
127 }; 132 };
128 133
129 } // namespace sync_file_system 134 } // namespace sync_file_system
130 135
131 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ 136 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698