| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 BrowsingDataRemover::Observer* observer); | 787 BrowsingDataRemover::Observer* observer); |
| 788 void SetClearingBrowseringDataForTesting(base::Callback< | 788 void SetClearingBrowseringDataForTesting(base::Callback< |
| 789 void(BrowsingDataRemover::Observer*, Profile*, base::Time, base::Time)> | 789 void(BrowsingDataRemover::Observer*, Profile*, base::Time, base::Time)> |
| 790 c); | 790 c); |
| 791 | 791 |
| 792 // Return the base URL of the Sync Server. | 792 // Return the base URL of the Sync Server. |
| 793 static GURL GetSyncServiceURL(const base::CommandLine& command_line); | 793 static GURL GetSyncServiceURL(const base::CommandLine& command_line); |
| 794 | 794 |
| 795 base::Time GetDeviceBackupTimeForTesting() const; | 795 base::Time GetDeviceBackupTimeForTesting() const; |
| 796 | 796 |
| 797 // This triggers a Directory::SaveChanges() call on the sync thread. |
| 798 // It should be used to persist data to disk when the process might be |
| 799 // killed in the near future. |
| 800 void FlushDirectory() const; |
| 801 |
| 797 protected: | 802 protected: |
| 798 // Helper to configure the priority data types. | 803 // Helper to configure the priority data types. |
| 799 void ConfigurePriorityDataTypes(); | 804 void ConfigurePriorityDataTypes(); |
| 800 | 805 |
| 801 // Helper to install and configure a data type manager. | 806 // Helper to install and configure a data type manager. |
| 802 void ConfigureDataTypeManager(); | 807 void ConfigureDataTypeManager(); |
| 803 | 808 |
| 804 // Shuts down the backend sync components. | 809 // Shuts down the backend sync components. |
| 805 // |reason| dictates if syncing is being disabled or not, and whether | 810 // |reason| dictates if syncing is being disabled or not, and whether |
| 806 // to claim ownership of sync thread from backend. | 811 // to claim ownership of sync thread from backend. |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 1176 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
| 1172 | 1177 |
| 1173 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1178 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1174 }; | 1179 }; |
| 1175 | 1180 |
| 1176 bool ShouldShowActionOnUI( | 1181 bool ShouldShowActionOnUI( |
| 1177 const syncer::SyncProtocolError& error); | 1182 const syncer::SyncProtocolError& error); |
| 1178 | 1183 |
| 1179 | 1184 |
| 1180 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1185 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |