OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_LOGGING_H_ | 5 #ifndef IPC_IPC_LOGGING_H_ |
6 #define IPC_IPC_LOGGING_H_ | 6 #define IPC_IPC_LOGGING_H_ |
7 | 7 |
8 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. | 8 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. |
9 | 9 |
10 #ifdef IPC_MESSAGE_LOG_ENABLED | 10 #ifdef IPC_MESSAGE_LOG_ENABLED |
11 | 11 |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/singleton.h" | 16 #include "base/memory/singleton.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
18 #include "ipc/ipc_export.h" | 18 #include "ipc/ipc_export.h" |
19 | 19 |
20 // Logging function. |name| is a string in ASCII and |params| is a string in | 20 // Logging function. |name| is a string in ASCII and |params| is a string in |
21 // UTF-8. | 21 // UTF-8. |
22 typedef void (*LogFunction)(std::string* name, | 22 typedef void (*LogFunction)(std::string* name, |
23 const IPC::Message* msg, | 23 const IPC::Message* msg, |
24 std::string* params); | 24 std::string* params); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Consumer* consumer_; | 118 Consumer* consumer_; |
119 | 119 |
120 static LogFunctionMap* log_function_map_; | 120 static LogFunctionMap* log_function_map_; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace IPC | 123 } // namespace IPC |
124 | 124 |
125 #endif // IPC_MESSAGE_LOG_ENABLED | 125 #endif // IPC_MESSAGE_LOG_ENABLED |
126 | 126 |
127 #endif // IPC_IPC_LOGGING_H_ | 127 #endif // IPC_IPC_LOGGING_H_ |
OLD | NEW |