Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / browser / browser_ipc_logging.h
blobf05af129f6b115084ef89c82e304e6a8022bf132
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_IPC_LOGGING_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_IPC_LOGGING_H_
8 #include "content/common/content_export.h"
9 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
11 namespace content {
13 #if defined(IPC_MESSAGE_LOG_ENABLED)
15 // Enable or disable IPC logging for the browser, all processes
16 // derived from ChildProcess (plugin etc), and all
17 // renderers.
18 CONTENT_EXPORT void EnableIPCLogging(bool enable);
20 #endif
22 } // namespace content
24 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_IPC_LOGGING_H_