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

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

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Fix the issue on the trybots. 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
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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; } 969 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; }
966 970
967 private: 971 private:
968 std::vector<FakeDataMediaChannel*> channels_; 972 std::vector<FakeDataMediaChannel*> channels_;
969 std::vector<DataCodec> data_codecs_; 973 std::vector<DataCodec> data_codecs_;
970 }; 974 };
971 975
972 } // namespace cricket 976 } // namespace cricket
973 977
974 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_ 978 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698