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

Side by Side Diff: net/socket/ssl_client_socket_nss.cc

Issue 6805019: Move crypto files out of base, to a top level directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698