summaryrefslogtreecommitdiffstats
path: root/net/ocsp/nss_ocsp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/ocsp/nss_ocsp.cc')
-rw-r--r--net/ocsp/nss_ocsp.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc
index ce9fc1a4..62e9c82d 100644
--- a/net/ocsp/nss_ocsp.cc
+++ b/net/ocsp/nss_ocsp.cc
@@ -50,8 +50,8 @@ class OCSPInitSingleton {
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 @@ class OCSPInitSingleton {
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 @@ void SetURLRequestContextForOCSP(URLRequestContext* request_context) {
OCSPInitSingleton::set_url_request_context(request_context);
}
+URLRequestContext* GetURLRequestContextForOCSP() {
+ return OCSPInitSingleton::url_request_context();
+}
+
} // namespace net