| 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_UTILS_H_ | 5 #ifndef IPC_IPC_MESSAGE_UTILS_H_ |
| 6 #define IPC_IPC_MESSAGE_UTILS_H_ | 6 #define IPC_IPC_MESSAGE_UTILS_H_ |
| 7 | 7 |
| 8 #include <limits.h> | 8 #include <limits.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace IPC { | 49 namespace IPC { |
| 50 | 50 |
| 51 struct ChannelHandle; | 51 struct ChannelHandle; |
| 52 | 52 |
| 53 // ----------------------------------------------------------------------------- | 53 // ----------------------------------------------------------------------------- |
| 54 // How we send IPC message logs across channels. | 54 // How we send IPC message logs across channels. |
| 55 struct IPC_EXPORT LogData { | 55 struct IPC_EXPORT LogData { |
| 56 LogData(); | 56 LogData(); |
| 57 LogData(const LogData& other); |
| 57 ~LogData(); | 58 ~LogData(); |
| 58 | 59 |
| 59 std::string channel; | 60 std::string channel; |
| 60 int32_t routing_id; | 61 int32_t routing_id; |
| 61 uint32_t type; // "User-defined" message type, from ipc_message.h. | 62 uint32_t type; // "User-defined" message type, from ipc_message.h. |
| 62 std::string flags; | 63 std::string flags; |
| 63 int64_t sent; // Time that the message was sent (i.e. at Send()). | 64 int64_t sent; // Time that the message was sent (i.e. at Send()). |
| 64 int64_t receive; // Time before it was dispatched (i.e. before calling | 65 int64_t receive; // Time before it was dispatched (i.e. before calling |
| 65 // OnMessageReceived). | 66 // OnMessageReceived). |
| 66 int64_t dispatch; // Time after it was dispatched (i.e. after calling | 67 int64_t dispatch; // Time after it was dispatched (i.e. after calling |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 template <class ReplyParamType> | 1085 template <class ReplyParamType> |
| 1085 inline void LogReplyParamsToMessage(const ReplyParamType& reply_params, | 1086 inline void LogReplyParamsToMessage(const ReplyParamType& reply_params, |
| 1086 const Message* msg) {} | 1087 const Message* msg) {} |
| 1087 | 1088 |
| 1088 inline void ConnectMessageAndReply(const Message* msg, Message* reply) {} | 1089 inline void ConnectMessageAndReply(const Message* msg, Message* reply) {} |
| 1089 #endif | 1090 #endif |
| 1090 | 1091 |
| 1091 } // namespace IPC | 1092 } // namespace IPC |
| 1092 | 1093 |
| 1093 #endif // IPC_IPC_MESSAGE_UTILS_H_ | 1094 #endif // IPC_IPC_MESSAGE_UTILS_H_ |
| OLD | NEW |