Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Side by Side Diff: content/public/common/content_ipc_logging.h

Issue 2768403002: Revert of Add enable_ipc_logging build argument (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/browser_ipc_logging.h ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_COMMON_CONTENT_IPC_LOGGING_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_
6 #define CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_
7 7
8 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
9
8 #include <stdint.h> 10 #include <stdint.h>
9 11
10 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
11 #include "ipc/ipc_logging.h" 13 #include "ipc/ipc_logging.h"
12 14
13 namespace content { 15 namespace content {
14 16
15 #if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) 17 #if defined(IPC_MESSAGE_LOG_ENABLED)
16 18
17 // Register a logger for the given IPC message. Use 19 // Register a logger for the given IPC message. Use
18 // 20 //
19 // #define IPC_MESSAGE_MACROS_LOG_ENABLED 21 // #define IPC_MESSAGE_MACROS_LOG_ENABLED
20 // #define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger) 22 // #define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger)
21 // content::RegisterIPCLogger(msg_id, logger) 23 // content::RegisterIPCLogger(msg_id, logger)
22 // 24 //
23 // to register IPC messages with the logging system. 25 // to register IPC messages with the logging system.
24 CONTENT_EXPORT void RegisterIPCLogger(uint32_t msg_id, LogFunction logger); 26 CONTENT_EXPORT void RegisterIPCLogger(uint32_t msg_id, LogFunction logger);
25 27
26 #endif 28 #endif
27 29
28 } // namespace content 30 } // namespace content
29 31
30 #endif // CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_ 32 #endif // CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_ipc_logging.h ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698