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

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

Issue 170063006: Cast: Add JS API to get raw events logs from cast extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed kalman's comments Created 6 years, 10 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 310db2f49fdd3e283c13d6f78e417242ba69f7c8..e0e3e8016389c91805241e66ba6ed30fee5ac565 100644
--- a/chrome/common/extensions/api/cast_streaming_rtp_stream.idl
+++ b/chrome/common/extensions/api/cast_streaming_rtp_stream.idl
@@ -60,6 +60,19 @@ namespace cast.streaming.rtpStream {
// |id| : The ID for the RTP stream.
callback CreateCallback = void (long streamId);
+ // Callback from the <code>getRawEvents</code> method.
+ // |rawEvents|: serialized raw bytes containing raw events recorded for
+ // a stream.
+ // 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);
+
interface Functions {
// Destroys a Cast RTP stream.
// |streamId| : The RTP stream ID.
@@ -79,6 +92,22 @@ namespace cast.streaming.rtpStream {
// Stops activity on the specified stream.
// |streamId| : The RTP stream ID.
[nocompile] static void stop(long streamId);
+
+ // Enables / disables logging for a stream.
+ // |enable|: If true, enables logging. Otherwise disables logging.
+ [nocompile] static void toggleLogging(long streamId, boolean enable);
+
+ // Get raw events for a stream in the current session.
+ // |streamId|: Stream to get events for.
+ // |callback|: Called with the raw events Blob.
+ [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.
+ [nocompile] static void getStats(
+ long streamId, GetStatsCallback callback);
};
interface Events {
« no previous file with comments | « no previous file | chrome/renderer/extensions/cast_streaming_native_handler.h » ('j') | chrome/renderer/media/cast_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698