| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/ocsp/nss_ocsp.h" | 5 #include "net/cert_net/nss_ocsp.h" |
| 6 | 6 |
| 7 #include <certt.h> | 7 #include <certt.h> |
| 8 #include <certdb.h> | 8 #include <certdb.h> |
| 9 #include <ocsp.h> | 9 #include <ocsp.h> |
| 10 #include <nspr.h> | 10 #include <nspr.h> |
| 11 #include <nss.h> | 11 #include <nss.h> |
| 12 #include <pthread.h> | 12 #include <pthread.h> |
| 13 #include <secerr.h> | 13 #include <secerr.h> |
| 14 | 14 |
| 15 #include <algorithm> | 15 #include <algorithm> |
| (...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 void SetURLRequestContextForNSSHttpIO(URLRequestContext* request_context) { | 977 void SetURLRequestContextForNSSHttpIO(URLRequestContext* request_context) { |
| 978 pthread_mutex_lock(&g_request_context_lock); | 978 pthread_mutex_lock(&g_request_context_lock); |
| 979 if (request_context) { | 979 if (request_context) { |
| 980 DCHECK(!g_request_context); | 980 DCHECK(!g_request_context); |
| 981 } | 981 } |
| 982 g_request_context = request_context; | 982 g_request_context = request_context; |
| 983 pthread_mutex_unlock(&g_request_context_lock); | 983 pthread_mutex_unlock(&g_request_context_lock); |
| 984 } | 984 } |
| 985 | 985 |
| 986 } // namespace net | 986 } // namespace net |
| OLD | NEW |