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

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

Issue 1914143002: Experimental 'purging and suspending' backgrounded tabs behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on haraken's review Created 4 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 unified diff | Download patch
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Common IPC messages used for child processes. 5 // Common IPC messages used for child processes.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 int /* shm_size */) 111 int /* shm_size */)
112 112
113 // Send to all the child processes to send back histogram data. 113 // Send to all the child processes to send back histogram data.
114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, 114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData,
115 int /* sequence_number */) 115 int /* sequence_number */)
116 116
117 // Sent to child processes to tell them to enter or leave background mode. 117 // Sent to child processes to tell them to enter or leave background mode.
118 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, 118 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded,
119 bool /* background */) 119 bool /* background */)
120 120
121 // Sent to child processes to tell them to purge and suspend.
122 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend)
123
121 //////////////////////////////////////////////////////////////////////////////// 124 ////////////////////////////////////////////////////////////////////////////////
122 // Messages sent from the child process to the browser. 125 // Messages sent from the child process to the browser.
123 126
124 // A renderer sends this when it wants to create a connection to the GPU 127 // A renderer sends this when it wants to create a connection to the GPU
125 // process. The browser will create the GPU process if necessary, and will 128 // process. The browser will create the GPU process if necessary, and will
126 // return a handle to the channel via a GpuChannelEstablished message. 129 // return a handle to the channel via a GpuChannelEstablished message.
127 IPC_SYNC_MESSAGE_CONTROL1_3(ChildProcessHostMsg_EstablishGpuChannel, 130 IPC_SYNC_MESSAGE_CONTROL1_3(ChildProcessHostMsg_EstablishGpuChannel,
128 content::CauseForGpuLaunch, 131 content::CauseForGpuLaunch,
129 int /* client id */, 132 int /* client id */,
130 IPC::ChannelHandle /* handle to channel */, 133 IPC::ChannelHandle /* handle to channel */,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 IPC_SYNC_MESSAGE_CONTROL2_1( 209 IPC_SYNC_MESSAGE_CONTROL2_1(
207 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 210 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
208 uint32_t /* size */, 211 uint32_t /* size */,
209 content::DiscardableSharedMemoryId, 212 content::DiscardableSharedMemoryId,
210 base::SharedMemoryHandle) 213 base::SharedMemoryHandle)
211 214
212 // Informs the browser that the child deleted a block of discardable shared 215 // Informs the browser that the child deleted a block of discardable shared
213 // memory. 216 // memory.
214 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, 217 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
215 content::DiscardableSharedMemoryId) 218 content::DiscardableSharedMemoryId)
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698