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

Unified Diff: net/base/cert_verifier.cc

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/cert_verifier.cc
===================================================================
--- net/base/cert_verifier.cc (revision 31079)
+++ net/base/cert_verifier.cc (working copy)
@@ -35,8 +35,6 @@
error_(OK) {
}
- ~Request() {}
-
void DoVerify() {
// Running on the worker thread
error_ = cert_->Verify(hostname_, flags_, &result_);
@@ -92,6 +90,10 @@
}
private:
+ friend class base::RefCountedThreadSafe<CertVerifier::Request>;
+
+ ~Request() {}
+
// Set on the origin thread, read on the worker thread.
scoped_refptr<X509Certificate> cert_;
std::string hostname_;

Powered by Google App Engine
This is Rietveld 408576698