| Index: chrome/renderer/extensions/cast_streaming_native_handler.h
|
| diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.h b/chrome/renderer/extensions/cast_streaming_native_handler.h
|
| index 9f41a921dc848d2cd86635da1778e5508546fc75..52e1b97d1881948b52d284328811b3f92f506c3b 100644
|
| --- a/chrome/renderer/extensions/cast_streaming_native_handler.h
|
| +++ b/chrome/renderer/extensions/cast_streaming_native_handler.h
|
| @@ -48,6 +48,10 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
|
| void StopCastUdpTransport(
|
| const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
| + void ToggleLogging(const v8::FunctionCallbackInfo<v8::Value>& args);
|
| + void GetRawEvents(const v8::FunctionCallbackInfo<v8::Value>& args);
|
| + void GetStats(const v8::FunctionCallbackInfo<v8::Value>& args);
|
| +
|
| // Helper method to call the v8 callback function after a session is
|
| // created.
|
| void CallCreateCallback(scoped_ptr<CastRtpStream> stream1,
|
| @@ -58,6 +62,9 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
|
| void CallStopCallback(int stream_id);
|
| void CallErrorCallback(int stream_id, const std::string& message);
|
|
|
| + void CallGetRawEventsCallback(int transport_id,
|
| + scoped_ptr<std::string> raw_events);
|
| +
|
| // Gets the RTP stream or UDP transport indexed by an ID.
|
| // If not found, returns NULL and throws a V8 exception.
|
| CastRtpStream* GetRtpStreamOrThrow(int stream_id) const;
|
| @@ -75,6 +82,11 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
|
|
|
| extensions::ScopedPersistent<v8::Function> create_callback_;
|
|
|
| + typedef std::map<int,
|
| + linked_ptr<extensions::ScopedPersistent<v8::Function> > >
|
| + RtpStreamCallbackMap;
|
| + RtpStreamCallbackMap get_raw_events_callbacks_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(CastStreamingNativeHandler);
|
| };
|
|
|
|
|