OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 RTCLegacyStatsReport::RTCLegacyStatsReport(const String& id, | 36 RTCLegacyStatsReport::RTCLegacyStatsReport(const String& id, |
37 const String& type, | 37 const String& type, |
38 double timestamp) | 38 double timestamp) |
39 : m_id(id), m_type(type), m_timestamp(timestamp) {} | 39 : m_id(id), m_type(type), m_timestamp(timestamp) {} |
40 | 40 |
41 Vector<String> RTCLegacyStatsReport::names() const { | 41 Vector<String> RTCLegacyStatsReport::names() const { |
42 Vector<String> result; | 42 Vector<String> result; |
43 for (HashMap<String, String>::const_iterator it = m_stats.begin(); | 43 for (HashMap<String, String>::const_iterator it = m_stats.begin(); |
44 it != m_stats.end(); ++it) { | 44 it != m_stats.end(); ++it) { |
45 result.append(it->key); | 45 result.push_back(it->key); |
46 } | 46 } |
47 return result; | 47 return result; |
48 } | 48 } |
49 | 49 |
50 void RTCLegacyStatsReport::addStatistic(const String& name, | 50 void RTCLegacyStatsReport::addStatistic(const String& name, |
51 const String& value) { | 51 const String& value) { |
52 m_stats.add(name, value); | 52 m_stats.add(name, value); |
53 } | 53 } |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
OLD | NEW |