OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // If this callback is called with STATUS_INITIALIZED it will report back | 89 // If this callback is called with STATUS_INITIALIZED it will report back |
90 // to the sinks that it's ready to accept incoming audio / video frames. | 90 // to the sinks that it's ready to accept incoming audio / video frames. |
91 void InitializationResultCB( | 91 void InitializationResultCB( |
92 media::cast::CastInitializationStatus result) const; | 92 media::cast::CastInitializationStatus result) const; |
93 | 93 |
94 private: | 94 private: |
95 void StatusNotificationCB( | 95 void StatusNotificationCB( |
96 media::cast::CastTransportStatus status); | 96 media::cast::CastTransportStatus status); |
97 | 97 |
98 // Adds logs collected from transport on browser side. | 98 // Adds logs collected from transport on browser side. |
99 void LogRawEvents(const std::vector<media::cast::PacketEvent>& packet_events); | 99 void LogRawEvents(const std::vector<media::cast::PacketEvent>& packet_events, |
| 100 const std::vector<media::cast::FrameEvent>& frame_events); |
100 | 101 |
101 base::ThreadChecker thread_checker_; | 102 base::ThreadChecker thread_checker_; |
102 scoped_refptr<media::cast::CastEnvironment> cast_environment_; | 103 scoped_refptr<media::cast::CastEnvironment> cast_environment_; |
103 scoped_ptr<media::cast::CastSender> cast_sender_; | 104 scoped_ptr<media::cast::CastSender> cast_sender_; |
104 scoped_ptr<media::cast::CastTransportSender> cast_transport_; | 105 scoped_ptr<media::cast::CastTransportSender> cast_transport_; |
105 | 106 |
106 AudioFrameInputAvailableCallback audio_frame_input_available_callback_; | 107 AudioFrameInputAvailableCallback audio_frame_input_available_callback_; |
107 VideoFrameInputAvailableCallback video_frame_input_available_callback_; | 108 VideoFrameInputAvailableCallback video_frame_input_available_callback_; |
108 | 109 |
109 scoped_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_; | 110 scoped_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_; |
110 | 111 |
111 // Proxy to the IO message loop. | 112 // Proxy to the IO message loop. |
112 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 113 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
113 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; | 114 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; |
114 | 115 |
115 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); | 116 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); |
116 }; | 117 }; |
117 | 118 |
118 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 119 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
OLD | NEW |