Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Unified Diff: net/disk_cache/rankings.cc

Issue 10854063: Clean-up inline members of nested classes (net/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/rankings.cc
diff --git a/net/disk_cache/rankings.cc b/net/disk_cache/rankings.cc
index 6da1e1f158530884d9065eea2b20b4ab4cb2763b..8559a9d07f45669e2c35711565e1094d2f0e6a5e 100644
--- a/net/disk_cache/rankings.cc
+++ b/net/disk_cache/rankings.cc
@@ -189,6 +189,14 @@ void UpdateTimes(disk_cache::CacheRankingsBlock* node, bool modified) {
namespace disk_cache {
+Rankings::ScopedRankingsBlock::ScopedRankingsBlock() : rankings_(NULL) {}
+// XXX omitting the constructor name crashes clang. reduce & file.
mmenke 2012/08/09 15:13:35 I can make no sense of this comment. Also, should
hans 2012/08/09 15:35:42 I think this can just be removed.
+Rankings::ScopedRankingsBlock::ScopedRankingsBlock(Rankings* rankings)
+ : rankings_(rankings) {}
+Rankings::ScopedRankingsBlock::ScopedRankingsBlock(
+ Rankings* rankings, CacheRankingsBlock* node)
+ : scoped_ptr<CacheRankingsBlock>(node), rankings_(rankings) {}
mmenke 2012/08/09 15:13:35 nit: Line breaks between functions.
hans 2012/08/09 15:35:42 Done.
+
Rankings::Iterator::Iterator(Rankings* rankings) {
memset(this, 0, sizeof(Iterator));
my_rankings = rankings;

Powered by Google App Engine
This is Rietveld 408576698