| 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 // Tell the sync server that this client has disabled sync. | 718 // Tell the sync server that this client has disabled sync. |
| 719 void RemoveClientFromServer() const; | 719 void RemoveClientFromServer() const; |
| 720 | 720 |
| 721 // Called when the system is under memory pressure. | 721 // Called when the system is under memory pressure. |
| 722 void OnMemoryPressure( | 722 void OnMemoryPressure( |
| 723 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 723 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 724 | 724 |
| 725 // Check if previous shutdown is shutdown cleanly. | 725 // Check if previous shutdown is shutdown cleanly. |
| 726 void ReportPreviousSessionMemoryWarningCount(); | 726 void ReportPreviousSessionMemoryWarningCount(); |
| 727 | 727 |
| 728 // Estimates and records memory usage histograms per type. |
| 729 void RecordMemoryUsageHistograms(); |
| 730 |
| 728 // After user switches to custom passphrase encryption a set of steps needs to | 731 // After user switches to custom passphrase encryption a set of steps needs to |
| 729 // be performed: | 732 // be performed: |
| 730 // | 733 // |
| 731 // - Download all latest updates from server (catch up configure). | 734 // - Download all latest updates from server (catch up configure). |
| 732 // - Clear user data on server. | 735 // - Clear user data on server. |
| 733 // - Clear directory so that data is merged from model types and encrypted. | 736 // - Clear directory so that data is merged from model types and encrypted. |
| 734 // | 737 // |
| 735 // SyncServiceCrypto::BeginConfigureCatchUpBeforeClear() and the following two | 738 // SyncServiceCrypto::BeginConfigureCatchUpBeforeClear() and the following two |
| 736 // functions perform these steps. | 739 // functions perform these steps. |
| 737 | 740 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 899 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
| 897 | 900 |
| 898 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 901 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 899 }; | 902 }; |
| 900 | 903 |
| 901 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 904 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
| 902 | 905 |
| 903 } // namespace browser_sync | 906 } // namespace browser_sync |
| 904 | 907 |
| 905 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 908 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |