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

Unified Diff: base/memory/memory_coordinator_client.h

Issue 2482783002: Add StateOn{Moderate,Critical}NotificationReceived metrics (Closed)
Patch Set: Wrap -> Make Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | content/browser/memory/memory_coordinator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/memory_coordinator_client.h
diff --git a/base/memory/memory_coordinator_client.h b/base/memory/memory_coordinator_client.h
index 7d4681eed0ab270bfc8b9f8b98139bb28ae9db84..f9694dfba408d62cf6760d410cd0cbf454456bb1 100644
--- a/base/memory/memory_coordinator_client.h
+++ b/base/memory/memory_coordinator_client.h
@@ -22,7 +22,7 @@ namespace base {
// MemoryState is an indicator that processes can use to guide their memory
// allocation policies. For example, a process that receives the suspended
// state can use that as as signal to drop memory caches.
Ilya Sherman 2016/11/07 19:28:51 Please document that this enum is used to back an
bashi 2016/11/08 00:33:35 Done.
-enum class MemoryState {
+enum class MemoryState : int {
// The state is unknown.
UNKNOWN = -1,
// No memory constraints.
@@ -38,6 +38,8 @@ enum class MemoryState {
SUSPENDED = 2,
};
+const int kMemoryStateMax = static_cast<int>(MemoryState::SUSPENDED) + 1;
+
// Returns a string representation of MemoryState.
BASE_EXPORT const char* MemoryStateToString(MemoryState state);
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | content/browser/memory/memory_coordinator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698