diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-28 22:54:58 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-28 22:54:58 +0000 |
commit | d4799a3bf70ecc62ab702150cae1d1e925b14938 (patch) | |
tree | fae21bc09ddaa68dfc709e0d6abc55a43fe99333 /chrome | |
parent | 7176ef1c7ada2da66a47ed38987c92a06f3bfb4a (diff) | |
download | chromium_src-d4799a3bf70ecc62ab702150cae1d1e925b14938.zip chromium_src-d4799a3bf70ecc62ab702150cae1d1e925b14938.tar.gz chromium_src-d4799a3bf70ecc62ab702150cae1d1e925b14938.tar.bz2 |
FBTF: Moves code to the headers.
One of the big things is starting to move/declare ctors/dtors that derive from RefCounted<> to/in the implementation file.
(Saves 4 megabytes from libglue.a alone. 1 meg off libbrowser.a. Hundred of kilobyte savings in a large number of .a files; only libmedia.a grew and it's only 100k.)
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3452030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/message_router.cc | 6 | ||||
-rw-r--r-- | chrome/common/message_router.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/chrome/common/message_router.cc b/chrome/common/message_router.cc index b73f2d0..6bd6e95 100644 --- a/chrome/common/message_router.cc +++ b/chrome/common/message_router.cc @@ -4,6 +4,12 @@ #include "chrome/common/message_router.h" +MessageRouter::MessageRouter() { +} + +MessageRouter::~MessageRouter() { +} + void MessageRouter::OnControlMessageReceived(const IPC::Message& msg) { NOTREACHED() << "should override in subclass if you care about control messages"; diff --git a/chrome/common/message_router.h b/chrome/common/message_router.h index 13f763c..6a61091 100644 --- a/chrome/common/message_router.h +++ b/chrome/common/message_router.h @@ -30,8 +30,8 @@ class MessageRouter : public IPC::Channel::Listener, public IPC::Message::Sender { public: - MessageRouter() {} - virtual ~MessageRouter() {} + MessageRouter(); + virtual ~MessageRouter(); // Implemented by subclasses to handle control messages virtual void OnControlMessageReceived(const IPC::Message& msg); |