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

Side by Side Diff: extensions/common/cast/cast_cert_validator.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
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 #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
OLDNEW
« 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