From 3a3d4747769aec2954a2ca21de4812c5892994aa Mon Sep 17 00:00:00 2001 From: "erg@chromium.org" Date: Thu, 15 Jul 2010 21:03:54 +0000 Subject: Move implementation from header to source. This is an effort to speed up compile and link time, and also minimizing the size of the intermediary .o files on disk. For example, just moving the constructor/destructor from the classes in chrome/browser/pref_member.{cc,h} netted a 368k drop in total .o file size. In aggregate, this shrinks libbrowser.a by 10 megabytes, and a few odd megabytes on most other chrome .a files. A lot of this was done before I started harvesting what the most included symbols were across all of chrome's code. Most of them are in webkit, but there's plenty in base/ that are used everywhere to keep me busy for several patches to come. BUG=none TEST=none Review URL: http://codereview.chromium.org/3012001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52528 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/pref_member.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'chrome/browser/pref_member.h') diff --git a/chrome/browser/pref_member.h b/chrome/browser/pref_member.h index 2de76ab..1d84b6a 100644 --- a/chrome/browser/pref_member.h +++ b/chrome/browser/pref_member.h @@ -141,8 +141,8 @@ class PrefMember : public subtle::PrefMemberBase { class BooleanPrefMember : public PrefMember { public: - BooleanPrefMember() : PrefMember() { } - virtual ~BooleanPrefMember() { } + BooleanPrefMember(); + virtual ~BooleanPrefMember(); protected: virtual void UpdateValueFromPref(); @@ -154,8 +154,8 @@ class BooleanPrefMember : public PrefMember { class IntegerPrefMember : public PrefMember { public: - IntegerPrefMember() : PrefMember() { } - virtual ~IntegerPrefMember() { } + IntegerPrefMember(); + virtual ~IntegerPrefMember(); protected: virtual void UpdateValueFromPref(); @@ -167,8 +167,8 @@ class IntegerPrefMember : public PrefMember { class RealPrefMember : public PrefMember { public: - RealPrefMember() : PrefMember() { } - virtual ~RealPrefMember() { } + RealPrefMember(); + virtual ~RealPrefMember(); protected: virtual void UpdateValueFromPref(); @@ -180,8 +180,8 @@ class RealPrefMember : public PrefMember { class StringPrefMember : public PrefMember { public: - StringPrefMember() : PrefMember() { } - virtual ~StringPrefMember() { } + StringPrefMember(); + virtual ~StringPrefMember(); protected: virtual void UpdateValueFromPref(); @@ -193,8 +193,8 @@ class StringPrefMember : public PrefMember { class FilePathPrefMember : public PrefMember { public: - FilePathPrefMember() : PrefMember() { } - virtual ~FilePathPrefMember() { } + FilePathPrefMember(); + virtual ~FilePathPrefMember(); protected: virtual void UpdateValueFromPref(); -- cgit v1.1