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

Side by Side Diff: pc/rtpreceiver.cc

Issue 3007973002: Mark template class RefCountedObject as final.
Patch Set: Rebased. Created 3 years, 3 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
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 received_first_packet_ = true; 140 received_first_packet_ = true;
141 } 141 }
142 142
143 VideoRtpReceiver::VideoRtpReceiver(const std::string& track_id, 143 VideoRtpReceiver::VideoRtpReceiver(const std::string& track_id,
144 rtc::Thread* worker_thread, 144 rtc::Thread* worker_thread,
145 uint32_t ssrc, 145 uint32_t ssrc,
146 cricket::VideoChannel* channel) 146 cricket::VideoChannel* channel)
147 : id_(track_id), 147 : id_(track_id),
148 ssrc_(ssrc), 148 ssrc_(ssrc),
149 channel_(channel), 149 channel_(channel),
150 source_(new RefCountedObject<VideoTrackSource>(&broadcaster_, 150 source_(new rtc::RefCountedObject<VideoTrackSource>(&broadcaster_,
151 true /* remote */)), 151 true /* remote */)),
152 track_(VideoTrackProxy::Create( 152 track_(VideoTrackProxy::Create(
153 rtc::Thread::Current(), 153 rtc::Thread::Current(),
154 worker_thread, 154 worker_thread,
155 VideoTrack::Create( 155 VideoTrack::Create(
156 track_id, 156 track_id,
157 VideoTrackSourceProxy::Create(rtc::Thread::Current(), 157 VideoTrackSourceProxy::Create(rtc::Thread::Current(),
158 worker_thread, 158 worker_thread,
159 source_), 159 source_),
160 worker_thread))) { 160 worker_thread))) {
161 source_->SetState(MediaSourceInterface::kLive); 161 source_->SetState(MediaSourceInterface::kLive);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 236
237 void VideoRtpReceiver::OnFirstPacketReceived(cricket::BaseChannel* channel) { 237 void VideoRtpReceiver::OnFirstPacketReceived(cricket::BaseChannel* channel) {
238 if (observer_) { 238 if (observer_) {
239 observer_->OnFirstPacketReceived(media_type()); 239 observer_->OnFirstPacketReceived(media_type());
240 } 240 }
241 received_first_packet_ = true; 241 received_first_packet_ = true;
242 } 242 }
243 243
244 } // namespace webrtc 244 } // namespace webrtc
OLDNEW
« no previous file with comments | « pc/rtpreceiver.h ('k') | pc/rtpsender.h » ('j') | pc/rtpsenderreceiver_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698