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

Side by Side Diff: content/common/memory_messages.h

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains IPC messages for controlling memory pressure handling 5 // This file contains IPC messages for controlling memory pressure handling
6 // in child processes for the purposes of enforcing consistent conditions 6 // in child processes for the purposes of enforcing consistent conditions
7 // across memory measurements. 7 // across memory measurements.
8 8
9 // Multiply-included message header, no traditional include guard. 9 // Multiply-included message header, no traditional include guard.
10 10
11 #include "base/memory/memory_pressure_listener.h" 11 #include "base/memory/memory_pressure_listener.h"
12 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 14
15 #undef IPC_MESSAGE_EXPORT 15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 17
18 #define IPC_MESSAGE_START MemoryMsgStart 18 #define IPC_MESSAGE_START MemoryMsgStart
19 19
20 IPC_ENUM_TRAITS_VALIDATE(
21 base::MemoryPressureListener::MemoryPressureLevel,
22 (value == base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE ||
23 value == base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL))
24
25 // Sent to all child processes to enable/disable suppressing memory pressure 20 // Sent to all child processes to enable/disable suppressing memory pressure
26 // notifications. 21 // notifications.
27 IPC_MESSAGE_CONTROL1(MemoryMsg_SetPressureNotificationsSuppressed, 22 IPC_MESSAGE_CONTROL1(MemoryMsg_SetPressureNotificationsSuppressed,
28 bool /* suppressed */) 23 bool /* suppressed */)
29 24
30 // Sent to all child processes to simulate a memory pressure notification. 25 // Sent to all child processes to simulate a memory pressure notification.
31 IPC_MESSAGE_CONTROL1( 26 IPC_MESSAGE_CONTROL1(
32 MemoryMsg_SimulatePressureNotification, 27 MemoryMsg_SimulatePressureNotification,
33 base::MemoryPressureListener::MemoryPressureLevel /* level */) 28 base::MemoryPressureListener::MemoryPressureLevel /* level */)
34 29
35 // Sent by the browser to all child processes to indicate an actual memory 30 // Sent by the browser to all child processes to indicate an actual memory
36 // pressure notification. 31 // pressure notification.
37 IPC_MESSAGE_CONTROL1( 32 IPC_MESSAGE_CONTROL1(
38 MemoryMsg_PressureNotification, 33 MemoryMsg_PressureNotification,
39 base::MemoryPressureListener::MemoryPressureLevel /* level */) 34 base::MemoryPressureListener::MemoryPressureLevel /* level */)
OLDNEW
« no previous file with comments | « content/browser/media/media_interface_proxy.cc ('k') | content/renderer/media/media_interface_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698