OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "ipc/ipc_logging.h" | 5 #include "ipc/ipc_logging.h" |
6 | 6 |
7 #ifdef IPC_MESSAGE_LOG_ENABLED | 7 #ifdef IPC_MESSAGE_LOG_ENABLED |
8 // This will cause render_messages.h etc to define ViewMsgLog and friends. | 8 // This will cause render_messages.h etc to define ViewMsgLog and friends. |
9 #define IPC_MESSAGE_MACROS_LOG_ENABLED | 9 #define IPC_MESSAGE_MACROS_LOG_ENABLED |
10 #endif | 10 #endif |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/thread.h" | 17 #include "base/thread.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "base/waitable_event.h" | |
20 #include "base/waitable_event_watcher.h" | |
21 #include "ipc/ipc_switches.h" | 19 #include "ipc/ipc_switches.h" |
22 #include "ipc/ipc_sync_message.h" | 20 #include "ipc/ipc_sync_message.h" |
23 #include "ipc/ipc_message_utils.h" | 21 #include "ipc/ipc_message_utils.h" |
24 | 22 |
25 #if defined(OS_POSIX) | 23 #if defined(OS_POSIX) |
26 #include <unistd.h> | 24 #include <unistd.h> |
27 #endif | 25 #endif |
28 | 26 |
29 #ifdef IPC_MESSAGE_LOG_ENABLED | 27 #ifdef IPC_MESSAGE_LOG_ENABLED |
30 | 28 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 data->receive = message.received_time(); | 242 data->receive = message.received_time(); |
245 data->dispatch = Time::Now().ToInternalValue(); | 243 data->dispatch = Time::Now().ToInternalValue(); |
246 data->params = params; | 244 data->params = params; |
247 data->message_name = message_name; | 245 data->message_name = message_name; |
248 } | 246 } |
249 } | 247 } |
250 | 248 |
251 } | 249 } |
252 | 250 |
253 #endif // IPC_MESSAGE_LOG_ENABLED | 251 #endif // IPC_MESSAGE_LOG_ENABLED |
OLD | NEW |