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

Unified Diff: extensions/common/api/cast_channel.idl

Issue 627573002: Enable passing cast channel certificate authority keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added newline in cast_channel_apitest.cc. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/api/api.gyp ('k') | extensions/common/api/cast_channel/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/cast_channel.idl
diff --git a/extensions/common/api/cast_channel.idl b/extensions/common/api/cast_channel.idl
index 3d2f7d827dda5d773fbff57a70df97b9c87e1473..57a3abdeabec55efc4d43fb0f8443c9e29939093 100644
--- a/extensions/common/api/cast_channel.idl
+++ b/extensions/common/api/cast_channel.idl
@@ -90,7 +90,7 @@ namespace cast.channel {
// The current state of the channel.
ReadyState readyState;
-
+
// If set, the last error condition encountered by the channel.
ChannelError? errorState;
};
@@ -114,7 +114,7 @@ namespace cast.channel {
//
// For messages to or from the sender or receiver platform, the special ids
// 'sender-0' and 'receiver-0' can be used.
- //
+ //
// For messages intended for all endpoints using a given channel, the
// wildcard destination_id '*' can be used.
DOMString sourceId;
@@ -157,7 +157,10 @@ namespace cast.channel {
// See extensions/browser/api/cast_channel/logging.proto for definition.
// Compression is in gzip format.
callback GetLogsCallback = void (ArrayBuffer log);
-
+
+ // Callback from <code>setAuthorityKeys</code> method.
+ callback SetAuthorityKeysCallback = void ();
+
interface Functions {
// Opens a new channel to the Cast receiver specified by connectInfo. Only
// one channel may be connected to same receiver from the same extension at
@@ -188,12 +191,19 @@ namespace cast.channel {
// and channel.errorState will be set to the error condition.
static void close(ChannelInfo channel,
ChannelInfoCallback callback);
-
+
// Get logs in compressed serialized format. See GetLogsCallback for
- // details.
+ // details.
// |callback|: If successful, |callback| is invoked with data. Otherwise,
- // an error will be raised.
+ // an error will be raised.
static void getLogs(GetLogsCallback callback);
+
+ // Sets trusted certificate authorities where |signature| is a base64
+ // encoded RSA-PSS signature and |keys| is base64 encoded AuthorityKeys
+ // protobuf.
+ static void setAuthorityKeys(DOMString keys,
+ DOMString signature,
+ SetAuthorityKeysCallback callback);
};
// Events on the channel.
« no previous file with comments | « extensions/common/api/api.gyp ('k') | extensions/common/api/cast_channel/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698