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

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

Issue 395333003: Extensions: Move cast_channel and hid APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_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 api { 11 namespace core_api {
12 namespace cast_channel { 12 namespace cast_channel {
13 13
14 class CastMessage; 14 class CastMessage;
15 15
16 // Authenticates the given |challenge_reply|: 16 // Authenticates the given |challenge_reply|:
17 // 1. Signature contained in the reply is valid. 17 // 1. Signature contained in the reply is valid.
18 // 2. Certficate used to sign is rooted to a trusted CA. 18 // 2. Certficate used to sign is rooted to a trusted CA.
19 bool AuthenticateChallengeReply(const CastMessage& challenge_reply, 19 bool AuthenticateChallengeReply(const CastMessage& challenge_reply,
20 const std::string& peer_cert); 20 const std::string& peer_cert);
21 21
22 } // namespace cast_channel 22 } // namespace cast_channel
23 } // namespace api 23 } // namespace core_api
24 } // namespace extensions 24 } // namespace extensions
25 25
26 #endif // CHROME_BROWSER_EXTENSIONS_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ 26 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/OWNERS ('k') | extensions/browser/api/cast_channel/cast_auth_util_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698