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

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

Issue 2395653002: Remove buffering from PerformanceLongTaskTiming as it's not in the spec. (Closed)
Patch Set: update layout test expectations Created 4 years, 2 months 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
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PerformanceObserver_h 5 #ifndef PerformanceObserver_h
6 #define PerformanceObserver_h 6 #define PerformanceObserver_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/timing/PerformanceEntry.h" 10 #include "core/timing/PerformanceEntry.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 #include "wtf/Vector.h" 12 #include "wtf/Vector.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class ExceptionState; 16 class ExceptionState;
17 class PerformanceBase; 17 class PerformanceBase;
18 class PerformanceObserver; 18 class PerformanceObserver;
19 class PerformanceObserverCallback; 19 class PerformanceObserverCallback;
20 class PerformanceObserverInit; 20 class PerformanceObserverInit;
21 class ScriptState; 21 class ScriptState;
22 22
23 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; 23 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>;
24 24
25 class CORE_EXPORT PerformanceObserver final 25 class CORE_EXPORT PerformanceObserver final
26 : public GarbageCollectedFinalized<PerformanceObserver>, 26 : public GarbageCollectedFinalized<PerformanceObserver>,
27 public ScriptWrappable { 27 public ScriptWrappable {
28 DEFINE_WRAPPERTYPEINFO(); 28 DEFINE_WRAPPERTYPEINFO();
29 friend class PerformanceBase; 29 friend class PerformanceBase;
30 friend class PerformanceBaseTest;
30 friend class PerformanceObserverTest; 31 friend class PerformanceObserverTest;
31 32
32 public: 33 public:
33 static PerformanceObserver* create(ScriptState*, 34 static PerformanceObserver* create(ScriptState*,
34 PerformanceBase*, 35 PerformanceBase*,
35 PerformanceObserverCallback*); 36 PerformanceObserverCallback*);
36 static void resumeSuspendedObservers(); 37 static void resumeSuspendedObservers();
37 38
38 void observe(const PerformanceObserverInit&, ExceptionState&); 39 void observe(const PerformanceObserverInit&, ExceptionState&);
39 void disconnect(); 40 void disconnect();
(...skipping 13 matching lines...) Expand all
53 Member<PerformanceObserverCallback> m_callback; 54 Member<PerformanceObserverCallback> m_callback;
54 WeakMember<PerformanceBase> m_performance; 55 WeakMember<PerformanceBase> m_performance;
55 PerformanceEntryVector m_performanceEntries; 56 PerformanceEntryVector m_performanceEntries;
56 PerformanceEntryTypeMask m_filterOptions; 57 PerformanceEntryTypeMask m_filterOptions;
57 bool m_isRegistered; 58 bool m_isRegistered;
58 }; 59 };
59 60
60 } // namespace blink 61 } // namespace blink
61 62
62 #endif // PerformanceObserver_h 63 #endif // PerformanceObserver_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698