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

Side by Side Diff: webrtc/api/webrtcsession.h

Issue 1975453002: Add PeerConnection IsClosed check. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Change the webrtcsession constructor. Created 4 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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 enum Error { 134 enum Error {
135 ERROR_NONE = 0, // no error 135 ERROR_NONE = 0, // no error
136 ERROR_CONTENT = 1, // channel errors in SetLocalContent/SetRemoteContent 136 ERROR_CONTENT = 1, // channel errors in SetLocalContent/SetRemoteContent
137 ERROR_TRANSPORT = 2, // transport error of some kind 137 ERROR_TRANSPORT = 2, // transport error of some kind
138 }; 138 };
139 139
140 WebRtcSession(webrtc::MediaControllerInterface* media_controller, 140 WebRtcSession(webrtc::MediaControllerInterface* media_controller,
141 rtc::Thread* network_thread, 141 rtc::Thread* network_thread,
142 rtc::Thread* worker_thread, 142 rtc::Thread* worker_thread,
143 rtc::Thread* signaling_thread, 143 rtc::Thread* signaling_thread,
144 cricket::PortAllocator* port_allocator); 144 cricket::PortAllocator* port_allocator,
145 cricket::TransportController* transport_controller);
145 virtual ~WebRtcSession(); 146 virtual ~WebRtcSession();
146 147
147 // These are const to allow them to be called from const methods. 148 // These are const to allow them to be called from const methods.
148 rtc::Thread* worker_thread() const { return worker_thread_; } 149 rtc::Thread* worker_thread() const { return worker_thread_; }
149 rtc::Thread* signaling_thread() const { return signaling_thread_; } 150 rtc::Thread* signaling_thread() const { return signaling_thread_; }
150 151
151 // The ID of this session. 152 // The ID of this session.
152 const std::string& id() const { return sid_; } 153 const std::string& id() const { return sid_; }
153 154
154 bool Initialize( 155 bool Initialize(
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; 531 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_;
531 532
532 bool received_first_video_packet_ = false; 533 bool received_first_video_packet_ = false;
533 bool received_first_audio_packet_ = false; 534 bool received_first_audio_packet_ = false;
534 535
535 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); 536 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession);
536 }; 537 };
537 } // namespace webrtc 538 } // namespace webrtc
538 539
539 #endif // WEBRTC_API_WEBRTCSESSION_H_ 540 #endif // WEBRTC_API_WEBRTCSESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698