From d4799a3bf70ecc62ab702150cae1d1e925b14938 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Tue, 28 Sep 2010 22:54:58 +0000 Subject: 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 --- chrome/common/message_router.cc | 6 ++++++ chrome/common/message_router.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'chrome') 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); -- cgit v1.1