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

Unified Diff: memory/memory_pressure_listener.h

Issue 2050803003: Update to Chromium //base at Chromium commit e3a753f17bac62738b0dbf0b36510f767b081e4b. (Closed) Base URL: https://github.com/domokit/base.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « memory/BUILD.gn ('k') | memory/memory_pressure_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: memory/memory_pressure_listener.h
diff --git a/memory/memory_pressure_listener.h b/memory/memory_pressure_listener.h
index 6adaeeed7fd272224b43fd63eb0a5ffc36416abd..83d47d7097e7949e2872a8aba38fc2be5dd46ae2 100644
--- a/memory/memory_pressure_listener.h
+++ b/memory/memory_pressure_listener.h
@@ -72,6 +72,12 @@ class BASE_EXPORT MemoryPressureListener {
// Intended for use by the platform specific implementation.
static void NotifyMemoryPressure(MemoryPressureLevel memory_pressure_level);
+ // These methods should not be used anywhere else but in memory measurement
+ // code, where they are intended to maintain stable conditions across
+ // measurements.
+ static bool AreNotificationsSuppressed();
+ static void SetNotificationsSuppressed(bool suppressed);
+
private:
void Notify(MemoryPressureLevel memory_pressure_level);
« no previous file with comments | « memory/BUILD.gn ('k') | memory/memory_pressure_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698