OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |