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

Side by Side Diff: ipc/ipc_message.h

Issue 1239593002: Implement a new flow event API that allows binding flow events and regular events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove a redundant macro. Created 5 years, 5 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
« ipc/ipc_channel_reader.cc ('K') | « ipc/ipc_channel_reader.cc ('k') | no next file » | 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 #ifndef IPC_IPC_MESSAGE_H_ 5 #ifndef IPC_IPC_MESSAGE_H_
6 #define IPC_IPC_MESSAGE_H_ 6 #define IPC_IPC_MESSAGE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 bool dont_log() const { return dont_log_; } 198 bool dont_log() const { return dont_log_; }
199 #endif 199 #endif
200 200
201 // Called to trace when message is sent. 201 // Called to trace when message is sent.
202 void TraceMessageBegin() { 202 void TraceMessageBegin() {
203 TRACE_EVENT_FLOW_BEGIN0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"), "IPC", 203 TRACE_EVENT_FLOW_BEGIN0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"), "IPC",
204 header()->flags); 204 header()->flags);
205 } 205 }
206 // Called to trace when message is received. 206 // Called to trace when message is received.
207 void TraceMessageEnd() { 207 void TraceMessageEnd() {
208 TRACE_EVENT_FLOW_END0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"), "IPC", 208 TRACE_EVENT_FLOW_END_BIND_TO_ENCLOSING0(TRACE_DISABLED_BY_DEFAULT("ipc.flow" ), "IPC",
209 header()->flags); 209 header()->flags);
210 } 210 }
211 211
212 protected: 212 protected:
213 friend class Channel; 213 friend class Channel;
214 friend class ChannelMojo; 214 friend class ChannelMojo;
215 friend class ChannelNacl; 215 friend class ChannelNacl;
216 friend class ChannelPosix; 216 friend class ChannelPosix;
217 friend class ChannelWin; 217 friend class ChannelWin;
218 friend class MessageReplyDeserializer; 218 friend class MessageReplyDeserializer;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 MSG_ROUTING_NONE = -2, 274 MSG_ROUTING_NONE = -2,
275 275
276 // indicates a general message not sent to a particular tab. 276 // indicates a general message not sent to a particular tab.
277 MSG_ROUTING_CONTROL = kint32max, 277 MSG_ROUTING_CONTROL = kint32max,
278 }; 278 };
279 279
280 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies 280 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies
281 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging 281 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging
282 282
283 #endif // IPC_IPC_MESSAGE_H_ 283 #endif // IPC_IPC_MESSAGE_H_
OLDNEW
« ipc/ipc_channel_reader.cc ('K') | « ipc/ipc_channel_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698