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

Side by Side Diff: extensions/browser/api/cast_channel/cast_auth_ica.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/browser/api/cast_channel/cast_auth_ica.h" 5 #include "extensions/browser/api/cast_channel/cast_auth_ica.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "crypto/signature_verifier.h" 9 #include "crypto/signature_verifier.h"
10 #include "extensions/browser/api/cast_channel/cast_auth_util.h" 10 #include "extensions/browser/api/cast_channel/cast_auth_util.h"
11 #include "extensions/common/api/cast_channel/authority_keys.pb.h" 11 #include "extensions/common/api/cast_channel/authority_keys.pb.h"
12 #include "net/base/hash_value.h" 12 #include "net/base/hash_value.h"
13 #include "net/cert/x509_certificate.h" 13 #include "net/cert/x509_certificate.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 namespace core_api { 16 namespace api {
17 namespace cast_channel { 17 namespace cast_channel {
18 namespace { 18 namespace {
19 19
20 // Fingerprint of the default ICA. 20 // Fingerprint of the default ICA.
21 static const net::SHA256HashValue kDefaultFingerprintICA = { { 21 static const net::SHA256HashValue kDefaultFingerprintICA = { {
22 0x52, 0x9D, 0x9C, 0xD6, 0x7F, 0xE5, 0xEB, 0x69, 0x8E, 0x70, 0xDD, 0x26, 22 0x52, 0x9D, 0x9C, 0xD6, 0x7F, 0xE5, 0xEB, 0x69, 0x8E, 0x70, 0xDD, 0x26,
23 0xD7, 0xD8, 0xF1, 0x26, 0x59, 0xF1, 0xE6, 0xE5, 0x23, 0x48, 0xBF, 0x6A, 23 0xD7, 0xD8, 0xF1, 0x26, 0x59, 0xF1, 0xE6, 0xE5, 0x23, 0x48, 0xBF, 0x6A,
24 0x5C, 0xF7, 0x16, 0xE1, 0x3F, 0x41, 0x0E, 0x73 24 0x5C, 0xF7, 0x16, 0xE1, 0x3F, 0x41, 0x0E, 0x73
25 } }; 25 } };
26 26
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 net::X509Certificate::CalculateFingerprint256( 155 net::X509Certificate::CalculateFingerprint256(
156 ica_cert->os_cert_handle())); 156 ica_cert->os_cert_handle()));
157 } 157 }
158 158
159 base::StringPiece GetDefaultTrustedICAPublicKey() { 159 base::StringPiece GetDefaultTrustedICAPublicKey() {
160 AuthorityKeyStore& authority_keys_store = g_authority_keys_store.Get(); 160 AuthorityKeyStore& authority_keys_store = g_authority_keys_store.Get();
161 return authority_keys_store.GetDefaultICAPublicKey(); 161 return authority_keys_store.GetDefaultICAPublicKey();
162 } 162 }
163 163
164 } // namespace cast_channel 164 } // namespace cast_channel
165 } // namespace core_api 165 } // namespace api
166 } // namespace extensions 166 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_auth_ica.h ('k') | extensions/browser/api/cast_channel/cast_auth_ica_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698