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

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

Issue 456213002: Cast channel: Add cast.channel.getLogs extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ADd missing files Created 6 years, 4 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
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..89a3190d971a80dabf6fd55e23cd01b4bdfd47d1 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,
+ // it is invoked with an empty ArrayBuffer.
mark a. foltz 2014/08/11 23:01:44 I think the preferred approach is to use chrome.ru
imcheng 2014/08/12 07:42:10 Done. I assume this is done using SetError()? Is t
+ static void getLogs(GetLogsCallback callback);
};
// Events on the channel.

Powered by Google App Engine
This is Rietveld 408576698