| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CT_VERIFIER_H_ | 5 #ifndef NET_CERT_CT_VERIFIER_H_ |
| 6 #define NET_CERT_CT_VERIFIER_H_ | 6 #define NET_CERT_CT_VERIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 11 #include "net/cert/signed_certificate_timestamp_and_status.h" | 11 #include "net/cert/signed_certificate_timestamp_and_status.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class CTLogVerifier; | |
| 16 class NetLogWithSource; | 15 class NetLogWithSource; |
| 17 class X509Certificate; | 16 class X509Certificate; |
| 18 | 17 |
| 19 // Interface for verifying Signed Certificate Timestamps over a certificate. | 18 // Interface for verifying Signed Certificate Timestamps over a certificate. |
| 20 class NET_EXPORT CTVerifier { | 19 class NET_EXPORT CTVerifier { |
| 21 public: | 20 public: |
| 22 class NET_EXPORT Observer { | 21 class NET_EXPORT Observer { |
| 23 public: | 22 public: |
| 24 // Called for each Signed Certificate Timestamp from a known log that vas | 23 // Called for each Signed Certificate Timestamp from a known log that vas |
| 25 // verified successfully (i.e. the signature verifies). |sct| is the | 24 // verified successfully (i.e. the signature verifies). |sct| is the |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 // Registers |observer| to receive notifications of validated SCTs. Does not | 55 // Registers |observer| to receive notifications of validated SCTs. Does not |
| 57 // take ownership of the observer as the observer may be performing | 56 // take ownership of the observer as the observer may be performing |
| 58 // URLRequests which have to be cancelled before this object is destroyed. | 57 // URLRequests which have to be cancelled before this object is destroyed. |
| 59 // Setting |observer| to nullptr has the effect of stopping all notifications. | 58 // Setting |observer| to nullptr has the effect of stopping all notifications. |
| 60 virtual void SetObserver(Observer* observer) = 0; | 59 virtual void SetObserver(Observer* observer) = 0; |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace net | 62 } // namespace net |
| 64 | 63 |
| 65 #endif // NET_CERT_CT_VERIFIER_H_ | 64 #endif // NET_CERT_CT_VERIFIER_H_ |
| OLD | NEW |