| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |