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_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ | 5 #ifndef COMPONENTS_CAST_CHANNEL_CAST_AUTH_UTIL_H_ |
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ | 6 #define COMPONENTS_CAST_CHANNEL_CAST_AUTH_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 | 12 |
13 namespace cast_certificate { | 13 namespace cast_certificate { |
14 enum class CRLPolicy; | 14 enum class CRLPolicy; |
15 } | 15 } |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 class X509Certificate; | 18 class X509Certificate; |
19 class TrustStore; | 19 class TrustStore; |
20 } // namespace net | 20 } // namespace net |
21 | 21 |
22 namespace extensions { | |
23 namespace api { | |
24 namespace cast_channel { | 22 namespace cast_channel { |
25 | 23 |
26 class AuthResponse; | 24 class AuthResponse; |
27 class CastMessage; | 25 class CastMessage; |
28 | 26 |
29 struct AuthResult { | 27 struct AuthResult { |
30 public: | 28 public: |
31 enum ErrorType { | 29 enum ErrorType { |
32 ERROR_NONE, | 30 ERROR_NONE, |
33 ERROR_PEER_CERT_EMPTY, | 31 ERROR_PEER_CERT_EMPTY, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // the crl policy, trust stores, and verification times. | 111 // the crl policy, trust stores, and verification times. |
114 AuthResult VerifyCredentialsForTest( | 112 AuthResult VerifyCredentialsForTest( |
115 const AuthResponse& response, | 113 const AuthResponse& response, |
116 const std::string& signature_input, | 114 const std::string& signature_input, |
117 const cast_certificate::CRLPolicy& crl_policy, | 115 const cast_certificate::CRLPolicy& crl_policy, |
118 net::TrustStore* cast_trust_store, | 116 net::TrustStore* cast_trust_store, |
119 net::TrustStore* crl_trust_store, | 117 net::TrustStore* crl_trust_store, |
120 const base::Time& verification_time); | 118 const base::Time& verification_time); |
121 | 119 |
122 } // namespace cast_channel | 120 } // namespace cast_channel |
123 } // namespace api | |
124 } // namespace extensions | |
125 | 121 |
126 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ | 122 #endif // COMPONENTS_CAST_CHANNEL_CAST_AUTH_UTIL_H_ |
OLD | NEW |