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

Side by Side Diff: extensions/browser/api/cast_channel/cast_auth_ica.h

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 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_ICA_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_ICA_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_ICA_H_ 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_ICA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "net/base/hash_value.h" 15 #include "net/base/hash_value.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 namespace core_api { 18 namespace api {
19 namespace cast_channel { 19 namespace cast_channel {
20 20
21 typedef std::map<net::SHA256HashValue, 21 typedef std::map<net::SHA256HashValue,
22 base::StringPiece, 22 base::StringPiece,
23 net::SHA256HashValueLessThan> AuthorityKeysMap; 23 net::SHA256HashValueLessThan> AuthorityKeysMap;
24 24
25 namespace proto { 25 namespace proto {
26 26
27 // Forward declaration to avoid including generated protobuf header. 27 // Forward declaration to avoid including generated protobuf header.
28 class AuthorityKeys; 28 class AuthorityKeys;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Gets the trusted ICA entry for the cert represented by |data|. 71 // Gets the trusted ICA entry for the cert represented by |data|.
72 // Returns the serialized certificate as bytes if the ICA was found. 72 // Returns the serialized certificate as bytes if the ICA was found.
73 // Returns an empty-length StringPiece if the ICA was not found. 73 // Returns an empty-length StringPiece if the ICA was not found.
74 base::StringPiece GetTrustedICAPublicKey(const base::StringPiece& data); 74 base::StringPiece GetTrustedICAPublicKey(const base::StringPiece& data);
75 75
76 // Gets the default trusted ICA for legacy compatibility. 76 // Gets the default trusted ICA for legacy compatibility.
77 base::StringPiece GetDefaultTrustedICAPublicKey(); 77 base::StringPiece GetDefaultTrustedICAPublicKey();
78 78
79 } // namespace cast_channel 79 } // namespace cast_channel
80 } // namespace core_api 80 } // namespace api
81 } // namespace extensions 81 } // namespace extensions
82 82
83 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_ICA_H_ 83 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_ICA_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/capture_web_contents_function.cc ('k') | extensions/browser/api/cast_channel/cast_auth_ica.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698