| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 // still in deferred start mode, meaning the SyncableService hasn't been | 693 // still in deferred start mode, meaning the SyncableService hasn't been |
| 694 // told to MergeDataAndStartSyncing yet. | 694 // told to MergeDataAndStartSyncing yet. |
| 695 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); | 695 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); |
| 696 | 696 |
| 697 // Return sync token status. | 697 // Return sync token status. |
| 698 SyncTokenStatus GetSyncTokenStatus() const; | 698 SyncTokenStatus GetSyncTokenStatus() const; |
| 699 | 699 |
| 700 browser_sync::FaviconCache* GetFaviconCache(); | 700 browser_sync::FaviconCache* GetFaviconCache(); |
| 701 | 701 |
| 702 protected: | 702 protected: |
| 703 // Used by test classes that derive from ProfileSyncService. |
| 704 virtual browser_sync::SyncBackendHost* GetBackendForTest(); |
| 705 |
| 703 // Helper to configure the priority data types. | 706 // Helper to configure the priority data types. |
| 704 void ConfigurePriorityDataTypes(); | 707 void ConfigurePriorityDataTypes(); |
| 705 | 708 |
| 706 // Helper to install and configure a data type manager. | 709 // Helper to install and configure a data type manager. |
| 707 void ConfigureDataTypeManager(); | 710 void ConfigureDataTypeManager(); |
| 708 | 711 |
| 709 // Shuts down the backend sync components. | 712 // Shuts down the backend sync components. |
| 710 // |option| indicates if syncing is being disabled or not, and whether | 713 // |option| indicates if syncing is being disabled or not, and whether |
| 711 // to claim ownership of sync thread from backend. | 714 // to claim ownership of sync thread from backend. |
| 712 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option); | 715 void ShutdownImpl(browser_sync::SyncBackendHost::ShutdownOption option); |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 scoped_ptr<SessionsSyncManager> sessions_sync_manager_; | 1041 scoped_ptr<SessionsSyncManager> sessions_sync_manager_; |
| 1039 | 1042 |
| 1040 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1043 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1041 }; | 1044 }; |
| 1042 | 1045 |
| 1043 bool ShouldShowActionOnUI( | 1046 bool ShouldShowActionOnUI( |
| 1044 const syncer::SyncProtocolError& error); | 1047 const syncer::SyncProtocolError& error); |
| 1045 | 1048 |
| 1046 | 1049 |
| 1047 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1050 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |