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

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

Issue 985773002: Introducing phased profiling framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_to_file
Patch Set: Only "API" Created 5 years, 9 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 (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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Sent to child process to request tcmalloc stats. 120 // Sent to child process to request tcmalloc stats.
117 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) 121 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats)
118 #endif 122 #endif
119 123
120 //////////////////////////////////////////////////////////////////////////////// 124 ////////////////////////////////////////////////////////////////////////////////
121 // Messages sent from the child process to the browser. 125 // Messages sent from the child process to the browser.
122 126
123 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) 127 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest)
124 128
125 // Send back profiler data (ThreadData in tracked_objects). 129 // Send back profiler data (ThreadData in tracked_objects).
126 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData, 130 IPC_MESSAGE_CONTROL2(
127 int, /* sequence_number */ 131 ChildProcessHostMsg_ChildProfilerData,
128 tracked_objects::ProcessDataSnapshot /* profiler_data */) 132 int, /* sequence_number */
133 tracked_objects::ProcessDataSnapshot /* process_data_snapshot */)
129 134
130 // Send back histograms as vector of pickled-histogram strings. 135 // Send back histograms as vector of pickled-histogram strings.
131 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData, 136 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData,
132 int, /* sequence_number */ 137 int, /* sequence_number */
133 std::vector<std::string> /* histogram_data */) 138 std::vector<std::string> /* histogram_data */)
134 139
135 // Request a histogram from the browser. The browser will send the histogram 140 // Request a histogram from the browser. The browser will send the histogram
136 // data only if it has been passed the command line flag 141 // data only if it has been passed the command line flag
137 // switches::kDomAutomationController. 142 // switches::kDomAutomationController.
138 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_GetBrowserHistogram, 143 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_GetBrowserHistogram,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, 198 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
194 gfx::GpuMemoryBufferId, 199 gfx::GpuMemoryBufferId,
195 uint32 /* sync_point */) 200 uint32 /* sync_point */)
196 201
197 // Asks the browser to create a block of discardable shared memory for the 202 // Asks the browser to create a block of discardable shared memory for the
198 // child process. 203 // child process.
199 IPC_SYNC_MESSAGE_CONTROL1_1( 204 IPC_SYNC_MESSAGE_CONTROL1_1(
200 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 205 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
201 uint32 /* size */, 206 uint32 /* size */,
202 base::SharedMemoryHandle) 207 base::SharedMemoryHandle)
OLDNEW
« content/child/child_thread_impl.cc ('K') | « content/child/child_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698