Chromium Code Reviews| Index: chrome/renderer/media/cast_session_delegate.h |
| diff --git a/chrome/renderer/media/cast_session_delegate.h b/chrome/renderer/media/cast_session_delegate.h |
| index 1f59e9daa51f6af985964e263a3d2fdcc88f90ee..5f9ed7ed2be5192d84d7f602826494d664109a2d 100644 |
| --- a/chrome/renderer/media/cast_session_delegate.h |
| +++ b/chrome/renderer/media/cast_session_delegate.h |
| @@ -5,9 +5,11 @@ |
| #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| +#include <map> |
| #include <vector> |
| #include "base/basictypes.h" |
| +#include "base/memory/linked_ptr.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/threading/thread.h" |
| #include "base/threading/thread_checker.h" |
| @@ -58,8 +60,11 @@ class CastSessionDelegate { |
| void StartUDP(const net::IPEndPoint& local_endpoint, |
| const net::IPEndPoint& remote_endpoint); |
| - // Returns raw event logs in serialized format since last call. |
| - void GetEventLogsAndReset(const EventLogsCallback& callback); |
| + void ToggleLogging(const int stream_id, |
|
Alpha Left Google
2014/02/24 23:25:51
Is |stream_id| useful given there's already |is_au
imcheng
2014/02/25 08:10:18
Done and see other reply.
|
| + const bool enable, |
| + const bool is_audio); |
| + void GetEventLogsAndReset(const EventLogsCallback& callback, |
| + const int stream_id); |
| protected: |
| // Callback with the result of the initialization. |
| @@ -90,13 +95,14 @@ class CastSessionDelegate { |
| FrameInputAvailableCallback audio_frame_input_available_callback_; |
| FrameInputAvailableCallback video_frame_input_available_callback_; |
| - scoped_ptr<media::cast::EncodingEventSubscriber> audio_event_subscriber_; |
| - scoped_ptr<media::cast::EncodingEventSubscriber> video_event_subscriber_; |
| - |
| net::IPEndPoint local_endpoint_; |
| net::IPEndPoint remote_endpoint_; |
| bool transport_configured_; |
| + typedef std::map<int, linked_ptr<media::cast::EncodingEventSubscriber> > |
| + EventSubscriberMap; |
| + EventSubscriberMap event_subscriber_map_; |
| + |
| // Proxy to the IO message loop. |
| scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |