OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived | 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived |
6 // from AuthCertificateCallback() in | 6 // from AuthCertificateCallback() in |
7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. | 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. |
8 | 8 |
9 /* ***** BEGIN LICENSE BLOCK ***** | 9 /* ***** BEGIN LICENSE BLOCK ***** |
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #include <sslproto.h> | 61 #include <sslproto.h> |
62 | 62 |
63 #include <algorithm> | 63 #include <algorithm> |
64 #include <limits> | 64 #include <limits> |
65 #include <map> | 65 #include <map> |
66 | 66 |
67 #include "base/compiler_specific.h" | 67 #include "base/compiler_specific.h" |
68 #include "base/logging.h" | 68 #include "base/logging.h" |
69 #include "base/memory/singleton.h" | 69 #include "base/memory/singleton.h" |
70 #include "base/metrics/histogram.h" | 70 #include "base/metrics/histogram.h" |
71 #include "base/nss_util.h" | |
72 #include "base/string_number_conversions.h" | 71 #include "base/string_number_conversions.h" |
73 #include "base/string_util.h" | 72 #include "base/string_util.h" |
74 #include "base/stringprintf.h" | 73 #include "base/stringprintf.h" |
75 #include "base/threading/thread_restrictions.h" | 74 #include "base/threading/thread_restrictions.h" |
76 #include "base/values.h" | 75 #include "base/values.h" |
77 #include "net/base/address_list.h" | 76 #include "net/base/address_list.h" |
78 #include "net/base/cert_status_flags.h" | 77 #include "net/base/cert_status_flags.h" |
79 #include "net/base/cert_verifier.h" | 78 #include "net/base/cert_verifier.h" |
80 #include "net/base/connection_type_histograms.h" | 79 #include "net/base/connection_type_histograms.h" |
81 #include "net/base/dns_util.h" | 80 #include "net/base/dns_util.h" |
(...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2528 valid_thread_id_ = base::PlatformThread::CurrentId(); | 2527 valid_thread_id_ = base::PlatformThread::CurrentId(); |
2529 } | 2528 } |
2530 | 2529 |
2531 bool SSLClientSocketNSS::CalledOnValidThread() const { | 2530 bool SSLClientSocketNSS::CalledOnValidThread() const { |
2532 EnsureThreadIdAssigned(); | 2531 EnsureThreadIdAssigned(); |
2533 base::AutoLock auto_lock(lock_); | 2532 base::AutoLock auto_lock(lock_); |
2534 return valid_thread_id_ == base::PlatformThread::CurrentId(); | 2533 return valid_thread_id_ == base::PlatformThread::CurrentId(); |
2535 } | 2534 } |
2536 | 2535 |
2537 } // namespace net | 2536 } // namespace net |
OLD | NEW |