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

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

Issue 12389017: Added function DeleteOriginDirectory to RemoteFileSyncService interface that removes the remote cop… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for commit Created 7 years, 9 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
« no previous file with comments | « chrome/browser/sync_file_system/mock_remote_file_sync_service.cc ('k') | no next file » | 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_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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Unregisters |origin| to track remote side changes for the |origin|. 93 // Unregisters |origin| to track remote side changes for the |origin|.
94 // Upon completion, invokes |callback|. 94 // Upon completion, invokes |callback|.
95 // The caller may call this method again when the remote service state 95 // The caller may call this method again when the remote service state
96 // migrates to REMOTE_SERVICE_OK state if the error code returned via 96 // migrates to REMOTE_SERVICE_OK state if the error code returned via
97 // |callback| was retriable ones. 97 // |callback| was retriable ones.
98 virtual void UnregisterOriginForTrackingChanges( 98 virtual void UnregisterOriginForTrackingChanges(
99 const GURL& origin, 99 const GURL& origin,
100 const SyncStatusCallback& callback) = 0; 100 const SyncStatusCallback& callback) = 0;
101 101
102 // Deletes the |origin| directory from the remote backing service.
103 virtual void DeleteOriginDirectory(
104 const GURL& origin,
105 const SyncStatusCallback& callback) = 0;
106
102 // Called by the sync engine to process one remote change. 107 // Called by the sync engine to process one remote change.
103 // After a change is processed |callback| will be called (to return 108 // After a change is processed |callback| will be called (to return
104 // the control to the sync engine). 109 // the control to the sync engine).
105 virtual void ProcessRemoteChange( 110 virtual void ProcessRemoteChange(
106 RemoteChangeProcessor* processor, 111 RemoteChangeProcessor* processor,
107 const SyncFileCallback& callback) = 0; 112 const SyncFileCallback& callback) = 0;
108 113
109 // Returns a LocalChangeProcessor that applies a local change to the remote 114 // Returns a LocalChangeProcessor that applies a local change to the remote
110 // storage backed by this service. 115 // storage backed by this service.
111 virtual LocalChangeProcessor* GetLocalChangeProcessor() = 0; 116 virtual LocalChangeProcessor* GetLocalChangeProcessor() = 0;
(...skipping 21 matching lines...) Expand all
133 // REMOTE_SERVICE_TEMPORARY_UNAVAILABLE). 138 // REMOTE_SERVICE_TEMPORARY_UNAVAILABLE).
134 virtual void SetSyncEnabled(bool enabled) = 0; 139 virtual void SetSyncEnabled(bool enabled) = 0;
135 140
136 private: 141 private:
137 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); 142 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService);
138 }; 143 };
139 144
140 } // namespace sync_file_system 145 } // namespace sync_file_system
141 146
142 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ 147 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/mock_remote_file_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698