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

Unified Diff: content/common/memory_messages.h

Issue 2882513004: Remove renderer notifications of memory pressure. (Closed)
Patch Set: Merge Created 3 years, 7 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/common/content_message_generator.h ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/memory_messages.h
diff --git a/content/common/memory_messages.h b/content/common/memory_messages.h
deleted file mode 100644
index 42f0d47e7af94513bd51ae448e08e39f5d812f75..0000000000000000000000000000000000000000
--- a/content/common/memory_messages.h
+++ /dev/null
@@ -1,39 +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.
-
-// This file contains IPC messages for controlling memory pressure handling
-// in child processes for the purposes of enforcing consistent conditions
-// across memory measurements.
-
-// Multiply-included message header, no traditional include guard.
-
-#include "base/memory/memory_pressure_listener.h"
-#include "ipc/ipc_message_macros.h"
-#include "content/common/content_export.h"
-
-#undef IPC_MESSAGE_EXPORT
-#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
-
-#define IPC_MESSAGE_START MemoryMsgStart
-
-IPC_ENUM_TRAITS_VALIDATE(
- base::MemoryPressureListener::MemoryPressureLevel,
- (value == base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE ||
- value == base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL))
-
-// Sent to all child processes to enable/disable suppressing memory pressure
-// notifications.
-IPC_MESSAGE_CONTROL1(MemoryMsg_SetPressureNotificationsSuppressed,
- bool /* suppressed */)
-
-// Sent to all child processes to simulate a memory pressure notification.
-IPC_MESSAGE_CONTROL1(
- MemoryMsg_SimulatePressureNotification,
- base::MemoryPressureListener::MemoryPressureLevel /* level */)
-
-// Sent by the browser to all child processes to indicate an actual memory
-// pressure notification.
-IPC_MESSAGE_CONTROL1(
- MemoryMsg_PressureNotification,
- base::MemoryPressureListener::MemoryPressureLevel /* level */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698