| 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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 | 779 |
| 780 // Set when sync receives DISABLED_BY_ADMIN error from server. Prevents | 780 // Set when sync receives DISABLED_BY_ADMIN error from server. Prevents |
| 781 // ProfileSyncService from starting engine till browser restarted or user | 781 // ProfileSyncService from starting engine till browser restarted or user |
| 782 // signed out. | 782 // signed out. |
| 783 bool sync_disabled_by_admin_; | 783 bool sync_disabled_by_admin_; |
| 784 | 784 |
| 785 // Set to true if a signin has completed but we're still waiting for the | 785 // Set to true if a signin has completed but we're still waiting for the |
| 786 // engine to refresh its credentials. | 786 // engine to refresh its credentials. |
| 787 bool is_auth_in_progress_; | 787 bool is_auth_in_progress_; |
| 788 | 788 |
| 789 // The location where the local sync backend stores its data. | |
| 790 base::FilePath local_sync_backend_folder_; | |
| 791 | |
| 792 // Information describing an unrecoverable error. | 789 // Information describing an unrecoverable error. |
| 793 UnrecoverableErrorReason unrecoverable_error_reason_; | 790 UnrecoverableErrorReason unrecoverable_error_reason_; |
| 794 std::string unrecoverable_error_message_; | 791 std::string unrecoverable_error_message_; |
| 795 tracked_objects::Location unrecoverable_error_location_; | 792 tracked_objects::Location unrecoverable_error_location_; |
| 796 | 793 |
| 797 // Manages the start and stop of the data types. | 794 // Manages the start and stop of the data types. |
| 798 std::unique_ptr<syncer::DataTypeManager> data_type_manager_; | 795 std::unique_ptr<syncer::DataTypeManager> data_type_manager_; |
| 799 | 796 |
| 800 base::ObserverList<syncer::ProtocolEventObserver> protocol_event_observers_; | 797 base::ObserverList<syncer::ProtocolEventObserver> protocol_event_observers_; |
| 801 base::ObserverList<syncer::TypeDebugInfoObserver> type_debug_info_observers_; | 798 base::ObserverList<syncer::TypeDebugInfoObserver> type_debug_info_observers_; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 889 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
| 893 | 890 |
| 894 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 891 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 895 }; | 892 }; |
| 896 | 893 |
| 897 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 894 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
| 898 | 895 |
| 899 } // namespace browser_sync | 896 } // namespace browser_sync |
| 900 | 897 |
| 901 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 898 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |