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

Unified Diff: extensions/common/cast/cast_cert_validator.cc

Issue 792353002: Refactoring of Cast-related crypto code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed typo from https://codereview.chromium.org/747223002 Created 5 years, 11 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
« no previous file with comments | « extensions/common/cast/cast_cert_validator.h ('k') | extensions/common/cast/cast_cert_validator_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/cast/cast_cert_validator.cc
diff --git a/extensions/common/cast/cast_cert_validator.cc b/extensions/common/cast/cast_cert_validator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e4f0440ca07c1f9dd31321e5cf654f82a28a0b30
--- /dev/null
+++ b/extensions/common/cast/cast_cert_validator.cc
@@ -0,0 +1,30 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/common/cast/cast_cert_validator.h"
+
+namespace extensions {
+namespace core_api {
+namespace cast_crypto {
+
+VerificationResult::VerificationResult()
+ : VerificationResult("", ERROR_NONE, 0) {
+}
+
+VerificationResult::VerificationResult(const std::string& in_error_message,
+ ErrorType in_error_type)
+ : VerificationResult(in_error_message, in_error_type, 0) {
+}
+
+VerificationResult::VerificationResult(const std::string& in_error_message,
+ ErrorType in_error_type,
+ int in_error_code)
+ : error_type(in_error_type),
+ error_message(in_error_message),
+ library_error_code(in_error_code) {
+}
+
+} // namespace cast_crypto
+} // namespace core_api
+} // namespace extensions
« no previous file with comments | « extensions/common/cast/cast_cert_validator.h ('k') | extensions/common/cast/cast_cert_validator_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698