| 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 <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const ErrorCallback& error_callback); | 109 const ErrorCallback& error_callback); |
| 110 | 110 |
| 111 void StartVideo( | 111 void StartVideo( |
| 112 const media::cast::FrameSenderConfig& config, | 112 const media::cast::FrameSenderConfig& config, |
| 113 const VideoFrameInputAvailableCallback& callback, | 113 const VideoFrameInputAvailableCallback& callback, |
| 114 const ErrorCallback& error_callback, | 114 const ErrorCallback& error_callback, |
| 115 const media::cast::CreateVideoEncodeAcceleratorCallback& create_vea_cb, | 115 const media::cast::CreateVideoEncodeAcceleratorCallback& create_vea_cb, |
| 116 const media::cast::CreateVideoEncodeMemoryCallback& | 116 const media::cast::CreateVideoEncodeMemoryCallback& |
| 117 create_video_encode_mem_cb); | 117 create_video_encode_mem_cb); |
| 118 | 118 |
| 119 // Start remoting session for one stream. After calling this method, a |
| 120 // remoting sender will be ready for sending the demuxed stream. StartUDP() |
| 121 // must be called before calling this method. |
| 122 void StartRemotingStream(int32_t stream_id, |
| 123 const media::cast::FrameSenderConfig& config, |
| 124 const ErrorCallback& error_callback); |
| 125 |
| 119 void ToggleLogging(bool is_audio, bool enable); | 126 void ToggleLogging(bool is_audio, bool enable); |
| 120 void GetEventLogsAndReset(bool is_audio, | 127 void GetEventLogsAndReset(bool is_audio, |
| 121 const std::string& extra_data, const EventLogsCallback& callback); | 128 const std::string& extra_data, const EventLogsCallback& callback); |
| 122 void GetStatsAndReset(bool is_audio, const StatsCallback& callback); | 129 void GetStatsAndReset(bool is_audio, const StatsCallback& callback); |
| 123 | 130 |
| 124 protected: | 131 protected: |
| 125 // Called to report back operational status changes. The first time this is | 132 // Called to report back operational status changes. The first time this is |
| 126 // called with STATUS_INITIALIZED will result in running the "frame input | 133 // called with STATUS_INITIALIZED will result in running the "frame input |
| 127 // available" callback, to indicate the session is ready to accept incoming | 134 // available" callback, to indicate the session is ready to accept incoming |
| 128 // audio/video frames. If this is called with an error that has halted the | 135 // audio/video frames. If this is called with an error that has halted the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 143 VideoFrameInputAvailableCallback video_frame_input_available_callback_; | 150 VideoFrameInputAvailableCallback video_frame_input_available_callback_; |
| 144 | 151 |
| 145 std::unique_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_; | 152 std::unique_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_; |
| 146 | 153 |
| 147 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; | 154 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; |
| 148 | 155 |
| 149 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); | 156 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); |
| 150 }; | 157 }; |
| 151 | 158 |
| 152 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 159 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| OLD | NEW |