summaryrefslogtreecommitdiffstats
path: root/chrome/common/ipc_logging.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 19:38:55 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 19:38:55 +0000
commitd5dfa5a8f498025031c52241bb2f2100faf30e86 (patch)
tree983ed95256f2c123bc1292f7562f10b6ae6f5580 /chrome/common/ipc_logging.h
parent6d7b953ec6132658ec7f85c2976c98ecd0c852b2 (diff)
downloadchromium_src-d5dfa5a8f498025031c52241bb2f2100faf30e86.zip
chromium_src-d5dfa5a8f498025031c52241bb2f2100faf30e86.tar.gz
chromium_src-d5dfa5a8f498025031c52241bb2f2100faf30e86.tar.bz2
revert my ipc change due to compile failure in debug ipc_tests
Review URL: http://codereview.chromium.org/20229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_logging.h')
-rw-r--r--chrome/common/ipc_logging.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/ipc_logging.h b/chrome/common/ipc_logging.h
index d2b9aab..bf49595 100644
--- a/chrome/common/ipc_logging.h
+++ b/chrome/common/ipc_logging.h
@@ -67,6 +67,12 @@ class Logging : public base::ObjectWatcher::Delegate {
// ObjectWatcher::Delegate implementation
void OnObjectSignaled(HANDLE object);
+ typedef void (LogFunction)(uint16 type,
+ std::wstring* name,
+ const Message* msg,
+ std::wstring* params);
+ void RegisterMessageLogger(int msg_start, LogFunction* func);
+
private:
friend struct DefaultSingletonTraits<Logging>;
Logging();
@@ -90,6 +96,8 @@ class Logging : public base::ObjectWatcher::Delegate {
MessageLoop* main_thread_;
Consumer* consumer_;
+
+ LogFunction* log_function_mapping_[LastMsgIndex];
};
} // namespace IPC