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

Unified Diff: content/browser/memory/memory_message_filter.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 | « content/browser/memory/memory_message_filter.h ('k') | content/browser/memory/memory_pressure_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_message_filter.cc
diff --git a/content/browser/memory/memory_message_filter.cc b/content/browser/memory/memory_message_filter.cc
index 110f8396aaef66833cdb05c640879fdb7811bd1b..9ab2adbd18ca7670664589e2972d841ed7778927 100644
--- a/content/browser/memory/memory_message_filter.cc
+++ b/content/browser/memory/memory_message_filter.cc
@@ -4,7 +4,7 @@
#include "content/browser/memory/memory_message_filter.h"
-#include "content/browser/memory/memory_pressure_controller.h"
+#include "content/browser/memory/memory_pressure_controller_impl.h"
#include "content/common/memory_messages.h"
namespace content {
@@ -27,11 +27,12 @@ MemoryMessageFilter::MemoryMessageFilter(
MemoryMessageFilter::~MemoryMessageFilter() {}
void MemoryMessageFilter::OnFilterAdded(IPC::Sender* sender) {
- MemoryPressureController::GetInstance()->OnMemoryMessageFilterAdded(this);
+ MemoryPressureControllerImpl::GetInstance()->OnMemoryMessageFilterAdded(this);
}
void MemoryMessageFilter::OnChannelClosing() {
- MemoryPressureController::GetInstance()->OnMemoryMessageFilterRemoved(this);
+ MemoryPressureControllerImpl::GetInstance()
+ ->OnMemoryMessageFilterRemoved(this);
}
bool MemoryMessageFilter::OnMessageReceived(const IPC::Message& message) {
« no previous file with comments | « content/browser/memory/memory_message_filter.h ('k') | content/browser/memory/memory_pressure_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698