| OLD | NEW |
| 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_RTC_PEER_CONNECTION_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 void ReportFirstSessionDescriptions( | 231 void ReportFirstSessionDescriptions( |
| 232 const FirstSessionDescription& local, | 232 const FirstSessionDescription& local, |
| 233 const FirstSessionDescription& remote); | 233 const FirstSessionDescription& remote); |
| 234 | 234 |
| 235 scoped_refptr<base::SingleThreadTaskRunner> signaling_thread() const; | 235 scoped_refptr<base::SingleThreadTaskRunner> signaling_thread() const; |
| 236 | 236 |
| 237 void RunSynchronousClosureOnSignalingThread(const base::Closure& closure, | 237 void RunSynchronousClosureOnSignalingThread(const base::Closure& closure, |
| 238 const char* trace_event_name); | 238 const char* trace_event_name); |
| 239 | 239 |
| 240 // If a track is not found with the specified id, the returned track's | |
| 241 // |isNull| will return true. | |
| 242 blink::WebMediaStreamTrack GetRemoteAudioTrack( | |
| 243 const std::string& track_id) const; | |
| 244 blink::WebMediaStreamTrack GetRemoteVideoTrack( | |
| 245 const std::string& track_id) const; | |
| 246 | |
| 247 base::ThreadChecker thread_checker_; | 240 base::ThreadChecker thread_checker_; |
| 248 | 241 |
| 249 // |client_| is a weak pointer to the blink object (blink::RTCPeerConnection) | 242 // |client_| is a weak pointer to the blink object (blink::RTCPeerConnection) |
| 250 // that owns this object. | 243 // that owns this object. |
| 251 // It is valid for the lifetime of this object. | 244 // It is valid for the lifetime of this object. |
| 252 blink::WebRTCPeerConnectionHandlerClient* const client_; | 245 blink::WebRTCPeerConnectionHandlerClient* const client_; |
| 253 // True if this PeerConnection has been closed. | 246 // True if this PeerConnection has been closed. |
| 254 // After the PeerConnection has been closed, this object may no longer | 247 // After the PeerConnection has been closed, this object may no longer |
| 255 // forward callbacks to blink. | 248 // forward callbacks to blink. |
| 256 bool is_closed_; | 249 bool is_closed_; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; | 309 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; |
| 317 | 310 |
| 318 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; | 311 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; |
| 319 | 312 |
| 320 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); | 313 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); |
| 321 }; | 314 }; |
| 322 | 315 |
| 323 } // namespace content | 316 } // namespace content |
| 324 | 317 |
| 325 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 318 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| OLD | NEW |