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

Unified Diff: base/memory/memory_coordinator_client.h

Issue 2466773002: memory coordinator: Add trace macros to track state changes (Closed)
Patch Set: 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
Index: base/memory/memory_coordinator_client.h
diff --git a/base/memory/memory_coordinator_client.h b/base/memory/memory_coordinator_client.h
index d63b17cc1f8b88779dfaa83b7a677529dbc37573..6e75a4d00670ba6d5f47672f7d6ffb6a33ca30d2 100644
--- a/base/memory/memory_coordinator_client.h
+++ b/base/memory/memory_coordinator_client.h
@@ -5,6 +5,8 @@
#ifndef BASE_MEMORY_MEMORY_COORDINATOR_CLIENT_H_
#define BASE_MEMORY_MEMORY_COORDINATOR_CLIENT_H_
+#include <stdint.h>
+
#include "base/base_export.h"
namespace base {
@@ -22,7 +24,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.
-enum class MemoryState {
+enum class MemoryState : int32_t {
// The state is unknown.
UNKNOWN = -1,
// No memory constraints.
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | content/browser/memory/memory_coordinator_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698