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

Side by Side Diff: Source/modules/mediastream/RTCStatsReport.cpp

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 27
28 #include "modules/mediastream/RTCStatsReport.h" 28 #include "modules/mediastream/RTCStatsReport.h"
29 29
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 PassRefPtr<RTCStatsReport> RTCStatsReport::create(const String& id, const String & type, double timestamp) 33 PassRefPtrWillBeRawPtr<RTCStatsReport> RTCStatsReport::create(const String& id, const String& type, double timestamp)
34 { 34 {
35 return adoptRef(new RTCStatsReport(id, type, timestamp)); 35 return adoptRefWillBeNoop(new RTCStatsReport(id, type, timestamp));
36 } 36 }
37 37
38 RTCStatsReport::RTCStatsReport(const String& id, const String& type, double time stamp) 38 RTCStatsReport::RTCStatsReport(const String& id, const String& type, double time stamp)
39 : m_id(id) 39 : m_id(id)
40 , m_type(type) 40 , m_type(type)
41 , m_timestamp(timestamp) 41 , m_timestamp(timestamp)
42 { 42 {
43 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
44 } 44 }
45 45
46 Vector<String> RTCStatsReport::names() const 46 Vector<String> RTCStatsReport::names() const
47 { 47 {
48 Vector<String> result; 48 Vector<String> result;
49 for (HashMap<String, String>::const_iterator it = m_stats.begin(); it != m_s tats.end(); ++it) { 49 for (HashMap<String, String>::const_iterator it = m_stats.begin(); it != m_s tats.end(); ++it) {
50 result.append(it->key); 50 result.append(it->key);
51 } 51 }
52 return result; 52 return result;
53 } 53 }
54 54
55 const PassRefPtr<RTCStatsReport> RTCStatsReport::local() 55 const PassRefPtrWillBeRawPtr<RTCStatsReport> RTCStatsReport::local()
56 { 56 {
57 return this; 57 return this;
58 } 58 }
59 59
60 const PassRefPtr<RTCStatsReport> RTCStatsReport::remote() 60 const PassRefPtrWillBeRawPtr<RTCStatsReport> RTCStatsReport::remote()
61 { 61 {
62 return this; 62 return this;
63 } 63 }
64 64
65 void RTCStatsReport::addStatistic(const String& name, const String& value) 65 void RTCStatsReport::addStatistic(const String& name, const String& value)
66 { 66 {
67 m_stats.add(name, value); 67 m_stats.add(name, value);
68 } 68 }
69 69
70 } // namespace WebCore 70 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698