Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 void set_stream_id(const std::string& stream_id) override { | 93 void set_stream_id(const std::string& stream_id) override { |
| 94 stream_id_ = stream_id; | 94 stream_id_ = stream_id; |
| 95 } | 95 } |
| 96 std::string stream_id() const override { return stream_id_; } | 96 std::string stream_id() const override { return stream_id_; } |
| 97 | 97 |
| 98 void Stop() override; | 98 void Stop() override; |
| 99 | 99 |
| 100 RtpParameters GetParameters() const; | 100 RtpParameters GetParameters() const; |
| 101 bool SetParameters(const RtpParameters& parameters); | 101 bool SetParameters(const RtpParameters& parameters); |
| 102 | 102 |
| 103 StatsReport::Id stats_id() override { | |
| 104 // Effectively nullptr. | |
| 105 return StatsReport::Id(); | |
| 106 } | |
| 107 void ReportStats(StatsReport* report) override{}; | |
|
perkj_webrtc
2016/03/29 11:03:39
GetStats ?
tommi
2016/03/30 11:46:44
void ReportStats(StatsReport* report) override {}
nisse-webrtc
2016/03/30 12:09:31
Fixed.
For some reason, git cl format wants to re
| |
| 108 | |
| 103 private: | 109 private: |
| 104 bool can_send_track() const { return track_ && ssrc_; } | 110 bool can_send_track() const { return track_ && ssrc_; } |
| 105 // Helper function to construct options for | 111 // Helper function to construct options for |
| 106 // AudioProviderInterface::SetAudioSend. | 112 // AudioProviderInterface::SetAudioSend. |
| 107 void SetAudioSend(); | 113 void SetAudioSend(); |
| 108 | 114 |
| 109 std::string id_; | 115 std::string id_; |
| 110 std::string stream_id_; | 116 std::string stream_id_; |
| 111 AudioProviderInterface* provider_; | 117 AudioProviderInterface* provider_; |
| 112 StatsCollector* stats_; | 118 StatsCollector* stats_; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 void set_stream_id(const std::string& stream_id) override { | 163 void set_stream_id(const std::string& stream_id) override { |
| 158 stream_id_ = stream_id; | 164 stream_id_ = stream_id; |
| 159 } | 165 } |
| 160 std::string stream_id() const override { return stream_id_; } | 166 std::string stream_id() const override { return stream_id_; } |
| 161 | 167 |
| 162 void Stop() override; | 168 void Stop() override; |
| 163 | 169 |
| 164 RtpParameters GetParameters() const; | 170 RtpParameters GetParameters() const; |
| 165 bool SetParameters(const RtpParameters& parameters); | 171 bool SetParameters(const RtpParameters& parameters); |
| 166 | 172 |
| 173 StatsReport::Id stats_id() override; | |
| 174 void ReportStats(StatsReport* report) override; | |
| 175 | |
| 167 private: | 176 private: |
| 168 bool can_send_track() const { return track_ && ssrc_; } | 177 bool can_send_track() const { return track_ && ssrc_; } |
| 169 // Helper function to construct options for | 178 // Helper function to construct options for |
| 170 // VideoProviderInterface::SetVideoSend. | 179 // VideoProviderInterface::SetVideoSend. |
| 171 void SetVideoSend(); | 180 void SetVideoSend(); |
| 172 | 181 |
| 173 std::string id_; | 182 std::string id_; |
| 174 std::string stream_id_; | 183 std::string stream_id_; |
| 175 VideoProviderInterface* provider_; | 184 VideoProviderInterface* provider_; |
| 176 rtc::scoped_refptr<VideoTrackInterface> track_; | 185 rtc::scoped_refptr<VideoTrackInterface> track_; |
| 177 uint32_t ssrc_ = 0; | 186 uint32_t ssrc_ = 0; |
| 178 bool cached_track_enabled_ = false; | 187 bool cached_track_enabled_ = false; |
| 179 bool stopped_ = false; | 188 bool stopped_ = false; |
| 180 }; | 189 }; |
| 181 | 190 |
| 182 } // namespace webrtc | 191 } // namespace webrtc |
| 183 | 192 |
| 184 #endif // WEBRTC_API_RTPSENDER_H_ | 193 #endif // WEBRTC_API_RTPSENDER_H_ |
| OLD | NEW |