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

Side by Side Diff: extensions/browser/api/cast_channel/cast_auth_util.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_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace extensions { 10 namespace extensions {
11 namespace core_api { 11 namespace api {
12 namespace cast_channel { 12 namespace cast_channel {
13 13
14 class AuthResponse; 14 class AuthResponse;
15 class CastMessage; 15 class CastMessage;
16 class DeviceAuthMessage; 16 class DeviceAuthMessage;
17 17
18 struct AuthResult { 18 struct AuthResult {
19 public: 19 public:
20 enum ErrorType { 20 enum ErrorType {
21 ERROR_NONE, 21 ERROR_NONE,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 AuthResult AuthenticateChallengeReply(const CastMessage& challenge_reply, 64 AuthResult AuthenticateChallengeReply(const CastMessage& challenge_reply,
65 const std::string& peer_cert); 65 const std::string& peer_cert);
66 66
67 // Auth-library specific implementation of cryptographic signature 67 // Auth-library specific implementation of cryptographic signature
68 // verification routines. Verifies that |response| contains a 68 // verification routines. Verifies that |response| contains a
69 // valid signed form of |peer_cert|. 69 // valid signed form of |peer_cert|.
70 AuthResult VerifyCredentials(const AuthResponse& response, 70 AuthResult VerifyCredentials(const AuthResponse& response,
71 const std::string& peer_cert); 71 const std::string& peer_cert);
72 72
73 } // namespace cast_channel 73 } // namespace cast_channel
74 } // namespace core_api 74 } // namespace api
75 } // namespace extensions 75 } // namespace extensions
76 76
77 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ 77 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_auth_ica_unittest.cc ('k') | extensions/browser/api/cast_channel/cast_auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698