| OLD | NEW |
| 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_CERT_VERIFY_PROC_WIN_H_ | 5 #ifndef NET_BASE_CERT_VERIFY_PROC_ANDROID_H_ |
| 6 #define NET_BASE_CERT_VERIFY_PROC_WIN_H_ | 6 #define NET_BASE_CERT_VERIFY_PROC_ANDROID_H_ |
| 7 | 7 |
| 8 #include "net/base/cert_verify_proc.h" | 8 #include "net/base/cert_verify_proc.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 // Performs certificate path construction and validation using Windows' | 12 // Performs certificate verification on Android by calling the platform |
| 13 // CryptoAPI. | 13 // TrustManager through JNI. |
| 14 class CertVerifyProcWin : public CertVerifyProc { | 14 class CertVerifyProcAndroid : public CertVerifyProc { |
| 15 public: | 15 public: |
| 16 CertVerifyProcWin(); | 16 CertVerifyProcAndroid(); |
| 17 | 17 |
| 18 protected: | 18 protected: |
| 19 virtual ~CertVerifyProcWin(); | 19 virtual ~CertVerifyProcAndroid(); |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 virtual int VerifyInternal(X509Certificate* cert, | 22 virtual int VerifyInternal(X509Certificate* cert, |
| 23 const std::string& hostname, | 23 const std::string& hostname, |
| 24 int flags, | 24 int flags, |
| 25 CRLSet* crl_set, | 25 CRLSet* crl_set, |
| 26 CertVerifyResult* verify_result) OVERRIDE; | 26 CertVerifyResult* verify_result) OVERRIDE; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace net | 29 } // namespace net |
| 30 | 30 |
| 31 #endif // NET_BASE_CERT_VERIFY_PROC_WIN_H_ | 31 #endif // NET_BASE_CERT_VERIFY_PROC_ANDROID_H_ |
| OLD | NEW |