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

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

Issue 2383613003: Remove 'V8' prefix from generated callback function classes (Closed)
Patch Set: 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
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 PerformanceObserverInit; 19 class PerformanceObserverInit;
20 class ScriptState; 20 class ScriptState;
21 class V8PerformanceObserverCallback; 21 class PerformanceObserverCallback;
peria 2016/09/30 07:31:44 alphabetical order
bashi 2016/09/30 07:53:57 Done.
22 22
23 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; 23 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>;
24 24
25 class CORE_EXPORT PerformanceObserver final : public GarbageCollectedFinalized<P erformanceObserver>, public ScriptWrappable { 25 class CORE_EXPORT PerformanceObserver final : public GarbageCollectedFinalized<P erformanceObserver>, public ScriptWrappable {
26 DEFINE_WRAPPERTYPEINFO(); 26 DEFINE_WRAPPERTYPEINFO();
27 friend class PerformanceBase; 27 friend class PerformanceBase;
28 friend class PerformanceObserverTest; 28 friend class PerformanceObserverTest;
29 public: 29 public:
30 static PerformanceObserver* create(ScriptState*, PerformanceBase*, V8Perform anceObserverCallback*); 30 static PerformanceObserver* create(ScriptState*, PerformanceBase*, Performan ceObserverCallback*);
31 static void resumeSuspendedObservers(); 31 static void resumeSuspendedObservers();
32 32
33 void observe(const PerformanceObserverInit&, ExceptionState&); 33 void observe(const PerformanceObserverInit&, ExceptionState&);
34 void disconnect(); 34 void disconnect();
35 void enqueuePerformanceEntry(PerformanceEntry&); 35 void enqueuePerformanceEntry(PerformanceEntry&);
36 PerformanceEntryTypeMask filterOptions() const { return m_filterOptions; } 36 PerformanceEntryTypeMask filterOptions() const { return m_filterOptions; }
37 37
38 DECLARE_TRACE(); 38 DECLARE_TRACE();
39 39
40 private: 40 private:
41 PerformanceObserver(ScriptState*, PerformanceBase*, V8PerformanceObserverCal lback*); 41 PerformanceObserver(ScriptState*, PerformanceBase*, PerformanceObserverCallb ack*);
42 void deliver(); 42 void deliver();
43 bool shouldBeSuspended() const; 43 bool shouldBeSuspended() const;
44 44
45 RefPtr<ScriptState> m_scriptState; 45 RefPtr<ScriptState> m_scriptState;
46 Member<V8PerformanceObserverCallback> m_callback; 46 Member<PerformanceObserverCallback> m_callback;
47 WeakMember<PerformanceBase> m_performance; 47 WeakMember<PerformanceBase> m_performance;
48 PerformanceEntryVector m_performanceEntries; 48 PerformanceEntryVector m_performanceEntries;
49 PerformanceEntryTypeMask m_filterOptions; 49 PerformanceEntryTypeMask m_filterOptions;
50 bool m_isRegistered; 50 bool m_isRegistered;
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // PerformanceObserver_h 55 #endif // PerformanceObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698