| 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 #include "extensions/common/cast/cast_cert_validator.h" | 5 #include "extensions/common/cast/cast_cert_validator.h" |
| 6 | 6 |
| 7 #include "extensions/browser/api/cast_channel/cast_auth_ica.h" | 7 #include "extensions/browser/api/cast_channel/cast_auth_ica.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 namespace core_api { | 10 namespace api { |
| 11 namespace cast_crypto { | 11 namespace cast_crypto { |
| 12 | 12 |
| 13 VerificationResult::VerificationResult() | 13 VerificationResult::VerificationResult() |
| 14 : VerificationResult("", ERROR_NONE, 0) { | 14 : VerificationResult("", ERROR_NONE, 0) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 VerificationResult::VerificationResult(const std::string& in_error_message, | 17 VerificationResult::VerificationResult(const std::string& in_error_message, |
| 18 ErrorType in_error_type) | 18 ErrorType in_error_type) |
| 19 : VerificationResult(in_error_message, in_error_type, 0) { | 19 : VerificationResult(in_error_message, in_error_type, 0) { |
| 20 } | 20 } |
| 21 | 21 |
| 22 VerificationResult::VerificationResult(const std::string& in_error_message, | 22 VerificationResult::VerificationResult(const std::string& in_error_message, |
| 23 ErrorType in_error_type, | 23 ErrorType in_error_type, |
| 24 int in_error_code) | 24 int in_error_code) |
| 25 : error_type(in_error_type), | 25 : error_type(in_error_type), |
| 26 error_message(in_error_message), | 26 error_message(in_error_message), |
| 27 library_error_code(in_error_code) { | 27 library_error_code(in_error_code) { |
| 28 } | 28 } |
| 29 | 29 |
| 30 bool SetTrustedCertificateAuthoritiesForTest(const std::string& keys, | 30 bool SetTrustedCertificateAuthoritiesForTest(const std::string& keys, |
| 31 const std::string& signature) { | 31 const std::string& signature) { |
| 32 return extensions::core_api::cast_channel::SetTrustedCertificateAuthorities( | 32 return extensions::api::cast_channel::SetTrustedCertificateAuthorities( |
| 33 keys, signature); | 33 keys, signature); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace cast_crypto | 36 } // namespace cast_crypto |
| 37 } // namespace core_api | 37 } // namespace api |
| 38 } // namespace extensions | 38 } // namespace extensions |
| OLD | NEW |