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

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: Fixing Android compile errors. Created 5 years, 8 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/browser_child_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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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)
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/public/browser/browser_child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698