| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 IPC_STRUCT_TRAITS_MEMBER(birth) | 44 IPC_STRUCT_TRAITS_MEMBER(birth) |
| 45 IPC_STRUCT_TRAITS_MEMBER(death_data) | 45 IPC_STRUCT_TRAITS_MEMBER(death_data) |
| 46 IPC_STRUCT_TRAITS_MEMBER(death_thread_name) | 46 IPC_STRUCT_TRAITS_MEMBER(death_thread_name) |
| 47 IPC_STRUCT_TRAITS_END() | 47 IPC_STRUCT_TRAITS_END() |
| 48 | 48 |
| 49 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ParentChildPairSnapshot) | 49 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ParentChildPairSnapshot) |
| 50 IPC_STRUCT_TRAITS_MEMBER(parent) | 50 IPC_STRUCT_TRAITS_MEMBER(parent) |
| 51 IPC_STRUCT_TRAITS_MEMBER(child) | 51 IPC_STRUCT_TRAITS_MEMBER(child) |
| 52 IPC_STRUCT_TRAITS_END() | 52 IPC_STRUCT_TRAITS_END() |
| 53 | 53 |
| 54 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot) | 54 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataPhaseSnapshot) |
| 55 IPC_STRUCT_TRAITS_MEMBER(tasks) | 55 IPC_STRUCT_TRAITS_MEMBER(tasks) |
| 56 IPC_STRUCT_TRAITS_MEMBER(descendants) | 56 IPC_STRUCT_TRAITS_MEMBER(descendants) |
| 57 IPC_STRUCT_TRAITS_END() |
| 58 |
| 59 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot) |
| 60 IPC_STRUCT_TRAITS_MEMBER(phased_process_data_snapshots) |
| 57 IPC_STRUCT_TRAITS_MEMBER(process_id) | 61 IPC_STRUCT_TRAITS_MEMBER(process_id) |
| 58 IPC_STRUCT_TRAITS_END() | 62 IPC_STRUCT_TRAITS_END() |
| 59 | 63 |
| 60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, | 64 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, |
| 61 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) | 65 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) |
| 62 | 66 |
| 63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 67 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
| 64 IPC_STRUCT_TRAITS_MEMBER(id) | 68 IPC_STRUCT_TRAITS_MEMBER(id) |
| 65 IPC_STRUCT_TRAITS_MEMBER(type) | 69 IPC_STRUCT_TRAITS_MEMBER(type) |
| 66 IPC_STRUCT_TRAITS_MEMBER(handle) | 70 IPC_STRUCT_TRAITS_MEMBER(handle) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 91 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIPCLoggingEnabled, | 95 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIPCLoggingEnabled, |
| 92 bool /* on or off */) | 96 bool /* on or off */) |
| 93 #endif | 97 #endif |
| 94 | 98 |
| 95 // Tell the child process to enable or disable the profiler status. | 99 // Tell the child process to enable or disable the profiler status. |
| 96 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, | 100 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, |
| 97 tracked_objects::ThreadData::Status /* profiler status */) | 101 tracked_objects::ThreadData::Status /* profiler status */) |
| 98 | 102 |
| 99 // Send to all the child processes to send back profiler data (ThreadData in | 103 // Send to all the child processes to send back profiler data (ThreadData in |
| 100 // tracked_objects). | 104 // tracked_objects). |
| 101 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData, | 105 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, |
| 102 int /* sequence_number */) | 106 int /* sequence_number */, |
| 107 int /* profiling_phase */) |
| 108 |
| 109 // Send to all the child processes to send back profiler data (ThreadData in |
| 110 // tracked_objects). |
| 111 IPC_MESSAGE_CONTROL1(ChildProcessMsg_OnProfilingPhase, |
| 112 int /* profiling_phase */) |
| 103 | 113 |
| 104 // Send to all the child processes to send back histogram data. | 114 // Send to all the child processes to send back histogram data. |
| 105 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, | 115 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, |
| 106 int /* sequence_number */) | 116 int /* sequence_number */) |
| 107 | 117 |
| 108 // Sent to child processes to dump their handle table. | 118 // Sent to child processes to dump their handle table. |
| 109 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) | 119 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) |
| 110 | 120 |
| 111 // Sent to child processes to tell them to enter or leave background mode. | 121 // Sent to child processes to tell them to enter or leave background mode. |
| 112 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, | 122 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
| 113 bool /* background */) | 123 bool /* background */) |
| 114 | 124 |
| 115 #if defined(USE_TCMALLOC) | 125 #if defined(USE_TCMALLOC) |
| 116 // Sent to child process to request tcmalloc stats. | 126 // Sent to child process to request tcmalloc stats. |
| 117 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) | 127 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) |
| 118 #endif | 128 #endif |
| 119 | 129 |
| 120 //////////////////////////////////////////////////////////////////////////////// | 130 //////////////////////////////////////////////////////////////////////////////// |
| 121 // Messages sent from the child process to the browser. | 131 // Messages sent from the child process to the browser. |
| 122 | 132 |
| 123 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 133 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
| 124 | 134 |
| 125 // Send back profiler data (ThreadData in tracked_objects). | 135 // Send back profiler data (ThreadData in tracked_objects). |
| 126 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData, | 136 IPC_MESSAGE_CONTROL2( |
| 127 int, /* sequence_number */ | 137 ChildProcessHostMsg_ChildProfilerData, |
| 128 tracked_objects::ProcessDataSnapshot /* profiler_data */) | 138 int, /* sequence_number */ |
| 139 tracked_objects::ProcessDataSnapshot /* process_data_snapshot */) |
| 129 | 140 |
| 130 // Send back histograms as vector of pickled-histogram strings. | 141 // Send back histograms as vector of pickled-histogram strings. |
| 131 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData, | 142 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData, |
| 132 int, /* sequence_number */ | 143 int, /* sequence_number */ |
| 133 std::vector<std::string> /* histogram_data */) | 144 std::vector<std::string> /* histogram_data */) |
| 134 | 145 |
| 135 // Request a histogram from the browser. The browser will send the histogram | 146 // Request a histogram from the browser. The browser will send the histogram |
| 136 // data only if it has been passed the command line flag | 147 // data only if it has been passed the command line flag |
| 137 // switches::kDomAutomationController. | 148 // switches::kDomAutomationController. |
| 138 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_GetBrowserHistogram, | 149 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_GetBrowserHistogram, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | 204 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, |
| 194 gfx::GpuMemoryBufferId, | 205 gfx::GpuMemoryBufferId, |
| 195 uint32 /* sync_point */) | 206 uint32 /* sync_point */) |
| 196 | 207 |
| 197 // Asks the browser to create a block of discardable shared memory for the | 208 // Asks the browser to create a block of discardable shared memory for the |
| 198 // child process. | 209 // child process. |
| 199 IPC_SYNC_MESSAGE_CONTROL1_1( | 210 IPC_SYNC_MESSAGE_CONTROL1_1( |
| 200 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 211 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
| 201 uint32 /* size */, | 212 uint32 /* size */, |
| 202 base::SharedMemoryHandle) | 213 base::SharedMemoryHandle) |
| OLD | NEW |