diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 19:14:33 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 19:14:33 +0000 |
commit | 08658a41d004daaf4183537fe2314eb2532881ee (patch) | |
tree | 118bbbd7944c714098d1aa289ed1dd4cb7d5d42b /chrome/common/ipc_logging.h | |
parent | 0a14d3db1762fb2e309e5f0e07279f91ed2bb128 (diff) | |
download | chromium_src-08658a41d004daaf4183537fe2314eb2532881ee.zip chromium_src-08658a41d004daaf4183537fe2314eb2532881ee.tar.gz chromium_src-08658a41d004daaf4183537fe2314eb2532881ee.tar.bz2 |
Fix ipc logging for non browser processes. I broke this in my last refactoring, since the logger functions only got registered in the browser. This fix registers them using a global object for each message type (that's only compiled when debugging is enabled). One less thing to take care of when creating new message types.
Review URL: http://codereview.chromium.org/20213
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_logging.h')
-rw-r--r-- | chrome/common/ipc_logging.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/chrome/common/ipc_logging.h b/chrome/common/ipc_logging.h index bf49595..d2b9aab 100644 --- a/chrome/common/ipc_logging.h +++ b/chrome/common/ipc_logging.h @@ -67,12 +67,6 @@ 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(); @@ -96,8 +90,6 @@ class Logging : public base::ObjectWatcher::Delegate { MessageLoop* main_thread_; Consumer* consumer_; - - LogFunction* log_function_mapping_[LastMsgIndex]; }; } // namespace IPC |