Chromium Code Reviews| 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..7120d0d50b3f45af088d0e602220175cffce27fa 100644 |
| --- a/chrome/common/extensions/api/cast_streaming_rtp_stream.idl |
| +++ b/chrome/common/extensions/api/cast_streaming_rtp_stream.idl |
| @@ -60,6 +60,20 @@ namespace cast.streaming.rtpStream { |
| // |id| : The ID for the RTP stream. |
| callback CreateCallback = void (long streamId); |
| + // Callback from the <code>getRawEvents</code> method. |
| + // |rawEvents|: events encoded in protocol buffer format along with other |
|
not at google - send to devlin
2014/02/25 19:34:36
encoded in protobuf? like the raw bytes? or are yo
imcheng
2014/02/25 21:00:51
The events will be in serialized format as specifi
not at google - send to devlin
2014/02/25 21:03:46
It's a bit crazy to expect extensions in the wild
|
| + // data serialized as a string. |
| + // 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|: stats encoded in protocol buffer format along with other |
| + // data serialized as a string. |
| + // 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 +93,24 @@ 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. |
| + // |startLogging()| must have been called before. |
| + // |streamId|: Stream to get events for. |
| + // |callback|: Called with the raw events Blob. |
| + [nocompile] static void getRawEvents( |
|
not at google - send to devlin
2014/02/25 19:34:36
how big could this be? can you limit it?
imcheng
2014/02/25 21:00:51
Currently it is limited is 20MB. This will be smal
|
| + long streamId, GetRawEventsCallback callback); |
| + |
| + // Get stats for a stream in the current session. |
| + // |startLogging()| must have been called before. |
| + // |streamId|: Stream to get stats for. |
| + // |callback|: Called with the stats Blob. |
| + [nocompile] static void getStats( |
| + long streamId, GetStatsCallback callback); |
| }; |
| interface Events { |