| 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 // Called when a datatype (SyncableService) has a need for sync to start | 669 // Called when a datatype (SyncableService) has a need for sync to start |
| 670 // ASAP, presumably because a local change event has occurred but we're | 670 // ASAP, presumably because a local change event has occurred but we're |
| 671 // still in deferred start mode, meaning the SyncableService hasn't been | 671 // still in deferred start mode, meaning the SyncableService hasn't been |
| 672 // told to MergeDataAndStartSyncing yet. | 672 // told to MergeDataAndStartSyncing yet. |
| 673 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); | 673 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); |
| 674 | 674 |
| 675 // Return sync token status. | 675 // Return sync token status. |
| 676 SyncTokenStatus GetSyncTokenStatus() const; | 676 SyncTokenStatus GetSyncTokenStatus() const; |
| 677 | 677 |
| 678 protected: | 678 protected: |
| 679 // Used by test classes that derive from ProfileSyncService. | |
| 680 virtual browser_sync::SyncBackendHost* GetBackendForTest(); | |
| 681 | |
| 682 // Helper to configure the priority data types. | 679 // Helper to configure the priority data types. |
| 683 void ConfigurePriorityDataTypes(); | 680 void ConfigurePriorityDataTypes(); |
| 684 | 681 |
| 685 // Helper to install and configure a data type manager. | 682 // Helper to install and configure a data type manager. |
| 686 void ConfigureDataTypeManager(); | 683 void ConfigureDataTypeManager(); |
| 687 | 684 |
| 688 // Shuts down the backend sync components. | 685 // Shuts down the backend sync components. |
| 689 // |option| indicates if syncing is being disabled or not, and whether | 686 // |option| indicates if syncing is being disabled or not, and whether |
| 690 // to claim ownership of sync thread from backend. | 687 // to claim ownership of sync thread from backend. |
| 691 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option); | 688 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 base::Time next_token_request_time_; | 1012 base::Time next_token_request_time_; |
| 1016 | 1013 |
| 1017 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1014 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1018 }; | 1015 }; |
| 1019 | 1016 |
| 1020 bool ShouldShowActionOnUI( | 1017 bool ShouldShowActionOnUI( |
| 1021 const syncer::SyncProtocolError& error); | 1018 const syncer::SyncProtocolError& error); |
| 1022 | 1019 |
| 1023 | 1020 |
| 1024 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1021 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |