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

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

Issue 11411118: Add tracing support to NaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove content from tracing DEPS Created 8 years 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 | Annotate | Revision Log
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child 65 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child
66 // process that it's safe to shutdown. 66 // process that it's safe to shutdown.
67 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) 67 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown)
68 68
69 #if defined(IPC_MESSAGE_LOG_ENABLED) 69 #if defined(IPC_MESSAGE_LOG_ENABLED)
70 // Tell the child process to begin or end IPC message logging. 70 // Tell the child process to begin or end IPC message logging.
71 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIPCLoggingEnabled, 71 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIPCLoggingEnabled,
72 bool /* on or off */) 72 bool /* on or off */)
73 #endif 73 #endif
74 74
75 // Sent to all child processes to enable trace event recording.
76 IPC_MESSAGE_CONTROL2(ChildProcessMsg_BeginTracing,
77 std::vector<std::string> /* included_categories */,
78 std::vector<std::string> /* excluded_categories */)
79
80 // Sent to all child processes to disable trace event recording.
81 IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing)
82
83 // Sent to all child processes to get trace buffer fullness.
84 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull)
85
86 // Sent to all child processes to set watch event.
87 IPC_MESSAGE_CONTROL2(ChildProcessMsg_SetWatchEvent,
88 std::string /* category_name */,
89 std::string /* event_name */)
90
91 // Sent to all child processes to clear watch event.
92 IPC_MESSAGE_CONTROL0(ChildProcessMsg_CancelWatchEvent)
93
94 // Tell the child process to enable or disable the profiler status. 75 // Tell the child process to enable or disable the profiler status.
95 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, 76 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus,
96 tracked_objects::ThreadData::Status /* profiler status */) 77 tracked_objects::ThreadData::Status /* profiler status */)
97 78
98 // Send to all the child processes to send back profiler data (ThreadData in 79 // Send to all the child processes to send back profiler data (ThreadData in
99 // tracked_objects). 80 // tracked_objects).
100 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData, 81 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData,
101 int /* sequence_number */) 82 int /* sequence_number */)
102 83
103 // Send to all the child processes to send back histogram data. 84 // Send to all the child processes to send back histogram data.
104 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, 85 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData,
105 int /* sequence_number */) 86 int /* sequence_number */)
106 87
107 // Sent to child processes to dump their handle table. 88 // Sent to child processes to dump their handle table.
108 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) 89 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles)
109 90
110 #if defined(USE_TCMALLOC) 91 #if defined(USE_TCMALLOC)
111 // Sent to child process to request tcmalloc stats. 92 // Sent to child process to request tcmalloc stats.
112 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) 93 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats)
113 #endif 94 #endif
114 95
115 //////////////////////////////////////////////////////////////////////////////// 96 ////////////////////////////////////////////////////////////////////////////////
116 // Messages sent from the child process to the browser. 97 // Messages sent from the child process to the browser.
117 98
118 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) 99 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest)
119 100
120 // Notify the browser that this child process supports tracing.
121 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ChildSupportsTracing)
122
123 // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false).
124 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_EndTracingAck,
125 std::vector<std::string> /* known_categories */)
126
127 // Sent if the trace buffer becomes full.
128 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceNotification,
129 int /* base::debug::TraceLog::Notification */)
130
131 // Child processes send trace data back in JSON chunks.
132 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected,
133 std::string /*json trace data*/)
134
135 // Reply to ChildProcessMsg_GetTraceBufferPercentFull.
136 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply,
137 float /*trace buffer percent full*/)
138
139 // Send back profiler data (ThreadData in tracked_objects). 101 // Send back profiler data (ThreadData in tracked_objects).
140 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData, 102 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData,
141 int, /* sequence_number */ 103 int, /* sequence_number */
142 tracked_objects::ProcessDataSnapshot /* profiler_data */) 104 tracked_objects::ProcessDataSnapshot /* profiler_data */)
143 105
144 // Send back histograms as vector of pickled-histogram strings. 106 // Send back histograms as vector of pickled-histogram strings.
145 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData, 107 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData,
146 int, /* sequence_number */ 108 int, /* sequence_number */
147 std::vector<std::string> /* histogram_data */) 109 std::vector<std::string> /* histogram_data */)
148 110
(...skipping 14 matching lines...) Expand all
163 // fill in and pass back to the browser. 125 // fill in and pass back to the browser.
164 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, 126 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory,
165 uint32 /* buffer size */, 127 uint32 /* buffer size */,
166 base::SharedMemoryHandle) 128 base::SharedMemoryHandle)
167 129
168 #if defined(USE_TCMALLOC) 130 #if defined(USE_TCMALLOC)
169 // Reply to ChildProcessMsg_GetTcmallocStats. 131 // Reply to ChildProcessMsg_GetTcmallocStats.
170 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, 132 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats,
171 std::string /* output */) 133 std::string /* output */)
172 #endif 134 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698