summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-30 05:24:07 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-30 05:24:07 +0000
commit4f68ed70ed3e039661b8e492805982e63e80b15b (patch)
treec1a183a80140c214f9e4d5cdc6c6bd18cd5e5ffd /ppapi
parentc3cbe3536b4885fdc2a7ece5863e273a47c42964 (diff)
downloadchromium_src-4f68ed70ed3e039661b8e492805982e63e80b15b.zip
chromium_src-4f68ed70ed3e039661b8e492805982e63e80b15b.tar.gz
chromium_src-4f68ed70ed3e039661b8e492805982e63e80b15b.tar.bz2
Split IPC logging between content and chrome.
I add a new content API to register IPC message loggers, and modify the IPC message macros to not directly create the g_log_function_mapping. That allows for multiple files generating IPC loggers. Also, it gets rid of the ctor/dtor for the g_log_function_mapping. BUG=101600,111316,155765 Review URL: https://codereview.chromium.org/11347012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/proxy/plugin_main_nacl.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/proxy/plugin_main_nacl.cc b/ppapi/proxy/plugin_main_nacl.cc
index cc44ef7..7304e56 100644
--- a/ppapi/proxy/plugin_main_nacl.cc
+++ b/ppapi/proxy/plugin_main_nacl.cc
@@ -28,7 +28,14 @@
#include "ppapi/shared_impl/ppb_audio_shared.h"
#if defined(IPC_MESSAGE_LOG_ENABLED)
+#include "base/hash_tables.h"
+
+LogFunctionMap g_log_function_mapping;
+
#define IPC_MESSAGE_MACROS_LOG_ENABLED
+#define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger) \
+ g_log_function_mapping[msg_id] = logger
+
#endif
#include "ppapi/proxy/ppapi_messages.h"