| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 // global stop syncing operation has wiped the store. | 371 // global stop syncing operation has wiped the store. |
| 372 virtual void OnStopSyncingPermanently() = 0; | 372 virtual void OnStopSyncingPermanently() = 0; |
| 373 | 373 |
| 374 // After a request to clear server data, these callbacks are invoked to | 374 // After a request to clear server data, these callbacks are invoked to |
| 375 // indicate success or failure. | 375 // indicate success or failure. |
| 376 virtual void OnClearServerDataSucceeded() = 0; | 376 virtual void OnClearServerDataSucceeded() = 0; |
| 377 virtual void OnClearServerDataFailed() = 0; | 377 virtual void OnClearServerDataFailed() = 0; |
| 378 | 378 |
| 379 // Called after we finish encrypting all appropriate datatypes. | 379 // Called after we finish encrypting all appropriate datatypes. |
| 380 virtual void OnEncryptionComplete( | 380 virtual void OnEncryptionComplete( |
| 381 const syncable::ModelTypeSet& encrypted_types) = 0; | 381 const syncable::ModelTypeSet& encrypted_types, |
| 382 bool encrypt_everything) = 0; |
| 382 | 383 |
| 383 virtual void OnActionableError( | 384 virtual void OnActionableError( |
| 384 const browser_sync::SyncProtocolError& sync_protocol_error) = 0; | 385 const browser_sync::SyncProtocolError& sync_protocol_error) = 0; |
| 385 | 386 |
| 386 protected: | 387 protected: |
| 387 virtual ~Observer(); | 388 virtual ~Observer(); |
| 388 }; | 389 }; |
| 389 | 390 |
| 390 // Create an uninitialized SyncManager. Callers must Init() before using. | 391 // Create an uninitialized SyncManager. Callers must Init() before using. |
| 391 explicit SyncManager(const std::string& name); | 392 explicit SyncManager(const std::string& name); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 }; | 569 }; |
| 569 | 570 |
| 570 bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, UserShare* share); | 571 bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, UserShare* share); |
| 571 | 572 |
| 572 // Returns the string representation of a PassphraseRequiredReason value. | 573 // Returns the string representation of a PassphraseRequiredReason value. |
| 573 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 574 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
| 574 | 575 |
| 575 } // namespace sync_api | 576 } // namespace sync_api |
| 576 | 577 |
| 577 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 578 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |