| 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 #ifndef CHROME_COMMON_IPC_LOGGING_H_ | 5 #ifndef CHROME_COMMON_IPC_LOGGING_H_ |
| 6 #define CHROME_COMMON_IPC_LOGGING_H_ | 6 #define CHROME_COMMON_IPC_LOGGING_H_ |
| 7 | 7 |
| 8 #include "chrome/common/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. |
| 9 |
| 10 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 11 |
| 8 #include "base/lock.h" | 12 #include "base/lock.h" |
| 9 #include "base/object_watcher.h" | 13 #include "base/object_watcher.h" |
| 10 #include "base/singleton.h" | 14 #include "base/singleton.h" |
| 11 #include "chrome/common/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. | |
| 12 | |
| 13 #ifdef IPC_MESSAGE_LOG_ENABLED | |
| 14 | 15 |
| 15 class MessageLoop; | 16 class MessageLoop; |
| 16 | 17 |
| 17 namespace IPC { | 18 namespace IPC { |
| 18 | 19 |
| 19 class Message; | 20 class Message; |
| 20 | 21 |
| 21 // One instance per process. Needs to be created on the main thread (the UI | 22 // One instance per process. Needs to be created on the main thread (the UI |
| 22 // thread in the browser) but OnPreDispatchMessage/OnPostDispatchMessage | 23 // thread in the browser) but OnPreDispatchMessage/OnPostDispatchMessage |
| 23 // can be called on other threads. | 24 // can be called on other threads. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 90 |
| 90 Consumer* consumer_; | 91 Consumer* consumer_; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace IPC | 94 } // namespace IPC |
| 94 | 95 |
| 95 #endif // IPC_MESSAGE_LOG_ENABLED | 96 #endif // IPC_MESSAGE_LOG_ENABLED |
| 96 | 97 |
| 97 #endif // CHROME_COMMON_IPC_LOGGING_H_ | 98 #endif // CHROME_COMMON_IPC_LOGGING_H_ |
| 98 | 99 |
| OLD | NEW |