OLD | NEW |
1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 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_CERT_VERIFIER_H_ | 5 #ifndef NET_BASE_CERT_VERIFIER_H_ |
6 #define NET_BASE_CERT_VERIFIER_H_ | 6 #define NET_BASE_CERT_VERIFIER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // could not be completed synchronously, in which case the result code will | 55 // could not be completed synchronously, in which case the result code will |
56 // be passed to the callback when available. | 56 // be passed to the callback when available. |
57 // | 57 // |
58 int Verify(X509Certificate* cert, const std::string& hostname, | 58 int Verify(X509Certificate* cert, const std::string& hostname, |
59 int flags, CertVerifyResult* verify_result, | 59 int flags, CertVerifyResult* verify_result, |
60 CompletionCallback* callback); | 60 CompletionCallback* callback); |
61 | 61 |
62 private: | 62 private: |
63 class Request; | 63 class Request; |
64 friend class Request; | 64 friend class Request; |
| 65 struct RequestTraits; |
65 scoped_refptr<Request> request_; | 66 scoped_refptr<Request> request_; |
66 DISALLOW_COPY_AND_ASSIGN(CertVerifier); | 67 DISALLOW_COPY_AND_ASSIGN(CertVerifier); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace net | 70 } // namespace net |
70 | 71 |
71 #endif // NET_BASE_CERT_VERIFIER_H_ | 72 #endif // NET_BASE_CERT_VERIFIER_H_ |
OLD | NEW |