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

Unified Diff: net/ocsp/nss_ocsp.cc

Issue 391062: Move NULLing of OCSP context from UI thread to IO thread, to avoid possible r... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync 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
« no previous file with comments | « net/ocsp/nss_ocsp.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ocsp/nss_ocsp.cc
===================================================================
--- net/ocsp/nss_ocsp.cc (revision 32099)
+++ net/ocsp/nss_ocsp.cc (working copy)
@@ -50,8 +50,8 @@
static void set_url_request_context(URLRequestContext* request_context) {
request_context_ = request_context;
}
- URLRequestContext* url_request_context() const {
- return request_context_.get();
+ static URLRequestContext* url_request_context() {
+ return request_context_;
}
private:
@@ -67,12 +67,12 @@
MessageLoop* io_loop_; // I/O thread
// URLRequestContext for OCSP handlers.
- static scoped_refptr<URLRequestContext> request_context_;
+ static URLRequestContext* request_context_;
DISALLOW_COPY_AND_ASSIGN(OCSPInitSingleton);
};
-scoped_refptr<URLRequestContext> OCSPInitSingleton::request_context_;
+URLRequestContext* OCSPInitSingleton::request_context_ = NULL;
// Concrete class for SEC_HTTP_REQUEST_SESSION.
// Public methods except virtual methods of URLRequest::Delegate (On* methods)
@@ -530,4 +530,8 @@
OCSPInitSingleton::set_url_request_context(request_context);
}
+URLRequestContext* GetURLRequestContextForOCSP() {
+ return OCSPInitSingleton::url_request_context();
+}
+
} // namespace net
« no previous file with comments | « net/ocsp/nss_ocsp.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698