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

Unified Diff: chrome/common/extensions/api/cast_streaming_rtp_stream.idl

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static cast to int Created 6 years, 9 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: chrome/common/extensions/api/cast_streaming_rtp_stream.idl
diff --git a/chrome/common/extensions/api/cast_streaming_rtp_stream.idl b/chrome/common/extensions/api/cast_streaming_rtp_stream.idl
index e0e3e8016389c91805241e66ba6ed30fee5ac565..231c1aa695a171b553dec106fc1f77e66a25b29a 100644
--- a/chrome/common/extensions/api/cast_streaming_rtp_stream.idl
+++ b/chrome/common/extensions/api/cast_streaming_rtp_stream.idl
@@ -61,17 +61,18 @@ namespace cast.streaming.rtpStream {
callback CreateCallback = void (long streamId);
// Callback from the <code>getRawEvents</code> method.
- // |rawEvents|: serialized raw bytes containing raw events recorded for
- // a stream.
+ // |rawEvents|: compressed serialized raw bytes containing raw events
+ // recorded for a stream.
+ // The compression is in gzip format.
// The serialization format can be found at
// media/cast/logging/log_serializer.cc.
callback GetRawEventsCallback = void (DOMString rawEvents);
// Callback from the <code>getStats</code> method.
- // |rawEvents|: serialized raw bytes containing stats recorded for a stream.
- // The serialization format can be found at
- // media/cast/logging/log_serializer.cc.
- callback GetStatsCallback = void (DOMString stats);
+ // |rawEvents|: dictionary object containing stats recorded for a stream.
+ // The format can be found at
+ // media/cast/logging/stats_converter.cc.
+ callback GetStatsCallback = void (object stats);
interface Functions {
// Destroys a Cast RTP stream.
@@ -99,13 +100,13 @@ namespace cast.streaming.rtpStream {
// Get raw events for a stream in the current session.
// |streamId|: Stream to get events for.
- // |callback|: Called with the raw events Blob.
+ // |callback|: Called with the raw events.
[nocompile] static void getRawEvents(
long streamId, GetRawEventsCallback callback);
// Get stats for a stream in the current session.
// |streamId|: Stream to get stats for.
- // |callback|: Called with the stats Blob.
+ // |callback|: Called with the stats.
[nocompile] static void getStats(
long streamId, GetStatsCallback callback);
};
« no previous file with comments | « chrome/browser/extensions/cast_streaming_apitest.cc ('k') | chrome/renderer/extensions/cast_streaming_native_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698