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 27 matching lines...) Expand all Loading... |
38 namespace WebCore { | 38 namespace WebCore { |
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 typedef WillBeHeapHashMap<String, PerformanceEntryVector> PerformanceEntryMap; |
46 | 46 |
47 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { | 47 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { |
48 DECLARE_GC_INFO; | |
49 public: | 48 public: |
50 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) | 49 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) |
51 { | 50 { |
52 return adoptRefWillBeNoop(new UserTiming(performance)); | 51 return adoptRefWillBeNoop(new UserTiming(performance)); |
53 } | 52 } |
54 | 53 |
55 void mark(const String& markName, ExceptionState&); | 54 void mark(const String& markName, ExceptionState&); |
56 void clearMarks(const String& markName); | 55 void clearMarks(const String& markName); |
57 | 56 |
58 void measure(const String& measureName, const String& startMark, const Strin
g& endMark, ExceptionState&); | 57 void measure(const String& measureName, const String& startMark, const Strin
g& endMark, ExceptionState&); |
(...skipping 12 matching lines...) Expand all Loading... |
71 | 70 |
72 double findExistingMarkStartTime(const String& markName, ExceptionState&); | 71 double findExistingMarkStartTime(const String& markName, ExceptionState&); |
73 RawPtrWillBeMember<Performance> m_performance; | 72 RawPtrWillBeMember<Performance> m_performance; |
74 PerformanceEntryMap m_marksMap; | 73 PerformanceEntryMap m_marksMap; |
75 PerformanceEntryMap m_measuresMap; | 74 PerformanceEntryMap m_measuresMap; |
76 }; | 75 }; |
77 | 76 |
78 } | 77 } |
79 | 78 |
80 #endif // !defined(PerformanceUserTiming_h) | 79 #endif // !defined(PerformanceUserTiming_h) |
OLD | NEW |