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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 IPC_STRUCT_TRAITS_MEMBER(birth) | 45 IPC_STRUCT_TRAITS_MEMBER(birth) |
46 IPC_STRUCT_TRAITS_MEMBER(death_data) | 46 IPC_STRUCT_TRAITS_MEMBER(death_data) |
47 IPC_STRUCT_TRAITS_MEMBER(death_thread_name) | 47 IPC_STRUCT_TRAITS_MEMBER(death_thread_name) |
48 IPC_STRUCT_TRAITS_END() | 48 IPC_STRUCT_TRAITS_END() |
49 | 49 |
50 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ParentChildPairSnapshot) | 50 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ParentChildPairSnapshot) |
51 IPC_STRUCT_TRAITS_MEMBER(parent) | 51 IPC_STRUCT_TRAITS_MEMBER(parent) |
52 IPC_STRUCT_TRAITS_MEMBER(child) | 52 IPC_STRUCT_TRAITS_MEMBER(child) |
53 IPC_STRUCT_TRAITS_END() | 53 IPC_STRUCT_TRAITS_END() |
54 | 54 |
55 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot) | 55 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataPhaseSnapshot) |
56 IPC_STRUCT_TRAITS_MEMBER(tasks) | 56 IPC_STRUCT_TRAITS_MEMBER(tasks) |
57 IPC_STRUCT_TRAITS_MEMBER(descendants) | 57 IPC_STRUCT_TRAITS_MEMBER(descendants) |
| 58 IPC_STRUCT_TRAITS_END() |
| 59 |
| 60 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot) |
| 61 IPC_STRUCT_TRAITS_MEMBER(phased_process_data_snapshots) |
58 IPC_STRUCT_TRAITS_MEMBER(process_id) | 62 IPC_STRUCT_TRAITS_MEMBER(process_id) |
59 IPC_STRUCT_TRAITS_END() | 63 IPC_STRUCT_TRAITS_END() |
60 | 64 |
61 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, | 65 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, |
62 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) | 66 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) |
63 | 67 |
64 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 68 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
65 IPC_STRUCT_TRAITS_MEMBER(id) | 69 IPC_STRUCT_TRAITS_MEMBER(id) |
66 IPC_STRUCT_TRAITS_MEMBER(type) | 70 IPC_STRUCT_TRAITS_MEMBER(type) |
67 IPC_STRUCT_TRAITS_MEMBER(handle) | 71 IPC_STRUCT_TRAITS_MEMBER(handle) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Sent to child process to request tcmalloc stats. | 121 // Sent to child process to request tcmalloc stats. |
118 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) | 122 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) |
119 #endif | 123 #endif |
120 | 124 |
121 //////////////////////////////////////////////////////////////////////////////// | 125 //////////////////////////////////////////////////////////////////////////////// |
122 // Messages sent from the child process to the browser. | 126 // Messages sent from the child process to the browser. |
123 | 127 |
124 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 128 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
125 | 129 |
126 // Send back profiler data (ThreadData in tracked_objects). | 130 // Send back profiler data (ThreadData in tracked_objects). |
127 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData, | 131 IPC_MESSAGE_CONTROL2( |
128 int, /* sequence_number */ | 132 ChildProcessHostMsg_ChildProfilerData, |
129 tracked_objects::ProcessDataSnapshot /* profiler_data */) | 133 int, /* sequence_number */ |
| 134 tracked_objects::ProcessDataSnapshot /* process_data_snapshot */) |
130 | 135 |
131 // Send back histograms as vector of pickled-histogram strings. | 136 // Send back histograms as vector of pickled-histogram strings. |
132 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData, | 137 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData, |
133 int, /* sequence_number */ | 138 int, /* sequence_number */ |
134 std::vector<std::string> /* histogram_data */) | 139 std::vector<std::string> /* histogram_data */) |
135 | 140 |
136 // Request a histogram from the browser. The browser will send the histogram | 141 // Request a histogram from the browser. The browser will send the histogram |
137 // data only if it has been passed the command line flag | 142 // data only if it has been passed the command line flag |
138 // switches::kDomAutomationController. | 143 // switches::kDomAutomationController. |
139 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_GetBrowserHistogram, | 144 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_GetBrowserHistogram, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 IPC_SYNC_MESSAGE_CONTROL2_1( | 205 IPC_SYNC_MESSAGE_CONTROL2_1( |
201 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 206 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
202 uint32 /* size */, | 207 uint32 /* size */, |
203 content::DiscardableSharedMemoryId, | 208 content::DiscardableSharedMemoryId, |
204 base::SharedMemoryHandle) | 209 base::SharedMemoryHandle) |
205 | 210 |
206 // Informs the browser that the child deleted a block of discardable shared | 211 // Informs the browser that the child deleted a block of discardable shared |
207 // memory. | 212 // memory. |
208 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 213 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
209 content::DiscardableSharedMemoryId) | 214 content::DiscardableSharedMemoryId) |
OLD | NEW |