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

Side by Side Diff: webrtc/media/base/fakemediaengine.h

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Rebase. Created 3 years, 6 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/media/base/codec.cc ('k') | webrtc/media/base/h264_profile_level_id.h » ('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 (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 virtual bool GetStats(VoiceMediaInfo* info) { return false; } 419 virtual bool GetStats(VoiceMediaInfo* info) { return false; }
420 420
421 virtual void SetRawAudioSink( 421 virtual void SetRawAudioSink(
422 uint32_t ssrc, 422 uint32_t ssrc,
423 std::unique_ptr<webrtc::AudioSinkInterface> sink) { 423 std::unique_ptr<webrtc::AudioSinkInterface> sink) {
424 sink_ = std::move(sink); 424 sink_ = std::move(sink);
425 } 425 }
426 426
427 virtual std::vector<webrtc::RtpSource> GetSources(uint32_t ssrc) const {
428 return std::vector<webrtc::RtpSource>();
429 }
430
427 private: 431 private:
428 class VoiceChannelAudioSink : public AudioSource::Sink { 432 class VoiceChannelAudioSink : public AudioSource::Sink {
429 public: 433 public:
430 explicit VoiceChannelAudioSink(AudioSource* source) : source_(source) { 434 explicit VoiceChannelAudioSink(AudioSource* source) : source_(source) {
431 source_->SetSink(this); 435 source_->SetSink(this);
432 } 436 }
433 virtual ~VoiceChannelAudioSink() { 437 virtual ~VoiceChannelAudioSink() {
434 if (source_) { 438 if (source_) {
435 source_->SetSink(nullptr); 439 source_->SetSink(nullptr);
436 } 440 }
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; } 971 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; }
968 972
969 private: 973 private:
970 std::vector<FakeDataMediaChannel*> channels_; 974 std::vector<FakeDataMediaChannel*> channels_;
971 std::vector<DataCodec> data_codecs_; 975 std::vector<DataCodec> data_codecs_;
972 }; 976 };
973 977
974 } // namespace cricket 978 } // namespace cricket
975 979
976 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_ 980 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/codec.cc ('k') | webrtc/media/base/h264_profile_level_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698