OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Intel Inc. All rights reserved. | 2 * Copyright (C) 2012 Intel Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/page/PerformanceUserTiming.h" | 27 #include "core/page/PerformanceUserTiming.h" |
28 | 28 |
29 #include "core/page/Performance.h" | 29 #include "core/page/Performance.h" |
30 #include "core/page/PerformanceMark.h" | 30 #include "core/page/PerformanceMark.h" |
31 #include "core/page/PerformanceMeasure.h" | 31 #include "core/page/PerformanceMeasure.h" |
32 #include <wtf/dtoa/utils.h> | 32 #include "wtf/text/WTFString.h" |
33 #include <wtf/text/WTFString.h> | |
34 | 33 |
35 namespace WebCore { | 34 namespace WebCore { |
36 | 35 |
37 namespace { | 36 namespace { |
38 | 37 |
39 typedef HashMap<String, NavigationTimingFunction> RestrictedKeyMap; | 38 typedef HashMap<String, NavigationTimingFunction> RestrictedKeyMap; |
40 static RestrictedKeyMap restrictedKeyMap() | 39 static RestrictedKeyMap restrictedKeyMap() |
41 { | 40 { |
42 DEFINE_STATIC_LOCAL(RestrictedKeyMap, map, ()); | 41 DEFINE_STATIC_LOCAL(RestrictedKeyMap, map, ()); |
43 if (map.isEmpty()) { | 42 if (map.isEmpty()) { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 { | 197 { |
199 return convertToEntrySequence(m_measuresMap); | 198 return convertToEntrySequence(m_measuresMap); |
200 } | 199 } |
201 | 200 |
202 Vector<RefPtr<PerformanceEntry> > UserTiming::getMeasures(const String& name) co
nst | 201 Vector<RefPtr<PerformanceEntry> > UserTiming::getMeasures(const String& name) co
nst |
203 { | 202 { |
204 return getEntrySequenceByName(m_measuresMap, name); | 203 return getEntrySequenceByName(m_measuresMap, name); |
205 } | 204 } |
206 | 205 |
207 } // namespace WebCore | 206 } // namespace WebCore |
OLD | NEW |