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

Side by Side Diff: content/renderer/media/mock_peer_connection_impl.h

Issue 2759953003: Interface RTCRtpReceiver and RTCPeerConnection.getReceivers() added. (Closed)
Patch Set: DISALLOW_COPY_AND_ASSIGN 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 | « content/renderer/BUILD.gn ('k') | content/renderer/media/mock_peer_connection_impl.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 std::vector<webrtc::MediaStreamInterface*> streams) override { 39 std::vector<webrtc::MediaStreamInterface*> streams) override {
40 NOTIMPLEMENTED(); 40 NOTIMPLEMENTED();
41 return nullptr; 41 return nullptr;
42 } 42 }
43 bool RemoveTrack(webrtc::RtpSenderInterface* sender) override { 43 bool RemoveTrack(webrtc::RtpSenderInterface* sender) override {
44 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
45 return false; 45 return false;
46 } 46 }
47 rtc::scoped_refptr<webrtc::DtmfSenderInterface> 47 rtc::scoped_refptr<webrtc::DtmfSenderInterface>
48 CreateDtmfSender(webrtc::AudioTrackInterface* track) override; 48 CreateDtmfSender(webrtc::AudioTrackInterface* track) override;
49 std::vector<rtc::scoped_refptr<webrtc::RtpReceiverInterface>> GetReceivers()
50 const override;
49 rtc::scoped_refptr<webrtc::DataChannelInterface> 51 rtc::scoped_refptr<webrtc::DataChannelInterface>
50 CreateDataChannel(const std::string& label, 52 CreateDataChannel(const std::string& label,
51 const webrtc::DataChannelInit* config) override; 53 const webrtc::DataChannelInit* config) override;
52 bool GetStats(webrtc::StatsObserver* observer, 54 bool GetStats(webrtc::StatsObserver* observer,
53 webrtc::MediaStreamTrackInterface* track, 55 webrtc::MediaStreamTrackInterface* track,
54 StatsOutputLevel level) override; 56 StatsOutputLevel level) override;
55 void GetStats(webrtc::RTCStatsCollectorCallback* callback) override; 57 void GetStats(webrtc::RTCStatsCollectorCallback* callback) override;
56 58
57 // Call this function to make sure next call to legacy GetStats fail. 59 // Call this function to make sure next call to legacy GetStats fail.
58 void SetGetStatsResult(bool result) { getstats_result_ = result; } 60 void SetGetStatsResult(bool result) { getstats_result_ = result; }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 webrtc::RTCErrorType setconfiguration_error_type_ = 155 webrtc::RTCErrorType setconfiguration_error_type_ =
154 webrtc::RTCErrorType::NONE; 156 webrtc::RTCErrorType::NONE;
155 rtc::scoped_refptr<webrtc::RTCStatsReport> stats_report_; 157 rtc::scoped_refptr<webrtc::RTCStatsReport> stats_report_;
156 158
157 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); 159 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl);
158 }; 160 };
159 161
160 } // namespace content 162 } // namespace content
161 163
162 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 164 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/media/mock_peer_connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698