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

Unified Diff: net/base/default_server_bound_cert_store.h

Issue 10066045: RefCounted types should not have public destructors, net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/base/default_server_bound_cert_store.h
diff --git a/net/base/default_server_bound_cert_store.h b/net/base/default_server_bound_cert_store.h
index cd664fe7d4d0b9e4f88b1c21e7743c5b64b47c33..93aa8fc24d5d40bd4f8b1e798783ad98f67e77d0 100644
--- a/net/base/default_server_bound_cert_store.h
+++ b/net/base/default_server_bound_cert_store.h
@@ -129,8 +129,6 @@ typedef base::RefCountedThreadSafe<DefaultServerBoundCertStore::PersistentStore>
class NET_EXPORT DefaultServerBoundCertStore::PersistentStore
: public RefcountedPersistentStore {
public:
- virtual ~PersistentStore() {}
-
// Initializes the store and retrieves the existing certs. This will be
// called only once at startup. Note that the certs are individually allocated
// and that ownership is transferred to the caller upon return.
@@ -149,7 +147,9 @@ class NET_EXPORT DefaultServerBoundCertStore::PersistentStore
virtual void Flush(const base::Closure& completion_task) = 0;
protected:
+ friend class base::RefCountedThreadSafe<PersistentStore>;
wtc 2012/04/17 23:16:18 Can we use the RefcountedPersistentStore typedef h
Ryan Sleevi 2012/04/17 23:42:42 I'm not sure that's much better. The use of the ty
PersistentStore();
+ virtual ~PersistentStore() {}
private:
DISALLOW_COPY_AND_ASSIGN(PersistentStore);

Powered by Google App Engine
This is Rietveld 408576698