Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 2528513003: first-paint and first-contentful paint (Closed)
Patch Set: updated layout tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 18 matching lines...) Expand all
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef PerformanceBase_h 32 #ifndef PerformanceBase_h
33 #define PerformanceBase_h 33 #define PerformanceBase_h
34 34
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "core/dom/DOMHighResTimeStamp.h" 36 #include "core/dom/DOMHighResTimeStamp.h"
37 #include "core/events/EventTarget.h" 37 #include "core/events/EventTarget.h"
38 #include "core/timing/PerformanceEntry.h" 38 #include "core/timing/PerformanceEntry.h"
39 #include "core/timing/PerformancePaintTiming.h"
39 #include "platform/Timer.h" 40 #include "platform/Timer.h"
40 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
41 #include "wtf/Forward.h" 42 #include "wtf/Forward.h"
42 #include "wtf/HashSet.h" 43 #include "wtf/HashSet.h"
43 #include "wtf/ListHashSet.h" 44 #include "wtf/ListHashSet.h"
44 #include "wtf/Vector.h" 45 #include "wtf/Vector.h"
45 46
46 namespace blink { 47 namespace blink {
47 48
48 class DOMWindow; 49 class DOMWindow;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 double endTime, 101 double endTime,
101 const String& name, 102 const String& name,
102 const String& culpritFrameSrc, 103 const String& culpritFrameSrc,
103 const String& culpritFrameId, 104 const String& culpritFrameId,
104 const String& culpritFrameName); 105 const String& culpritFrameName);
105 106
106 void addResourceTiming(const ResourceTimingInfo&); 107 void addResourceTiming(const ResourceTimingInfo&);
107 108
108 void addNavigationTiming(LocalFrame*); 109 void addNavigationTiming(LocalFrame*);
109 110
111 void addPaintTiming(PerformancePaintTiming::PaintType, double startTime);
112
110 void mark(const String& markName, ExceptionState&); 113 void mark(const String& markName, ExceptionState&);
111 void clearMarks(const String& markName); 114 void clearMarks(const String& markName);
112 115
113 void measure(const String& measureName, 116 void measure(const String& measureName,
114 const String& startMark, 117 const String& startMark,
115 const String& endMark, 118 const String& endMark,
116 ExceptionState&); 119 ExceptionState&);
117 void clearMeasures(const String& measureName); 120 void clearMeasures(const String& measureName);
118 121
119 void unregisterPerformanceObserver(PerformanceObserver&); 122 void unregisterPerformanceObserver(PerformanceObserver&);
(...skipping 30 matching lines...) Expand all
150 PerformanceEntryTypeMask m_observerFilterOptions; 153 PerformanceEntryTypeMask m_observerFilterOptions;
151 PerformanceObservers m_observers; 154 PerformanceObservers m_observers;
152 PerformanceObservers m_activeObservers; 155 PerformanceObservers m_activeObservers;
153 PerformanceObservers m_suspendedObservers; 156 PerformanceObservers m_suspendedObservers;
154 Timer<PerformanceBase> m_deliverObservationsTimer; 157 Timer<PerformanceBase> m_deliverObservationsTimer;
155 }; 158 };
156 159
157 } // namespace blink 160 } // namespace blink
158 161
159 #endif // PerformanceBase_h 162 #endif // PerformanceBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698