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

Unified Diff: net/base/sdch_manager.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/base/sdch_manager.h
===================================================================
--- net/base/sdch_manager.h (revision 31079)
+++ net/base/sdch_manager.h (working copy)
@@ -159,6 +159,7 @@
const std::string& text() const { return text_; }
private:
+ friend class base::RefCounted<Dictionary>;
friend class SdchManager; // Only manager can construct an instance.
FRIEND_TEST(SdchFilterTest, PathMatch);
@@ -169,6 +170,7 @@
const std::string& client_hash, const GURL& url,
const std::string& domain, const std::string& path,
const base::Time& expiration, const std::set<int> ports);
+ ~Dictionary() {}
const GURL& url() const { return url_; }
const std::string& client_hash() const { return client_hash_; }

Powered by Google App Engine
This is Rietveld 408576698