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

Side by Side Diff: content/renderer/media/webrtc/media_stream_track_metrics.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 4
5 #include "content/renderer/media/webrtc/media_stream_track_metrics.h" 5 #include "content/renderer/media/webrtc/media_stream_track_metrics.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 // Sends begin/end messages for all tracks currently tracked. 32 // Sends begin/end messages for all tracks currently tracked.
33 void SendLifetimeMessages(MediaStreamTrackMetrics::LifetimeEvent event); 33 void SendLifetimeMessages(MediaStreamTrackMetrics::LifetimeEvent event);
34 34
35 MediaStreamInterface* stream() { return stream_; } 35 MediaStreamInterface* stream() { return stream_; }
36 MediaStreamTrackMetrics::StreamType stream_type() { return stream_type_; } 36 MediaStreamTrackMetrics::StreamType stream_type() { return stream_type_; }
37 37
38 private: 38 private:
39 typedef std::set<std::string> IdSet; 39 typedef std::set<std::string> IdSet;
40 40
41 // webrtc::ObserverInterface implementation. 41 // webrtc::ObserverInterface implementation.
42 virtual void OnChanged() OVERRIDE; 42 virtual void OnChanged() override;
43 43
44 template <class T> 44 template <class T>
45 IdSet GetTrackIds(const std::vector<rtc::scoped_refptr<T> >& tracks) { 45 IdSet GetTrackIds(const std::vector<rtc::scoped_refptr<T> >& tracks) {
46 IdSet track_ids; 46 IdSet track_ids;
47 typename std::vector<rtc::scoped_refptr<T> >::const_iterator it = 47 typename std::vector<rtc::scoped_refptr<T> >::const_iterator it =
48 tracks.begin(); 48 tracks.begin();
49 for (; it != tracks.end(); ++it) { 49 for (; it != tracks.end(); ++it) {
50 track_ids.insert((*it)->id()); 50 track_ids.insert((*it)->id());
51 } 51 }
52 return track_ids; 52 return track_ids;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 uint64 MediaStreamTrackMetrics::MakeUniqueId(const std::string& track_id, 324 uint64 MediaStreamTrackMetrics::MakeUniqueId(const std::string& track_id,
325 StreamType stream_type) { 325 StreamType stream_type) {
326 return MakeUniqueIdImpl( 326 return MakeUniqueIdImpl(
327 reinterpret_cast<uint64>(reinterpret_cast<void*>(this)), 327 reinterpret_cast<uint64>(reinterpret_cast<void*>(this)),
328 track_id, 328 track_id,
329 stream_type); 329 stream_type);
330 } 330 }
331 331
332 } // namespace content 332 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698