Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2949923004: Reland: [Sync] Record sync memory usage in histogram broken by datatypes (Closed)
Patch Set: Fix linker error Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698