| 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/ocsp/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> |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 base::TimeDelta timeout_; // The timeout for OCSP | 402 base::TimeDelta timeout_; // The timeout for OCSP |
| 403 URLRequest* request_; // The actual request this wraps | 403 URLRequest* request_; // The actual request this wraps |
| 404 scoped_refptr<IOBuffer> buffer_; // Read buffer | 404 scoped_refptr<IOBuffer> buffer_; // Read buffer |
| 405 HttpRequestHeaders extra_request_headers_; | 405 HttpRequestHeaders extra_request_headers_; |
| 406 std::string upload_content_; // HTTP POST payload | 406 std::string upload_content_; // HTTP POST payload |
| 407 std::string upload_content_type_; // MIME type of POST payload | 407 std::string upload_content_type_; // MIME type of POST payload |
| 408 | 408 |
| 409 int response_code_; // HTTP status code for the request | 409 int response_code_; // HTTP status code for the request |
| 410 std::string response_content_type_; | 410 std::string response_content_type_; |
| 411 scoped_refptr<HttpResponseHeaders> response_headers_; | 411 scoped_refptr<HttpResponseHeaders> response_headers_; |
| 412 std::string data_; // Results of the requst | 412 std::string data_; // Results of the request |
| 413 | 413 |
| 414 // |lock_| protects |finished_| and |io_loop_|. | 414 // |lock_| protects |finished_| and |io_loop_|. |
| 415 mutable base::Lock lock_; | 415 mutable base::Lock lock_; |
| 416 base::ConditionVariable cv_; | 416 base::ConditionVariable cv_; |
| 417 | 417 |
| 418 MessageLoop* io_loop_; // Message loop of the IO thread | 418 MessageLoop* io_loop_; // Message loop of the IO thread |
| 419 bool finished_; | 419 bool finished_; |
| 420 | 420 |
| 421 DISALLOW_COPY_AND_ASSIGN(OCSPRequestSession); | 421 DISALLOW_COPY_AND_ASSIGN(OCSPRequestSession); |
| 422 }; | 422 }; |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 void SetURLRequestContextForNSSHttpIO(URLRequestContext* request_context) { | 938 void SetURLRequestContextForNSSHttpIO(URLRequestContext* request_context) { |
| 939 pthread_mutex_lock(&g_request_context_lock); | 939 pthread_mutex_lock(&g_request_context_lock); |
| 940 if (request_context) { | 940 if (request_context) { |
| 941 DCHECK(!g_request_context); | 941 DCHECK(!g_request_context); |
| 942 } | 942 } |
| 943 g_request_context = request_context; | 943 g_request_context = request_context; |
| 944 pthread_mutex_unlock(&g_request_context_lock); | 944 pthread_mutex_unlock(&g_request_context_lock); |
| 945 } | 945 } |
| 946 | 946 |
| 947 } // namespace net | 947 } // namespace net |
| OLD | NEW |