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-11 05:38:41 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 05:38:41 +0000
commit3335d879a364867309a93749cc9e4805bd92d114 (patch)
treec974aab1fd40e1d4f91e9eb768697a8286ea0dc8 /chrome/common/ipc_logging.h
parentb0a604b351995345bcf9f17ae403495e30fe4cdc (diff)
downloadchromium_src-3335d879a364867309a93749cc9e4805bd92d114.zip
chromium_src-3335d879a364867309a93749cc9e4805bd92d114.tar.gz
chromium_src-3335d879a364867309a93749cc9e4805bd92d114.tar.bz2
Redo my IPC change, undoing the linker dependency.
Review URL: http://codereview.chromium.org/21225 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_logging.h')
-rw-r--r--chrome/common/ipc_logging.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/common/ipc_logging.h b/chrome/common/ipc_logging.h
index bf49595..5d4016d 100644
--- a/chrome/common/ipc_logging.h
+++ b/chrome/common/ipc_logging.h
@@ -67,11 +67,12 @@ class Logging : public base::ObjectWatcher::Delegate {
// ObjectWatcher::Delegate implementation
void OnObjectSignaled(HANDLE object);
- typedef void (LogFunction)(uint16 type,
+ typedef void (*LogFunction)(uint16 type,
std::wstring* name,
const Message* msg,
std::wstring* params);
- void RegisterMessageLogger(int msg_start, LogFunction* func);
+
+ static void SetLoggerFunctions(LogFunction *functions);
private:
friend struct DefaultSingletonTraits<Logging>;
@@ -97,7 +98,7 @@ class Logging : public base::ObjectWatcher::Delegate {
Consumer* consumer_;
- LogFunction* log_function_mapping_[LastMsgIndex];
+ static LogFunction *log_function_mapping_;
};
} // namespace IPC