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 d7a61c520f0ddb8940bc754f5f610e850f456fd8..0000000000000000000000000000000000000000 |
--- a/content/browser/memory/memory_message_filter.cc |
+++ /dev/null |
@@ -1,57 +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_impl.h" |
-#include "content/common/memory_messages.h" |
- |
-namespace content { |
- |
-MemoryMessageFilter::MemoryMessageFilter( |
- const BrowserChildProcessHost* child_process_host, |
- ProcessType process_type) |
- : BrowserMessageFilter(MemoryMsgStart), |
- process_host_(child_process_host), |
- process_type_(process_type) { |
- DCHECK_NE(process_type_, PROCESS_TYPE_RENDERER); |
-} |
- |
-MemoryMessageFilter::MemoryMessageFilter( |
- const RenderProcessHost* render_process_host) |
- : BrowserMessageFilter(MemoryMsgStart), |
- process_host_(render_process_host), |
- process_type_(PROCESS_TYPE_RENDERER) {} |
- |
-MemoryMessageFilter::~MemoryMessageFilter() {} |
- |
-void MemoryMessageFilter::OnFilterAdded(IPC::Channel* channel) { |
- MemoryPressureControllerImpl::GetInstance()->OnMemoryMessageFilterAdded(this); |
-} |
- |
-void MemoryMessageFilter::OnChannelClosing() { |
- MemoryPressureControllerImpl::GetInstance() |
- ->OnMemoryMessageFilterRemoved(this); |
-} |
- |
-bool MemoryMessageFilter::OnMessageReceived(const IPC::Message& message) { |
- return false; |
-} |
- |
-void MemoryMessageFilter::SendSetPressureNotificationsSuppressed( |
- bool suppressed) { |
- Send(new MemoryMsg_SetPressureNotificationsSuppressed(suppressed)); |
-} |
- |
-void MemoryMessageFilter::SendSimulatePressureNotification( |
- base::MemoryPressureListener::MemoryPressureLevel level) { |
- Send(new MemoryMsg_SimulatePressureNotification(level)); |
-} |
- |
-void MemoryMessageFilter::SendPressureNotification( |
- base::MemoryPressureListener::MemoryPressureLevel level) { |
- Send(new MemoryMsg_PressureNotification(level)); |
-} |
- |
-} // namespace content |