[email protected] | 4f68ed7 | 2012-10-30 05:24:07 | [diff] [blame] | 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. | ||||
4 | |||||
avi | a9aa7a8 | 2015-12-25 03:06:31 | [diff] [blame] | 5 | #include <stdint.h> |
6 | |||||
Scott Violet | a35f9a4 | 2018-03-22 22:00:44 | [diff] [blame] | 7 | #include "ipc/ipc_buildflags.h" |
davidsz | 041528a | 2017-05-12 09:19:23 | [diff] [blame] | 8 | |
9 | #if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) | ||||
[email protected] | 4f68ed7 | 2012-10-30 05:24:07 | [diff] [blame] | 10 | #define IPC_MESSAGE_MACROS_LOG_ENABLED |
11 | #include "content/public/common/content_ipc_logging.h" | ||||
12 | #define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger) \ | ||||
13 | content::RegisterIPCLogger(msg_id, logger) | ||||
14 | #include "content/common/all_messages.h" | ||||
[email protected] | 4f68ed7 | 2012-10-30 05:24:07 | [diff] [blame] | 15 | |
[email protected] | 4f68ed7 | 2012-10-30 05:24:07 | [diff] [blame] | 16 | |
[email protected] | 14c1c23 | 2013-06-11 17:52:44 | [diff] [blame] | 17 | #include "base/containers/hash_tables.h" |
[email protected] | 4f68ed7 | 2012-10-30 05:24:07 | [diff] [blame] | 18 | #include "base/lazy_instance.h" |
19 | |||||
20 | namespace content { | ||||
21 | |||||
22 | namespace { | ||||
23 | |||||
Takuto Ikuta | adf31eb | 2019-01-05 00:32:48 | [diff] [blame^] | 24 | base::LazyInstance<std::unordered_map<uint32_t, LogFunction>>::Leaky |
[email protected] | 4f68ed7 | 2012-10-30 05:24:07 | [diff] [blame] | 25 | g_log_function_mapping = LAZY_INSTANCE_INITIALIZER; |
26 | |||||
27 | } // namespace | ||||
28 | |||||
avi |