| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/timing/PerformanceUserTiming.h" | 27 #include "core/timing/PerformanceUserTiming.h" |
| 28 | 28 |
| 29 #include "bindings/v8/ExceptionState.h" | 29 #include "bindings/v8/ExceptionState.h" |
| 30 #include "core/dom/ExceptionCode.h" | 30 #include "core/dom/ExceptionCode.h" |
| 31 #include "core/timing/Performance.h" | 31 #include "core/timing/Performance.h" |
| 32 #include "core/timing/PerformanceMark.h" | 32 #include "core/timing/PerformanceMark.h" |
| 33 #include "core/timing/PerformanceMeasure.h" | 33 #include "core/timing/PerformanceMeasure.h" |
| 34 #include "public/platform/Platform.h" | 34 #include "public/platform/Platform.h" |
| 35 #include "wtf/text/WTFString.h" | |
| 36 | 35 |
| 37 namespace WebCore { | 36 namespace WebCore { |
| 38 | 37 |
| 39 namespace { | 38 namespace { |
| 40 | 39 |
| 41 typedef HashMap<String, NavigationTimingFunction> RestrictedKeyMap; | 40 typedef HashMap<String, NavigationTimingFunction> RestrictedKeyMap; |
| 42 static RestrictedKeyMap restrictedKeyMap() | 41 static RestrictedKeyMap restrictedKeyMap() |
| 43 { | 42 { |
| 44 DEFINE_STATIC_LOCAL(RestrictedKeyMap, map, ()); | 43 DEFINE_STATIC_LOCAL(RestrictedKeyMap, map, ()); |
| 45 if (map.isEmpty()) { | 44 if (map.isEmpty()) { |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 { | 199 { |
| 201 return convertToEntrySequence(m_measuresMap); | 200 return convertToEntrySequence(m_measuresMap); |
| 202 } | 201 } |
| 203 | 202 |
| 204 Vector<RefPtr<PerformanceEntry> > UserTiming::getMeasures(const String& name) co
nst | 203 Vector<RefPtr<PerformanceEntry> > UserTiming::getMeasures(const String& name) co
nst |
| 205 { | 204 { |
| 206 return getEntrySequenceByName(m_measuresMap, name); | 205 return getEntrySequenceByName(m_measuresMap, name); |
| 207 } | 206 } |
| 208 | 207 |
| 209 } // namespace WebCore | 208 } // namespace WebCore |
| OLD | NEW |