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

Side by Side Diff: sync/internal_api/public/sync_manager.h

Issue 153643006: sync: Remove dead code related to ClearUserData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 * notifications are enabled. 212 * notifications are enabled.
213 */ 213 */
214 // function getNotificationState(callback); 214 // function getNotificationState(callback);
215 215
216 virtual void OnInitializationComplete( 216 virtual void OnInitializationComplete(
217 const WeakHandle<JsBackend>& js_backend, 217 const WeakHandle<JsBackend>& js_backend,
218 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, 218 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
219 bool success, 219 bool success,
220 ModelTypeSet restored_types) = 0; 220 ModelTypeSet restored_types) = 0;
221 221
222 // We are no longer permitted to communicate with the server. Sync should
223 // be disabled and state cleaned up at once. This can happen for a number
224 // of reasons, e.g. swapping from a test instance to production, or a
225 // global stop syncing operation has wiped the store.
226 virtual void OnStopSyncingPermanently() = 0;
227
228 virtual void OnActionableError( 222 virtual void OnActionableError(
229 const SyncProtocolError& sync_protocol_error) = 0; 223 const SyncProtocolError& sync_protocol_error) = 0;
230 224
231 protected: 225 protected:
232 virtual ~Observer(); 226 virtual ~Observer();
233 }; 227 };
234 228
235 SyncManager(); 229 SyncManager();
236 virtual ~SyncManager(); 230 virtual ~SyncManager();
237 231
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Returns the SyncManager's encryption handler. 369 // Returns the SyncManager's encryption handler.
376 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; 370 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0;
377 371
378 // Ask the SyncManager to fetch updates for the given types. 372 // Ask the SyncManager to fetch updates for the given types.
379 virtual void RefreshTypes(ModelTypeSet types) = 0; 373 virtual void RefreshTypes(ModelTypeSet types) = 0;
380 }; 374 };
381 375
382 } // namespace syncer 376 } // namespace syncer
383 377
384 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 378 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/js_sync_manager_observer_unittest.cc ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698