| 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 "base/process_util.h" | |
| 7 #include "content/browser/media/webrtc_internals.h" | 6 #include "content/browser/media/webrtc_internals.h" |
| 8 #include "content/common/media/peer_connection_tracker_messages.h" | 7 #include "content/common/media/peer_connection_tracker_messages.h" |
| 9 | 8 |
| 10 namespace content { | 9 namespace content { |
| 11 | 10 |
| 12 PeerConnectionTrackerHost::PeerConnectionTrackerHost(int render_process_id) | 11 PeerConnectionTrackerHost::PeerConnectionTrackerHost(int render_process_id) |
| 13 : render_process_id_(render_process_id) {} | 12 : render_process_id_(render_process_id) {} |
| 14 | 13 |
| 15 bool PeerConnectionTrackerHost::OnMessageReceived(const IPC::Message& message, | 14 bool PeerConnectionTrackerHost::OnMessageReceived(const IPC::Message& message, |
| 16 bool* message_was_ok) { | 15 bool* message_was_ok) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 type, | 60 type, |
| 62 value); | 61 value); |
| 63 } | 62 } |
| 64 | 63 |
| 65 void PeerConnectionTrackerHost::OnAddStats(int lid, | 64 void PeerConnectionTrackerHost::OnAddStats(int lid, |
| 66 const base::ListValue& value) { | 65 const base::ListValue& value) { |
| 67 WebRTCInternals::GetInstance()->OnAddStats(peer_pid(), lid, value); | 66 WebRTCInternals::GetInstance()->OnAddStats(peer_pid(), lid, value); |
| 68 } | 67 } |
| 69 | 68 |
| 70 } // namespace content | 69 } // namespace content |
| OLD | NEW |