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

Side by Side Diff: ipc/ipc_message_utils.h

Issue 2847003005: Reland "Add enable_ipc_logging build argument" (Closed)
Patch Set: Reland "Add enable_ipc_logging build argument" Created 3 years, 7 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
« no previous file with comments | « ipc/ipc_message.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | 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_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
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
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_
OLDNEW
« no previous file with comments | « ipc/ipc_message.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698