| 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/browser/renderer_host/media/peer_connection_tracker_host.h" | 4 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 5 | 5 |
| 6 #include "content/browser/media/webrtc_internals.h" | 6 #include "content/browser/media/webrtc_internals.h" |
| 7 #include "content/common/media/peer_connection_tracker_messages.h" | 7 #include "content/common/media/peer_connection_tracker_messages.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 PeerConnectionTrackerHost::~PeerConnectionTrackerHost() { | 38 PeerConnectionTrackerHost::~PeerConnectionTrackerHost() { |
| 39 } | 39 } |
| 40 | 40 |
| 41 void PeerConnectionTrackerHost::OnAddPeerConnection( | 41 void PeerConnectionTrackerHost::OnAddPeerConnection( |
| 42 const PeerConnectionInfo& info) { | 42 const PeerConnectionInfo& info) { |
| 43 WebRTCInternals::GetInstance()->OnAddPeerConnection( | 43 WebRTCInternals::GetInstance()->OnAddPeerConnection( |
| 44 render_process_id_, | 44 render_process_id_, |
| 45 peer_pid(), | 45 peer_pid(), |
| 46 info.lid, | 46 info.lid, |
| 47 info.url, | 47 info.url, |
| 48 info.servers, | 48 info.rtc_configuration, |
| 49 info.constraints); | 49 info.constraints); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void PeerConnectionTrackerHost::OnRemovePeerConnection(int lid) { | 52 void PeerConnectionTrackerHost::OnRemovePeerConnection(int lid) { |
| 53 WebRTCInternals::GetInstance()->OnRemovePeerConnection(peer_pid(), lid); | 53 WebRTCInternals::GetInstance()->OnRemovePeerConnection(peer_pid(), lid); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void PeerConnectionTrackerHost::OnUpdatePeerConnection( | 56 void PeerConnectionTrackerHost::OnUpdatePeerConnection( |
| 57 int lid, const std::string& type, const std::string& value) { | 57 int lid, const std::string& type, const std::string& value) { |
| 58 WebRTCInternals::GetInstance()->OnUpdatePeerConnection( | 58 WebRTCInternals::GetInstance()->OnUpdatePeerConnection( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 76 WebRTCInternals::GetInstance()->OnGetUserMedia(render_process_id_, | 76 WebRTCInternals::GetInstance()->OnGetUserMedia(render_process_id_, |
| 77 peer_pid(), | 77 peer_pid(), |
| 78 origin, | 78 origin, |
| 79 audio, | 79 audio, |
| 80 video, | 80 video, |
| 81 audio_constraints, | 81 audio_constraints, |
| 82 video_constraints); | 82 video_constraints); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace content | 85 } // namespace content |
| OLD | NEW |