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 21 matching lines...) Expand all Loading... |
32 #include "wtf/HashMap.h" | 32 #include "wtf/HashMap.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
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; | |
43 | 42 |
44 typedef unsigned long long (PerformanceTiming::*NavigationTimingFunction)() cons
t; | 43 typedef unsigned long long (PerformanceTiming::*NavigationTimingFunction)() cons
t; |
45 using PerformanceEntryMap = WillBeHeapHashMap<String, PerformanceEntryVector>; | 44 using PerformanceEntryMap = WillBeHeapHashMap<String, PerformanceEntryVector>; |
46 | 45 |
47 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { | 46 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { |
48 public: | 47 public: |
49 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) | 48 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) |
50 { | 49 { |
51 return adoptRefWillBeNoop(new UserTiming(performance)); | 50 return adoptRefWillBeNoop(new UserTiming(performance)); |
52 } | 51 } |
(...skipping 17 matching lines...) Expand all Loading... |
70 | 69 |
71 double findExistingMarkStartTime(const String& markName, ExceptionState&); | 70 double findExistingMarkStartTime(const String& markName, ExceptionState&); |
72 RawPtrWillBeMember<Performance> m_performance; | 71 RawPtrWillBeMember<Performance> m_performance; |
73 PerformanceEntryMap m_marksMap; | 72 PerformanceEntryMap m_marksMap; |
74 PerformanceEntryMap m_measuresMap; | 73 PerformanceEntryMap m_measuresMap; |
75 }; | 74 }; |
76 | 75 |
77 } | 76 } |
78 | 77 |
79 #endif // !defined(PerformanceUserTiming_h) | 78 #endif // !defined(PerformanceUserTiming_h) |
OLD | NEW |