| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_CERT_CLIENT_CERT_VERIFIER_H_ | 5 #ifndef NET_CERT_CLIENT_CERT_VERIFIER_H_ |
| 6 #define NET_CERT_CLIENT_CERT_VERIFIER_H_ | 6 #define NET_CERT_CLIENT_CERT_VERIFIER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| 10 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
| 11 | 12 |
| 12 namespace net { | 13 namespace net { |
| 13 | 14 |
| 14 class X509Certificate; | 15 class X509Certificate; |
| 15 | 16 |
| 16 // ClientCertVerifier represents a service for verifying certificates. | 17 // ClientCertVerifier represents a service for verifying certificates. |
| 17 class NET_EXPORT ClientCertVerifier { | 18 class NET_EXPORT ClientCertVerifier { |
| 18 public: | 19 public: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 // Verifies the given certificate as a client certificate. | 33 // Verifies the given certificate as a client certificate. |
| 33 // Returns OK if successful or an error code upon failure. | 34 // Returns OK if successful or an error code upon failure. |
| 34 virtual int Verify(X509Certificate* cert, | 35 virtual int Verify(X509Certificate* cert, |
| 35 const CompletionCallback& callback, | 36 const CompletionCallback& callback, |
| 36 scoped_ptr<Request>* out_req) = 0; | 37 scoped_ptr<Request>* out_req) = 0; |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 } // namespace net | 40 } // namespace net |
| 40 | 41 |
| 41 #endif // NET_CERT_CLIENT_CERT_VERIFIER_H_ | 42 #endif // NET_CERT_CLIENT_CERT_VERIFIER_H_ |
| OLD | NEW |