| 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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; | 489 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; |
| 490 | 490 |
| 491 // See the SyncServiceCrypto header. | 491 // See the SyncServiceCrypto header. |
| 492 virtual syncer::PassphraseType GetPassphraseType() const; | 492 virtual syncer::PassphraseType GetPassphraseType() const; |
| 493 virtual bool IsEncryptEverythingAllowed() const; | 493 virtual bool IsEncryptEverythingAllowed() const; |
| 494 virtual void SetEncryptEverythingAllowed(bool allowed); | 494 virtual void SetEncryptEverythingAllowed(bool allowed); |
| 495 | 495 |
| 496 // Returns true if the syncer is waiting for new datatypes to be encrypted. | 496 // Returns true if the syncer is waiting for new datatypes to be encrypted. |
| 497 virtual bool encryption_pending() const; | 497 virtual bool encryption_pending() const; |
| 498 | 498 |
| 499 SigninManagerBase* signin() const; | |
| 500 | |
| 501 syncer::SyncErrorController* sync_error_controller() { | 499 syncer::SyncErrorController* sync_error_controller() { |
| 502 return sync_error_controller_.get(); | 500 return sync_error_controller_.get(); |
| 503 } | 501 } |
| 504 | 502 |
| 505 // TODO(sync): This is only used in tests. Can we remove it? | 503 // TODO(sync): This is only used in tests. Can we remove it? |
| 506 const syncer::DataTypeStatusTable& data_type_status_table() const; | 504 const syncer::DataTypeStatusTable& data_type_status_table() const; |
| 507 | 505 |
| 508 syncer::DataTypeManager::ConfigureStatus configure_status() { | 506 syncer::DataTypeManager::ConfigureStatus configure_status() { |
| 509 return configure_status_; | 507 return configure_status_; |
| 510 } | 508 } |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 894 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
| 897 | 895 |
| 898 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 896 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 899 }; | 897 }; |
| 900 | 898 |
| 901 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 899 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
| 902 | 900 |
| 903 } // namespace browser_sync | 901 } // namespace browser_sync |
| 904 | 902 |
| 905 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 903 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |