| 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 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 #endif // defined(OS_WIN) | 1153 #endif // defined(OS_WIN) |
| 1154 | 1154 |
| 1155 //----------------------------------------------------------------------------- | 1155 //----------------------------------------------------------------------------- |
| 1156 // Generic message subclasses | 1156 // Generic message subclasses |
| 1157 | 1157 |
| 1158 // defined in ipc_logging.cc | 1158 // defined in ipc_logging.cc |
| 1159 IPC_EXPORT void GenerateLogData(const Message& message, | 1159 IPC_EXPORT void GenerateLogData(const Message& message, |
| 1160 LogData* data, | 1160 LogData* data, |
| 1161 bool get_params); | 1161 bool get_params); |
| 1162 | 1162 |
| 1163 #if defined(IPC_MESSAGE_LOG_ENABLED) | 1163 #if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
| 1164 inline void AddOutputParamsToLog(const Message* msg, std::string* l) { | 1164 inline void AddOutputParamsToLog(const Message* msg, std::string* l) { |
| 1165 const std::string& output_params = msg->output_params(); | 1165 const std::string& output_params = msg->output_params(); |
| 1166 if (!l->empty() && !output_params.empty()) | 1166 if (!l->empty() && !output_params.empty()) |
| 1167 l->append(", "); | 1167 l->append(", "); |
| 1168 | 1168 |
| 1169 l->append(output_params); | 1169 l->append(output_params); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 template <class ReplyParamType> | 1172 template <class ReplyParamType> |
| 1173 inline void LogReplyParamsToMessage(const ReplyParamType& reply_params, | 1173 inline void LogReplyParamsToMessage(const ReplyParamType& reply_params, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1196 template <class ReplyParamType> | 1196 template <class ReplyParamType> |
| 1197 inline void LogReplyParamsToMessage(const ReplyParamType& reply_params, | 1197 inline void LogReplyParamsToMessage(const ReplyParamType& reply_params, |
| 1198 const Message* msg) {} | 1198 const Message* msg) {} |
| 1199 | 1199 |
| 1200 inline void ConnectMessageAndReply(const Message* msg, Message* reply) {} | 1200 inline void ConnectMessageAndReply(const Message* msg, Message* reply) {} |
| 1201 #endif | 1201 #endif |
| 1202 | 1202 |
| 1203 } // namespace IPC | 1203 } // namespace IPC |
| 1204 | 1204 |
| 1205 #endif // IPC_IPC_MESSAGE_UTILS_H_ | 1205 #endif // IPC_IPC_MESSAGE_UTILS_H_ |
| OLD | NEW |