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

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: Rebase 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
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('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 9eb0b3e09d00641f4acf9ea7d0532e9ef7d9977c..3d2f7d827dda5d773fbff57a70df97b9c87e1473 100644
--- a/extensions/common/api/cast_channel.idl
+++ b/extensions/common/api/cast_channel.idl
@@ -151,6 +151,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
@@ -181,6 +188,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.
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698