OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "content/renderer/media/peer_connection_tracker.h" | 4 #include "content/renderer/media/peer_connection_tracker.h" |
5 | 5 |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "content/common/media/peer_connection_tracker_messages.h" | 7 #include "content/common/media/peer_connection_tracker_messages.h" |
8 #include "content/renderer/media/rtc_media_constraints.h" | 8 #include "content/renderer/media/rtc_media_constraints.h" |
9 #include "content/renderer/media/rtc_peer_connection_handler.h" | 9 #include "content/renderer/media/rtc_peer_connection_handler.h" |
10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 it->first->GetStats( | 294 it->first->GetStats( |
295 observer, | 295 observer, |
296 NULL, | 296 NULL, |
297 webrtc::PeerConnectionInterface::kStatsOutputLevelDebug); | 297 webrtc::PeerConnectionInterface::kStatsOutputLevelDebug); |
298 } | 298 } |
299 } | 299 } |
300 | 300 |
301 void PeerConnectionTracker::OnSuspend() { | 301 void PeerConnectionTracker::OnSuspend() { |
302 for (PeerConnectionIdMap::iterator it = peer_connection_id_map_.begin(); | 302 for (PeerConnectionIdMap::iterator it = peer_connection_id_map_.begin(); |
303 it != peer_connection_id_map_.end(); ++it) { | 303 it != peer_connection_id_map_.end(); ++it) { |
304 it->first->CloseClientPeerConnection(); | 304 it->first->stop(); |
305 } | 305 } |
306 } | 306 } |
307 | 307 |
308 void PeerConnectionTracker::RegisterPeerConnection( | 308 void PeerConnectionTracker::RegisterPeerConnection( |
309 RTCPeerConnectionHandler* pc_handler, | 309 RTCPeerConnectionHandler* pc_handler, |
310 const webrtc::PeerConnectionInterface::RTCConfiguration& config, | 310 const webrtc::PeerConnectionInterface::RTCConfiguration& config, |
311 const RTCMediaConstraints& constraints, | 311 const RTCMediaConstraints& constraints, |
312 const blink::WebFrame* frame) { | 312 const blink::WebFrame* frame) { |
313 DVLOG(1) << "PeerConnectionTracker::RegisterPeerConnection()"; | 313 DVLOG(1) << "PeerConnectionTracker::RegisterPeerConnection()"; |
314 PeerConnectionInfo info; | 314 PeerConnectionInfo info; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 const std::string& value) { | 526 const std::string& value) { |
527 if (peer_connection_id_map_.find(pc_handler) == peer_connection_id_map_.end()) | 527 if (peer_connection_id_map_.find(pc_handler) == peer_connection_id_map_.end()) |
528 return; | 528 return; |
529 | 529 |
530 RenderThreadImpl::current()->Send( | 530 RenderThreadImpl::current()->Send( |
531 new PeerConnectionTrackerHost_UpdatePeerConnection( | 531 new PeerConnectionTrackerHost_UpdatePeerConnection( |
532 peer_connection_id_map_[pc_handler], type, value)); | 532 peer_connection_id_map_[pc_handler], type, value)); |
533 } | 533 } |
534 | 534 |
535 } // namespace content | 535 } // namespace content |
OLD | NEW |