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 CONTENT_PUBLIC_BROWSER_CONTENT_IPC_LOGGING_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_IPC_LOGGING_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_IPC_LOGGING_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_IPC_LOGGING_H_ |
7 #pragma once | |
8 | 7 |
9 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
10 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. | 9 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 | 12 |
14 #if defined(IPC_MESSAGE_LOG_ENABLED) | 13 #if defined(IPC_MESSAGE_LOG_ENABLED) |
15 | 14 |
16 // Enable or disable IPC logging for the browser, all processes | 15 // Enable or disable IPC logging for the browser, all processes |
17 // derived from ChildProcess (plugin etc), and all | 16 // derived from ChildProcess (plugin etc), and all |
18 // renderers. | 17 // renderers. |
19 CONTENT_EXPORT void EnableIPCLogging(bool enable); | 18 CONTENT_EXPORT void EnableIPCLogging(bool enable); |
20 | 19 |
21 #endif | 20 #endif |
22 | 21 |
23 } // namespace content | 22 } // namespace content |
24 | 23 |
25 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_IPC_LOGGING_H_ | 24 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_IPC_LOGGING_H_ |
OLD | NEW |