OLD | NEW |
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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 void GetDataTypeControllerStates( | 271 void GetDataTypeControllerStates( |
272 browser_sync::DataTypeController::StateMap* state_map) const; | 272 browser_sync::DataTypeController::StateMap* state_map) const; |
273 | 273 |
274 // Disables sync for user. Use ShowLoginDialog to enable. | 274 // Disables sync for user. Use ShowLoginDialog to enable. |
275 virtual void DisableForUser(); | 275 virtual void DisableForUser(); |
276 | 276 |
277 // syncer::InvalidationHandler implementation (via SyncFrontend). | 277 // syncer::InvalidationHandler implementation (via SyncFrontend). |
278 virtual void OnInvalidatorStateChange( | 278 virtual void OnInvalidatorStateChange( |
279 syncer::InvalidatorState state) OVERRIDE; | 279 syncer::InvalidatorState state) OVERRIDE; |
280 virtual void OnIncomingInvalidation( | 280 virtual void OnIncomingInvalidation( |
281 const syncer::ObjectIdInvalidationMap& invalidation_map, | 281 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
282 syncer::IncomingInvalidationSource source) OVERRIDE; | |
283 | 282 |
284 // SyncFrontend implementation. | 283 // SyncFrontend implementation. |
285 virtual void OnBackendInitialized( | 284 virtual void OnBackendInitialized( |
286 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 285 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
287 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 286 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
288 debug_info_listener, | 287 debug_info_listener, |
289 bool success) OVERRIDE; | 288 bool success) OVERRIDE; |
290 virtual void OnSyncCycleCompleted() OVERRIDE; | 289 virtual void OnSyncCycleCompleted() OVERRIDE; |
291 virtual void OnSyncConfigureRetry() OVERRIDE; | 290 virtual void OnSyncConfigureRetry() OVERRIDE; |
292 virtual void OnConnectionStatusChange( | 291 virtual void OnConnectionStatusChange( |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 902 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
904 | 903 |
905 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 904 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
906 }; | 905 }; |
907 | 906 |
908 bool ShouldShowActionOnUI( | 907 bool ShouldShowActionOnUI( |
909 const syncer::SyncProtocolError& error); | 908 const syncer::SyncProtocolError& error); |
910 | 909 |
911 | 910 |
912 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 911 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |