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 /net/disk_cache/rankings.h | |
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 'net/disk_cache/rankings.h')
-rw-r--r-- | net/disk_cache/rankings.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/net/disk_cache/rankings.h b/net/disk_cache/rankings.h index 8347b4c..1914cf6 100644 --- a/net/disk_cache/rankings.h +++ b/net/disk_cache/rankings.h @@ -96,18 +96,12 @@ class Rankings { List list; // Which entry was returned to the user. CacheRankingsBlock* nodes[3]; // Nodes on the first three lists. Rankings* my_rankings; - explicit Iterator(Rankings* rankings) { - memset(this, 0, sizeof(Iterator)); - my_rankings = rankings; - } - ~Iterator() { - for (int i = 0; i < 3; i++) - ScopedRankingsBlock(my_rankings, nodes[i]); - } + explicit Iterator(Rankings* rankings); + ~Iterator(); }; - Rankings() : init_(false) {} - ~Rankings() {} + Rankings(); + ~Rankings(); bool Init(BackendImpl* backend, bool count_lists); |