| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 browser_sync::SyncedDeviceTracker::Observer* observer); | 355 browser_sync::SyncedDeviceTracker::Observer* observer); |
| 356 | 356 |
| 357 // Fills state_map with a map of current data types that are possible to | 357 // Fills state_map with a map of current data types that are possible to |
| 358 // sync, as well as their states. | 358 // sync, as well as their states. |
| 359 void GetDataTypeControllerStates( | 359 void GetDataTypeControllerStates( |
| 360 browser_sync::DataTypeController::StateMap* state_map) const; | 360 browser_sync::DataTypeController::StateMap* state_map) const; |
| 361 | 361 |
| 362 // Disables sync for user. Use ShowLoginDialog to enable. | 362 // Disables sync for user. Use ShowLoginDialog to enable. |
| 363 virtual void DisableForUser(); | 363 virtual void DisableForUser(); |
| 364 | 364 |
| 365 // Disables sync for the user and prevents it from starting on next restart. |
| 366 virtual void StopSyncingPermanently(); |
| 367 |
| 365 // SyncFrontend implementation. | 368 // SyncFrontend implementation. |
| 366 virtual void OnBackendInitialized( | 369 virtual void OnBackendInitialized( |
| 367 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 370 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
| 368 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 371 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
| 369 debug_info_listener, | 372 debug_info_listener, |
| 370 bool success) OVERRIDE; | 373 bool success) OVERRIDE; |
| 371 virtual void OnSyncCycleCompleted() OVERRIDE; | 374 virtual void OnSyncCycleCompleted() OVERRIDE; |
| 372 virtual void OnSyncConfigureRetry() OVERRIDE; | 375 virtual void OnSyncConfigureRetry() OVERRIDE; |
| 373 virtual void OnConnectionStatusChange( | 376 virtual void OnConnectionStatusChange( |
| 374 syncer::ConnectionStatus status) OVERRIDE; | 377 syncer::ConnectionStatus status) OVERRIDE; |
| 375 virtual void OnStopSyncingPermanently() OVERRIDE; | |
| 376 virtual void OnPassphraseRequired( | 378 virtual void OnPassphraseRequired( |
| 377 syncer::PassphraseRequiredReason reason, | 379 syncer::PassphraseRequiredReason reason, |
| 378 const sync_pb::EncryptedData& pending_keys) OVERRIDE; | 380 const sync_pb::EncryptedData& pending_keys) OVERRIDE; |
| 379 virtual void OnPassphraseAccepted() OVERRIDE; | 381 virtual void OnPassphraseAccepted() OVERRIDE; |
| 380 virtual void OnEncryptedTypesChanged( | 382 virtual void OnEncryptedTypesChanged( |
| 381 syncer::ModelTypeSet encrypted_types, | 383 syncer::ModelTypeSet encrypted_types, |
| 382 bool encrypt_everything) OVERRIDE; | 384 bool encrypt_everything) OVERRIDE; |
| 383 virtual void OnEncryptionComplete() OVERRIDE; | 385 virtual void OnEncryptionComplete() OVERRIDE; |
| 384 virtual void OnMigrationNeededForTypes( | 386 virtual void OnMigrationNeededForTypes( |
| 385 syncer::ModelTypeSet types) OVERRIDE; | 387 syncer::ModelTypeSet types) OVERRIDE; |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 scoped_ptr<syncer::NetworkResources> network_resources_; | 1042 scoped_ptr<syncer::NetworkResources> network_resources_; |
| 1041 | 1043 |
| 1042 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1044 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1043 }; | 1045 }; |
| 1044 | 1046 |
| 1045 bool ShouldShowActionOnUI( | 1047 bool ShouldShowActionOnUI( |
| 1046 const syncer::SyncProtocolError& error); | 1048 const syncer::SyncProtocolError& error); |
| 1047 | 1049 |
| 1048 | 1050 |
| 1049 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1051 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |