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

Unified Diff: content/browser/memory/memory_message_filter.cc

Issue 1359873002: Revert of Architecture for cross-process memory notification suppressing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
deleted file mode 100644
index b386717789ea162798019087a797fc22258c309c..0000000000000000000000000000000000000000
--- a/content/browser/memory/memory_message_filter.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/memory/memory_message_filter.h"
-
-#include "content/browser/memory/memory_pressure_controller.h"
-#include "content/common/memory_messages.h"
-
-namespace content {
-
-MemoryMessageFilter::MemoryMessageFilter()
- : BrowserMessageFilter(MemoryMsgStart) {}
-
-MemoryMessageFilter::~MemoryMessageFilter() {}
-
-void MemoryMessageFilter::OnFilterAdded(IPC::Sender* sender) {
- MemoryPressureController::GetInstance()->OnMemoryMessageFilterAdded(this);
-}
-
-void MemoryMessageFilter::OnChannelClosing() {
- MemoryPressureController::GetInstance()->OnMemoryMessageFilterRemoved(this);
-}
-
-bool MemoryMessageFilter::OnMessageReceived(const IPC::Message& message) {
- return false;
-}
-
-void MemoryMessageFilter::SendSetPressureNotificationsSuppressed(
- bool suppressed) {
- Send(new MemoryMsg_SetPressureNotificationsSuppressed(suppressed));
-}
-
-} // namespace content
« 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