Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: webrtc/pc/rtpreceiver.h

Issue 2809613002: Revert of Implemented the GetSources() in native code. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/pc/peerconnection_integrationtest.cc ('k') | webrtc/pc/rtpreceiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // RtpReceiverInternal implementation. 81 // RtpReceiverInternal implementation.
82 void Stop() override; 82 void Stop() override;
83 uint32_t ssrc() const override { return ssrc_; } 83 uint32_t ssrc() const override { return ssrc_; }
84 84
85 void SetObserver(RtpReceiverObserverInterface* observer) override; 85 void SetObserver(RtpReceiverObserverInterface* observer) override;
86 86
87 // Does not take ownership. 87 // Does not take ownership.
88 // Should call SetChannel(nullptr) before |channel| is destroyed. 88 // Should call SetChannel(nullptr) before |channel| is destroyed.
89 void SetChannel(cricket::VoiceChannel* channel); 89 void SetChannel(cricket::VoiceChannel* channel);
90 90
91 std::vector<RtpSource> GetSources() const override;
92
93 private: 91 private:
94 void Reconfigure(); 92 void Reconfigure();
95 void OnFirstPacketReceived(cricket::BaseChannel* channel); 93 void OnFirstPacketReceived(cricket::BaseChannel* channel);
96 94
97 const std::string id_; 95 const std::string id_;
98 const uint32_t ssrc_; 96 const uint32_t ssrc_;
99 cricket::VoiceChannel* channel_; 97 cricket::VoiceChannel* channel_;
100 const rtc::scoped_refptr<AudioTrackInterface> track_; 98 const rtc::scoped_refptr<AudioTrackInterface> track_;
101 bool cached_track_enabled_; 99 bool cached_track_enabled_;
102 double cached_volume_ = 1; 100 double cached_volume_ = 1;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 rtc::scoped_refptr<VideoTrackSource> source_; 158 rtc::scoped_refptr<VideoTrackSource> source_;
161 rtc::scoped_refptr<VideoTrackInterface> track_; 159 rtc::scoped_refptr<VideoTrackInterface> track_;
162 bool stopped_ = false; 160 bool stopped_ = false;
163 RtpReceiverObserverInterface* observer_ = nullptr; 161 RtpReceiverObserverInterface* observer_ = nullptr;
164 bool received_first_packet_ = false; 162 bool received_first_packet_ = false;
165 }; 163 };
166 164
167 } // namespace webrtc 165 } // namespace webrtc
168 166
169 #endif // WEBRTC_PC_RTPRECEIVER_H_ 167 #endif // WEBRTC_PC_RTPRECEIVER_H_
OLDNEW
« no previous file with comments | « webrtc/pc/peerconnection_integrationtest.cc ('k') | webrtc/pc/rtpreceiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698