Chromium Code Reviews| 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 void FlushDirectory(); | |
|
nyquist
2014/09/10 17:43:09
Add a comment about what this ends up doing. In wh
maniscalco
2014/09/10 17:49:03
Not const like the other FlushDirectory methods?
maxbogue
2014/09/10 20:11:02
Done.
maxbogue
2014/09/10 20:11:02
Done.
| |
| 798 | |
| 797 protected: | 799 protected: |
| 798 // Helper to configure the priority data types. | 800 // Helper to configure the priority data types. |
| 799 void ConfigurePriorityDataTypes(); | 801 void ConfigurePriorityDataTypes(); |
| 800 | 802 |
| 801 // Helper to install and configure a data type manager. | 803 // Helper to install and configure a data type manager. |
| 802 void ConfigureDataTypeManager(); | 804 void ConfigureDataTypeManager(); |
| 803 | 805 |
| 804 // Shuts down the backend sync components. | 806 // Shuts down the backend sync components. |
| 805 // |reason| dictates if syncing is being disabled or not, and whether | 807 // |reason| dictates if syncing is being disabled or not, and whether |
| 806 // to claim ownership of sync thread from backend. | 808 // 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_; | 1173 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
| 1172 | 1174 |
| 1173 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1175 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1174 }; | 1176 }; |
| 1175 | 1177 |
| 1176 bool ShouldShowActionOnUI( | 1178 bool ShouldShowActionOnUI( |
| 1177 const syncer::SyncProtocolError& error); | 1179 const syncer::SyncProtocolError& error); |
| 1178 | 1180 |
| 1179 | 1181 |
| 1180 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1182 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |