| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #define IPC_MESSAGE_MACROS_LOG_ENABLED | 8 #define IPC_MESSAGE_MACROS_LOG_ENABLED |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #endif //defined(OS_WIN) | 59 #endif //defined(OS_WIN) |
| 60 if (logging_env_var_set) { | 60 if (logging_env_var_set) { |
| 61 enabled_ = true; | 61 enabled_ = true; |
| 62 enabled_on_stderr_ = true; | 62 enabled_on_stderr_ = true; |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 Logging::~Logging() { | 66 Logging::~Logging() { |
| 67 } | 67 } |
| 68 | 68 |
| 69 Logging* Logging::current() { | 69 Logging* Logging::GetInstance() { |
| 70 return Singleton<Logging>::get(); | 70 return Singleton<Logging>::get(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void Logging::SetConsumer(Consumer* consumer) { | 73 void Logging::SetConsumer(Consumer* consumer) { |
| 74 consumer_ = consumer; | 74 consumer_ = consumer; |
| 75 } | 75 } |
| 76 | 76 |
| 77 void Logging::Enable() { | 77 void Logging::Enable() { |
| 78 enabled_ = true; | 78 enabled_ = true; |
| 79 } | 79 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 data->receive = message.received_time(); | 242 data->receive = message.received_time(); |
| 243 data->dispatch = Time::Now().ToInternalValue(); | 243 data->dispatch = Time::Now().ToInternalValue(); |
| 244 data->params = params; | 244 data->params = params; |
| 245 data->message_name = message_name; | 245 data->message_name = message_name; |
| 246 } | 246 } |
| 247 } | 247 } |
| 248 | 248 |
| 249 } | 249 } |
| 250 | 250 |
| 251 #endif // IPC_MESSAGE_LOG_ENABLED | 251 #endif // IPC_MESSAGE_LOG_ENABLED |
| OLD | NEW |