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

Side by Side Diff: net/cert/single_request_cert_verifier.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 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/base/single_request_cert_verifier.h" 5 #include "net/cert/single_request_cert_verifier.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/x509_certificate.h" 10 #include "net/cert/x509_certificate.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 SingleRequestCertVerifier::SingleRequestCertVerifier( 14 SingleRequestCertVerifier::SingleRequestCertVerifier(
15 CertVerifier* cert_verifier) 15 CertVerifier* cert_verifier)
16 : cert_verifier_(cert_verifier), 16 : cert_verifier_(cert_verifier),
17 cur_request_(NULL) { 17 cur_request_(NULL) {
18 DCHECK(cert_verifier_ != NULL); 18 DCHECK(cert_verifier_ != NULL);
19 } 19 }
20 20
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Clear the outstanding request information. 62 // Clear the outstanding request information.
63 cur_request_ = NULL; 63 cur_request_ = NULL;
64 cur_request_callback_.Reset(); 64 cur_request_callback_.Reset();
65 65
66 // Call the user's original callback. 66 // Call the user's original callback.
67 callback.Run(result); 67 callback.Run(result);
68 } 68 }
69 69
70 } // namespace net 70 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698