Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: components/cast_certificate/cast_cert_validator.h

Issue 1924323002: Move Cast certificate verification code from extensions to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified OWNERS files Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/cast_certificate/OWNERS ('k') | components/cast_certificate/cast_cert_validator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_
6 #define EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ 6 #define COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 16
17 namespace extensions { 17 namespace cast_certificate {
18 namespace api {
19 namespace cast_crypto {
20 18
21 // Describes the policy for a Device certificate. 19 // Describes the policy for a Device certificate.
22 enum class CastDeviceCertPolicy { 20 enum class CastDeviceCertPolicy {
23 // The device certificate is unrestricted. 21 // The device certificate is unrestricted.
24 NONE, 22 NONE,
25 23
26 // The device certificate is for an audio-only device. 24 // The device certificate is for an audio-only device.
27 AUDIO_ONLY, 25 AUDIO_ONLY,
28 }; 26 };
29 27
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Exposed only for testing, not for use in production code. 87 // Exposed only for testing, not for use in production code.
90 // 88 //
91 // Injects trusted root certificates into the CastTrustStore. 89 // Injects trusted root certificates into the CastTrustStore.
92 // |data| must remain valid and not be mutated throughout the lifetime of 90 // |data| must remain valid and not be mutated throughout the lifetime of
93 // the program. 91 // the program.
94 // Warning: Using this function concurrently with VerifyDeviceCert() 92 // Warning: Using this function concurrently with VerifyDeviceCert()
95 // is not thread safe. 93 // is not thread safe.
96 bool AddTrustAnchorForTest(const uint8_t* data, 94 bool AddTrustAnchorForTest(const uint8_t* data,
97 size_t length) WARN_UNUSED_RESULT; 95 size_t length) WARN_UNUSED_RESULT;
98 96
99 } // namespace cast_crypto 97 } // namespace cast_certificate
100 } // namespace api
101 } // namespace extensions
102 98
103 #endif // EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_ 99 #endif // COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_
OLDNEW
« no previous file with comments | « components/cast_certificate/OWNERS ('k') | components/cast_certificate/cast_cert_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698