Index: extensions/common/api/cast_channel.idl |
diff --git a/extensions/common/api/cast_channel.idl b/extensions/common/api/cast_channel.idl |
index ebefa990cc7eb0e7cce249a8f5271f9e57256bf9..4b6d5d628891849f393a9e51e5f4db503cdd8b51 100644 |
--- a/extensions/common/api/cast_channel.idl |
+++ b/extensions/common/api/cast_channel.idl |
@@ -127,6 +127,13 @@ namespace cast.channel { |
// Callback holding the result of a channel operation. |
callback ChannelInfoCallback = void (ChannelInfo result); |
+ // Callback from <code>getLogs</code> method. |
+ // |log|: compressed serialized raw bytes containing the logs. |
+ // The log is formatted using protocol buffer. |
+ // See extensions/browser/api/cast_channel/logging.proto for definition. |
+ // Compression is in gzip format. |
+ callback GetLogsCallback = void (ArrayBuffer log); |
+ |
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 |
@@ -155,6 +162,12 @@ 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. |
+ // |callback|: If successful, |callback| is invoked with data. Otherwise, |
+ // an error will be raised. |
+ static void getLogs(GetLogsCallback callback); |
}; |
// Events on the channel. |