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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.h

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Removed changes in call dir and leave that in a separate CL. Created 4 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/media/base/mediachannel.h ('k') | webrtc/media/engine/webrtcvideoengine2.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 (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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
11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <set> 16 #include <set>
17 #include <string> 17 #include <string>
18 #include <vector> 18 #include <vector>
19 19
20 #include "webrtc/base/asyncinvoker.h" 20 #include "webrtc/base/asyncinvoker.h"
21 #include "webrtc/base/criticalsection.h" 21 #include "webrtc/base/criticalsection.h"
22 #include "webrtc/base/networkroute.h"
22 #include "webrtc/base/thread_annotations.h" 23 #include "webrtc/base/thread_annotations.h"
23 #include "webrtc/base/thread_checker.h" 24 #include "webrtc/base/thread_checker.h"
24 #include "webrtc/media/base/videosinkinterface.h" 25 #include "webrtc/media/base/videosinkinterface.h"
25 #include "webrtc/media/base/videosourceinterface.h" 26 #include "webrtc/media/base/videosourceinterface.h"
26 #include "webrtc/call.h" 27 #include "webrtc/call.h"
27 #include "webrtc/media/base/mediaengine.h" 28 #include "webrtc/media/base/mediaengine.h"
28 #include "webrtc/media/engine/webrtcvideochannelfactory.h" 29 #include "webrtc/media/engine/webrtcvideochannelfactory.h"
29 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" 30 #include "webrtc/media/engine/webrtcvideodecoderfactory.h"
30 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" 31 #include "webrtc/media/engine/webrtcvideoencoderfactory.h"
31 #include "webrtc/transport.h" 32 #include "webrtc/transport.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 bool SetSink(uint32_t ssrc, 161 bool SetSink(uint32_t ssrc,
161 rtc::VideoSinkInterface<VideoFrame>* sink) override; 162 rtc::VideoSinkInterface<VideoFrame>* sink) override;
162 bool GetStats(VideoMediaInfo* info) override; 163 bool GetStats(VideoMediaInfo* info) override;
163 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) override; 164 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) override;
164 165
165 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, 166 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet,
166 const rtc::PacketTime& packet_time) override; 167 const rtc::PacketTime& packet_time) override;
167 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, 168 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
168 const rtc::PacketTime& packet_time) override; 169 const rtc::PacketTime& packet_time) override;
169 void OnReadyToSend(bool ready) override; 170 void OnReadyToSend(bool ready) override;
171 void OnNetworkRouteChanged(const std::string& transport_name,
172 const NetworkRoute& network_route) override;
170 void SetInterface(NetworkInterface* iface) override; 173 void SetInterface(NetworkInterface* iface) override;
171 174
172 // Implemented for VideoMediaChannelTest. 175 // Implemented for VideoMediaChannelTest.
173 bool sending() const { return sending_; } 176 bool sending() const { return sending_; }
174 177
175 private: 178 private:
176 class WebRtcVideoReceiveStream; 179 class WebRtcVideoReceiveStream;
177 struct VideoCodecSettings { 180 struct VideoCodecSettings {
178 VideoCodecSettings(); 181 VideoCodecSettings();
179 182
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // TODO(deadbeef): Don't duplicate information between 526 // TODO(deadbeef): Don't duplicate information between
524 // send_params/recv_params, rtp_extensions, options, etc. 527 // send_params/recv_params, rtp_extensions, options, etc.
525 VideoSendParameters send_params_; 528 VideoSendParameters send_params_;
526 VideoOptions default_send_options_; 529 VideoOptions default_send_options_;
527 VideoRecvParameters recv_params_; 530 VideoRecvParameters recv_params_;
528 }; 531 };
529 532
530 } // namespace cricket 533 } // namespace cricket
531 534
532 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 535 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698