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

Unified Diff: content/browser/devtools/protocol/memory_handler.cc

Issue 1641813002: Provide renderers with memory pressure signals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contentapi
Patch Set: Addressed creis' comments. Created 4 years, 11 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 | « chrome/browser/memory/tab_stats.cc ('k') | content/browser/memory/memory_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/memory_handler.cc
diff --git a/content/browser/devtools/protocol/memory_handler.cc b/content/browser/devtools/protocol/memory_handler.cc
index ef5cda2703abb4cb957e357d9d3c489897698d0a..9107fa93a4fd5bb38f5b3ad627bab73e3d462a86 100644
--- a/content/browser/devtools/protocol/memory_handler.cc
+++ b/content/browser/devtools/protocol/memory_handler.cc
@@ -6,7 +6,7 @@
#include "base/memory/memory_pressure_listener.h"
#include "base/strings/stringprintf.h"
-#include "content/browser/memory/memory_pressure_controller.h"
+#include "content/browser/memory/memory_pressure_controller_impl.h"
namespace content {
namespace devtools {
@@ -18,7 +18,7 @@ MemoryHandler::~MemoryHandler() {}
MemoryHandler::Response MemoryHandler::SetPressureNotificationsSuppressed(
bool suppressed) {
- content::MemoryPressureController::GetInstance()
+ content::MemoryPressureControllerImpl::GetInstance()
->SetPressureNotificationsSuppressedInAllProcesses(suppressed);
return Response::OK();
}
@@ -35,7 +35,7 @@ MemoryHandler::Response MemoryHandler::SimulatePressureNotification(
"Invalid memory pressure level '%s'", level.c_str()));
}
- MemoryPressureController::GetInstance()
+ MemoryPressureControllerImpl::GetInstance()
->SimulatePressureNotificationInAllProcesses(parsed_level);
return Response::OK();
}
« no previous file with comments | « chrome/browser/memory/tab_stats.cc ('k') | content/browser/memory/memory_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698