OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ | 5 #ifndef EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ |
6 #define EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ | 6 #define EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
13 | 14 |
14 namespace extensions { | 15 namespace extensions { |
15 namespace api { | 16 namespace api { |
16 namespace cast_crypto { | 17 namespace cast_crypto { |
17 | 18 |
18 // Status of a certificate or certificate verification operation. | 19 // Status of a certificate or certificate verification operation. |
19 struct VerificationResult { | 20 struct VerificationResult { |
20 // Mapped to extensions::api::cast_channel::AuthResult::ErrorType in | 21 // Mapped to extensions::api::cast_channel::AuthResult::ErrorType in |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 84 |
84 // Sets trusted certificate authorities. Only exposed for tests. | 85 // Sets trusted certificate authorities. Only exposed for tests. |
85 bool SetTrustedCertificateAuthoritiesForTest(const std::string& keys, | 86 bool SetTrustedCertificateAuthoritiesForTest(const std::string& keys, |
86 const std::string& signature); | 87 const std::string& signature); |
87 | 88 |
88 } // namespace cast_crypto | 89 } // namespace cast_crypto |
89 } // namespace api | 90 } // namespace api |
90 } // namespace extensions | 91 } // namespace extensions |
91 | 92 |
92 #endif // EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ | 93 #endif // EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ |
OLD | NEW |