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

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

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « net/cert/pem_tokenizer_unittest.cc ('k') | net/cert/single_request_cert_verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_BASE_SINGLE_REQUEST_CERT_VERIFIER_H_ 5 #ifndef NET_CERT_SINGLE_REQUEST_CERT_VERIFIER_H_
6 #define NET_BASE_SINGLE_REQUEST_CERT_VERIFIER_H_ 6 #define NET_CERT_SINGLE_REQUEST_CERT_VERIFIER_H_
7 7
8 #include "net/base/cert_verifier.h" 8 #include "net/cert/cert_verifier.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 // This class represents the task of verifying a certificate. It wraps 12 // This class represents the task of verifying a certificate. It wraps
13 // CertVerifier to verify only a single certificate at a time and cancels this 13 // CertVerifier to verify only a single certificate at a time and cancels this
14 // request when going out of scope. 14 // request when going out of scope.
15 class SingleRequestCertVerifier { 15 class SingleRequestCertVerifier {
16 public: 16 public:
17 // |cert_verifier| must remain valid for the lifetime of |this|. 17 // |cert_verifier| must remain valid for the lifetime of |this|.
18 explicit SingleRequestCertVerifier(CertVerifier* cert_verifier); 18 explicit SingleRequestCertVerifier(CertVerifier* cert_verifier);
(...skipping 23 matching lines...) Expand all
42 42
43 // The current request (if any). 43 // The current request (if any).
44 CertVerifier::RequestHandle cur_request_; 44 CertVerifier::RequestHandle cur_request_;
45 CompletionCallback cur_request_callback_; 45 CompletionCallback cur_request_callback_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(SingleRequestCertVerifier); 47 DISALLOW_COPY_AND_ASSIGN(SingleRequestCertVerifier);
48 }; 48 };
49 49
50 } // namespace net 50 } // namespace net
51 51
52 #endif // NET_BASE_SINGLE_REQUEST_CERT_VERIFIER_H_ 52 #endif // NET_CERT_SINGLE_REQUEST_CERT_VERIFIER_H_
OLDNEW
« no previous file with comments | « net/cert/pem_tokenizer_unittest.cc ('k') | net/cert/single_request_cert_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698