Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / public / common / content_ipc_logging.h
blob83fe89818c035029ae40071cfae023616f797e3b
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_COMMON_CONTENT_IPC_LOGGING_H_
6 #define CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_
8 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
10 #include "content/common/content_export.h"
11 #include "ipc/ipc_logging.h"
13 namespace content {
15 #if defined(IPC_MESSAGE_LOG_ENABLED)
17 // Register a logger for the given IPC message. Use
19 // #define IPC_MESSAGE_MACROS_LOG_ENABLED
20 // #define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger)
21 // content::RegisterIPCLogger(msg_id, logger)
23 // to register IPC messages with the logging system.
24 CONTENT_EXPORT void RegisterIPCLogger(uint32 msg_id, LogFunction logger);
26 #endif
28 } // namespace content
30 #endif // CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_