| 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 "chrome/common/ipc_logging.h" | 5 #include "chrome/common/ipc_logging.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/thread.h" | 11 #include "base/thread.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "chrome/common/ipc_sync_message.h" | 14 #include "chrome/common/ipc_sync_message.h" |
| 15 #include "chrome/common/ipc_message_utils.h" | 15 #include "chrome/common/ipc_message_utils.h" |
| 16 #include "chrome/common/render_messages.h" | 16 #include "chrome/common/render_messages.h" |
| 17 #include "chrome/common/plugin_messages.h" | 17 #include "chrome/common/plugin_messages.h" |
| 18 | 18 |
| 19 #ifdef IPC_MESSAGE_LOG_ENABLED | 19 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 20 | 20 |
| 21 using base::Time; |
| 22 |
| 21 // IPC::Logging is allocated as a singleton, so we don't need any kind of | 23 // IPC::Logging is allocated as a singleton, so we don't need any kind of |
| 22 // special retention program. | 24 // special retention program. |
| 23 template <> | 25 template <> |
| 24 struct RunnableMethodTraits<IPC::Logging> { | 26 struct RunnableMethodTraits<IPC::Logging> { |
| 25 static void RetainCallee(IPC::Logging*) {} | 27 static void RetainCallee(IPC::Logging*) {} |
| 26 static void ReleaseCallee(IPC::Logging*) {} | 28 static void ReleaseCallee(IPC::Logging*) {} |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 namespace IPC { | 31 namespace IPC { |
| 30 | 32 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 data->sent = message.sent_time(); | 262 data->sent = message.sent_time(); |
| 261 data->receive = message.received_time(); | 263 data->receive = message.received_time(); |
| 262 data->dispatch = Time::Now().ToInternalValue(); | 264 data->dispatch = Time::Now().ToInternalValue(); |
| 263 data->params = params; | 265 data->params = params; |
| 264 } | 266 } |
| 265 } | 267 } |
| 266 | 268 |
| 267 } | 269 } |
| 268 | 270 |
| 269 #endif // IPC_MESSAGE_LOG_ENABLED | 271 #endif // IPC_MESSAGE_LOG_ENABLED |
| 270 | |
| OLD | NEW |