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

Side by Side Diff: webrtc/pc/channel.h

Issue 1972493002: Do not create a temporary transport channel when using max-bundle (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 : public rtc::MessageHandler, public sigslot::has_slots<>, 65 : public rtc::MessageHandler, public sigslot::has_slots<>,
66 public MediaChannel::NetworkInterface, 66 public MediaChannel::NetworkInterface,
67 public ConnectionStatsGetter { 67 public ConnectionStatsGetter {
68 public: 68 public:
69 BaseChannel(rtc::Thread* thread, 69 BaseChannel(rtc::Thread* thread,
70 MediaChannel* channel, 70 MediaChannel* channel,
71 TransportController* transport_controller, 71 TransportController* transport_controller,
72 const std::string& content_name, 72 const std::string& content_name,
73 bool rtcp); 73 bool rtcp);
74 virtual ~BaseChannel(); 74 virtual ~BaseChannel();
75 bool Init(); 75 bool Init(const std::string& transport_name);
76 // Deinit may be called multiple times and is simply ignored if it's alreay 76 // Deinit may be called multiple times and is simply ignored if it's alreay
77 // done. 77 // done.
78 void Deinit(); 78 void Deinit();
79 79
80 rtc::Thread* worker_thread() const { return worker_thread_; } 80 rtc::Thread* worker_thread() const { return worker_thread_; }
81 const std::string& content_name() const { return content_name_; } 81 const std::string& content_name() const { return content_name_; }
82 const std::string& transport_name() const { return transport_name_; } 82 const std::string& transport_name() const { return transport_name_; }
83 TransportChannel* transport_channel() const { 83 TransportChannel* transport_channel() const {
84 return transport_channel_; 84 return transport_channel_;
85 } 85 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // and input/output level monitoring. 328 // and input/output level monitoring.
329 class VoiceChannel : public BaseChannel { 329 class VoiceChannel : public BaseChannel {
330 public: 330 public:
331 VoiceChannel(rtc::Thread* thread, 331 VoiceChannel(rtc::Thread* thread,
332 MediaEngineInterface* media_engine, 332 MediaEngineInterface* media_engine,
333 VoiceMediaChannel* channel, 333 VoiceMediaChannel* channel,
334 TransportController* transport_controller, 334 TransportController* transport_controller,
335 const std::string& content_name, 335 const std::string& content_name,
336 bool rtcp); 336 bool rtcp);
337 ~VoiceChannel(); 337 ~VoiceChannel();
338 bool Init(); 338 bool Init(const std::string& transport_name);
339 339
340 // Configure sending media on the stream with SSRC |ssrc| 340 // Configure sending media on the stream with SSRC |ssrc|
341 // If there is only one sending stream SSRC 0 can be used. 341 // If there is only one sending stream SSRC 0 can be used.
342 bool SetAudioSend(uint32_t ssrc, 342 bool SetAudioSend(uint32_t ssrc,
343 bool enable, 343 bool enable,
344 const AudioOptions* options, 344 const AudioOptions* options,
345 AudioSource* source); 345 AudioSource* source);
346 346
347 // downcasts a MediaChannel 347 // downcasts a MediaChannel
348 virtual VoiceMediaChannel* media_channel() const { 348 virtual VoiceMediaChannel* media_channel() const {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 // VideoChannel is a specialization for video. 435 // VideoChannel is a specialization for video.
436 class VideoChannel : public BaseChannel { 436 class VideoChannel : public BaseChannel {
437 public: 437 public:
438 VideoChannel(rtc::Thread* thread, 438 VideoChannel(rtc::Thread* thread,
439 VideoMediaChannel* channel, 439 VideoMediaChannel* channel,
440 TransportController* transport_controller, 440 TransportController* transport_controller,
441 const std::string& content_name, 441 const std::string& content_name,
442 bool rtcp); 442 bool rtcp);
443 ~VideoChannel(); 443 ~VideoChannel();
444 bool Init(); 444 bool Init(const std::string& transport_name);
445 445
446 // downcasts a MediaChannel 446 // downcasts a MediaChannel
447 virtual VideoMediaChannel* media_channel() const { 447 virtual VideoMediaChannel* media_channel() const {
448 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); 448 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel());
449 } 449 }
450 450
451 bool SetSink(uint32_t ssrc, rtc::VideoSinkInterface<VideoFrame>* sink); 451 bool SetSink(uint32_t ssrc, rtc::VideoSinkInterface<VideoFrame>* sink);
452 // Register a source. The |ssrc| must correspond to a registered 452 // Register a source. The |ssrc| must correspond to a registered
453 // send stream. 453 // send stream.
454 void SetSource(uint32_t ssrc, 454 void SetSource(uint32_t ssrc,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 500
501 // DataChannel is a specialization for data. 501 // DataChannel is a specialization for data.
502 class DataChannel : public BaseChannel { 502 class DataChannel : public BaseChannel {
503 public: 503 public:
504 DataChannel(rtc::Thread* thread, 504 DataChannel(rtc::Thread* thread,
505 DataMediaChannel* media_channel, 505 DataMediaChannel* media_channel,
506 TransportController* transport_controller, 506 TransportController* transport_controller,
507 const std::string& content_name, 507 const std::string& content_name,
508 bool rtcp); 508 bool rtcp);
509 ~DataChannel(); 509 ~DataChannel();
510 bool Init(); 510 bool Init(const std::string& transport_name);
511 511
512 virtual bool SendData(const SendDataParams& params, 512 virtual bool SendData(const SendDataParams& params,
513 const rtc::CopyOnWriteBuffer& payload, 513 const rtc::CopyOnWriteBuffer& payload,
514 SendDataResult* result); 514 SendDataResult* result);
515 515
516 void StartMediaMonitor(int cms); 516 void StartMediaMonitor(int cms);
517 void StopMediaMonitor(); 517 void StopMediaMonitor();
518 518
519 // Should be called on the signaling thread only. 519 // Should be called on the signaling thread only.
520 bool ready_to_send_data() const { 520 bool ready_to_send_data() const {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 // SetSendParameters. 614 // SetSendParameters.
615 DataSendParameters last_send_params_; 615 DataSendParameters last_send_params_;
616 // Last DataRecvParameters sent down to the media_channel() via 616 // Last DataRecvParameters sent down to the media_channel() via
617 // SetRecvParameters. 617 // SetRecvParameters.
618 DataRecvParameters last_recv_params_; 618 DataRecvParameters last_recv_params_;
619 }; 619 };
620 620
621 } // namespace cricket 621 } // namespace cricket
622 622
623 #endif // WEBRTC_PC_CHANNEL_H_ 623 #endif // WEBRTC_PC_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698