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

Side by Side Diff: content/renderer/media/peer_connection_tracker.cc

Issue 435823002: Revert "Update webrtc&libjingle 6774:6799." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 // 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 IPC_MESSAGE_HANDLER(PeerConnectionTracker_GetAllStats, OnGetAllStats) 280 IPC_MESSAGE_HANDLER(PeerConnectionTracker_GetAllStats, OnGetAllStats)
281 IPC_MESSAGE_UNHANDLED(handled = false) 281 IPC_MESSAGE_UNHANDLED(handled = false)
282 IPC_END_MESSAGE_MAP() 282 IPC_END_MESSAGE_MAP()
283 return handled; 283 return handled;
284 } 284 }
285 285
286 void PeerConnectionTracker::OnGetAllStats() { 286 void PeerConnectionTracker::OnGetAllStats() {
287 for (PeerConnectionIdMap::iterator it = peer_connection_id_map_.begin(); 287 for (PeerConnectionIdMap::iterator it = peer_connection_id_map_.begin();
288 it != peer_connection_id_map_.end(); ++it) { 288 it != peer_connection_id_map_.end(); ++it) {
289 289
290 rtc::scoped_refptr<InternalStatsObserver> observer( 290 talk_base::scoped_refptr<InternalStatsObserver> observer(
291 new rtc::RefCountedObject<InternalStatsObserver>(it->second)); 291 new talk_base::RefCountedObject<InternalStatsObserver>(it->second));
292 292
293 it->first->GetStats( 293 it->first->GetStats(
294 observer, 294 observer,
295 NULL, 295 NULL,
296 webrtc::PeerConnectionInterface::kStatsOutputLevelDebug); 296 webrtc::PeerConnectionInterface::kStatsOutputLevelDebug);
297 } 297 }
298 } 298 }
299 299
300 void PeerConnectionTracker::RegisterPeerConnection( 300 void PeerConnectionTracker::RegisterPeerConnection(
301 RTCPeerConnectionHandler* pc_handler, 301 RTCPeerConnectionHandler* pc_handler,
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 const std::string& value) { 518 const std::string& value) {
519 if (peer_connection_id_map_.find(pc_handler) == peer_connection_id_map_.end()) 519 if (peer_connection_id_map_.find(pc_handler) == peer_connection_id_map_.end())
520 return; 520 return;
521 521
522 RenderThreadImpl::current()->Send( 522 RenderThreadImpl::current()->Send(
523 new PeerConnectionTrackerHost_UpdatePeerConnection( 523 new PeerConnectionTrackerHost_UpdatePeerConnection(
524 peer_connection_id_map_[pc_handler], type, value)); 524 peer_connection_id_map_[pc_handler], type, value));
525 } 525 }
526 526
527 } // namespace content 527 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/peer_connection_identity_service.h ('k') | content/renderer/media/rtc_data_channel_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698