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

Unified 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: Rebase only Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/cast_certificate/cast_cert_validator.h
diff --git a/extensions/common/cast/cast_cert_validator.h b/components/cast_certificate/cast_cert_validator.h
similarity index 92%
rename from extensions/common/cast/cast_cert_validator.h
rename to components/cast_certificate/cast_cert_validator.h
index 71ca34c0dddeca48dd0cab08cdf5a2280a0adbc9..1c335ae6530b446a86bf234d00ac39f5774a0c7f 100644
--- a/extensions/common/cast/cast_cert_validator.h
+++ b/components/cast_certificate/cast_cert_validator.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_
-#define EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_
+#ifndef COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_
+#define COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_
#include <memory>
#include <string>
@@ -14,9 +14,7 @@
#include "base/strings/string_piece.h"
#include "base/time/time.h"
-namespace extensions {
-namespace api {
-namespace cast_crypto {
+namespace cast_certificate {
// Describes the policy for a Device certificate.
enum class CastDeviceCertPolicy {
@@ -96,8 +94,6 @@ std::unique_ptr<CertVerificationContext> CertVerificationContextImplForTest(
bool AddTrustAnchorForTest(const uint8_t* data,
size_t length) WARN_UNUSED_RESULT;
-} // namespace cast_crypto
-} // namespace api
-} // namespace extensions
+} // namespace cast_certificate
-#endif // EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_
+#endif // COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_

Powered by Google App Engine
This is Rietveld 408576698