| 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 24 matching lines...) Expand all Loading... |
| 35 #include "wtf/text/StringHash.h" | 35 #include "wtf/text/StringHash.h" |
| 36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class ExceptionState; | 40 class ExceptionState; |
| 41 class Performance; | 41 class Performance; |
| 42 class PerformanceEntry; | 42 class PerformanceEntry; |
| 43 | 43 |
| 44 typedef unsigned long long (PerformanceTiming::*NavigationTimingFunction)() cons
t; | 44 typedef unsigned long long (PerformanceTiming::*NavigationTimingFunction)() cons
t; |
| 45 typedef WillBeHeapHashMap<String, PerformanceEntryVector> PerformanceEntryMap; | 45 using PerformanceEntryMap = WillBeHeapHashMap<String, PerformanceEntryVector>; |
| 46 | 46 |
| 47 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { | 47 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { |
| 48 public: | 48 public: |
| 49 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) | 49 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) |
| 50 { | 50 { |
| 51 return adoptRefWillBeNoop(new UserTiming(performance)); | 51 return adoptRefWillBeNoop(new UserTiming(performance)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void mark(const String& markName, ExceptionState&); | 54 void mark(const String& markName, ExceptionState&); |
| 55 void clearMarks(const String& markName); | 55 void clearMarks(const String& markName); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 70 | 70 |
| 71 double findExistingMarkStartTime(const String& markName, ExceptionState&); | 71 double findExistingMarkStartTime(const String& markName, ExceptionState&); |
| 72 RawPtrWillBeMember<Performance> m_performance; | 72 RawPtrWillBeMember<Performance> m_performance; |
| 73 PerformanceEntryMap m_marksMap; | 73 PerformanceEntryMap m_marksMap; |
| 74 PerformanceEntryMap m_measuresMap; | 74 PerformanceEntryMap m_measuresMap; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } | 77 } |
| 78 | 78 |
| 79 #endif // !defined(PerformanceUserTiming_h) | 79 #endif // !defined(PerformanceUserTiming_h) |
| OLD | NEW |