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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/string_number_conversions.h" 6 #include "base/strings/string_number_conversions.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "content/common/media/peer_connection_tracker_messages.h" 8 #include "content/common/media/peer_connection_tracker_messages.h"
9 #include "content/renderer/media/rtc_media_constraints.h" 9 #include "content/renderer/media/rtc_media_constraints.h"
10 #include "content/renderer/media/rtc_peer_connection_handler.h" 10 #include "content/renderer/media/rtc_peer_connection_handler.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 return result.release(); 241 return result.release();
242 } 242 }
243 243
244 class InternalStatsObserver : public webrtc::StatsObserver { 244 class InternalStatsObserver : public webrtc::StatsObserver {
245 public: 245 public:
246 InternalStatsObserver(int lid) 246 InternalStatsObserver(int lid)
247 : lid_(lid){} 247 : lid_(lid){}
248 248
249 virtual void OnComplete( 249 virtual void OnComplete(
250 const std::vector<webrtc::StatsReport>& reports) OVERRIDE { 250 const std::vector<webrtc::StatsReport>& reports) override {
251 base::ListValue list; 251 base::ListValue list;
252 252
253 for (size_t i = 0; i < reports.size(); ++i) { 253 for (size_t i = 0; i < reports.size(); ++i) {
254 base::DictionaryValue* report = GetDictValue(reports[i]); 254 base::DictionaryValue* report = GetDictValue(reports[i]);
255 if (report) 255 if (report)
256 list.Append(report); 256 list.Append(report);
257 } 257 }
258 258
259 if (!list.empty()) 259 if (!list.empty())
260 RenderThreadImpl::current()->Send( 260 RenderThreadImpl::current()->Send(
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 const std::string& value) { 537 const std::string& value) {
538 if (peer_connection_id_map_.find(pc_handler) == peer_connection_id_map_.end()) 538 if (peer_connection_id_map_.find(pc_handler) == peer_connection_id_map_.end())
539 return; 539 return;
540 540
541 RenderThreadImpl::current()->Send( 541 RenderThreadImpl::current()->Send(
542 new PeerConnectionTrackerHost_UpdatePeerConnection( 542 new PeerConnectionTrackerHost_UpdatePeerConnection(
543 peer_connection_id_map_[pc_handler], type, value)); 543 peer_connection_id_map_[pc_handler], type, value));
544 } 544 }
545 545
546 } // namespace content 546 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/peer_connection_tracker.h ('k') | content/renderer/media/remote_media_stream_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698