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

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

Issue 16232019: Fix for finding a disabled origin after it was already moved to enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hiroki review #2 Created 7 years, 6 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 (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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Unregisters |origin| to track remote side changes for the |origin|. 94 // Unregisters |origin| to track remote side changes for the |origin|.
95 // Upon completion, invokes |callback|. 95 // Upon completion, invokes |callback|.
96 // The caller may call this method again when the remote service state 96 // The caller may call this method again when the remote service state
97 // migrates to REMOTE_SERVICE_OK state if the error code returned via 97 // migrates to REMOTE_SERVICE_OK state if the error code returned via
98 // |callback| was retriable ones. 98 // |callback| was retriable ones.
99 virtual void UnregisterOriginForTrackingChanges( 99 virtual void UnregisterOriginForTrackingChanges(
100 const GURL& origin, 100 const GURL& origin,
101 const SyncStatusCallback& callback) = 0; 101 const SyncStatusCallback& callback) = 0;
102 102
103 // Re-enables |origin| that was previously disabled. If |origin| is not a
104 // SyncFS app, then the origin is effectively ignored.
103 virtual void EnableOriginForTrackingChanges( 105 virtual void EnableOriginForTrackingChanges(
104 const GURL& origin, 106 const GURL& origin,
105 const SyncStatusCallback& callback) = 0; 107 const SyncStatusCallback& callback) = 0;
106 108
107 virtual void DisableOriginForTrackingChanges( 109 virtual void DisableOriginForTrackingChanges(
108 const GURL& origin, 110 const GURL& origin,
109 const SyncStatusCallback& callback) = 0; 111 const SyncStatusCallback& callback) = 0;
110 112
111 // Uninstalls the |origin| by deleting its remote data copy and then removing 113 // Uninstalls the |origin| by deleting its remote data copy and then removing
112 // the origin from the metadata store. 114 // the origin from the metadata store.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Gets the conflict resolution policy. 158 // Gets the conflict resolution policy.
157 virtual ConflictResolutionPolicy GetConflictResolutionPolicy() const = 0; 159 virtual ConflictResolutionPolicy GetConflictResolutionPolicy() const = 0;
158 160
159 private: 161 private:
160 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); 162 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService);
161 }; 163 };
162 164
163 } // namespace sync_file_system 165 } // namespace sync_file_system
164 166
165 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ 167 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698