summaryrefslogtreecommitdiffstats
path: root/chrome/common/ipc_logging.h
diff options
context:
space:
mode:
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