Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h

Issue 2784473002: [Bindings] Move some private symbols from V8HiddenValue to V8PrivateProperty (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 V8PrivateProperty_h 5 #ifndef V8PrivateProperty_h
6 #define V8PrivateProperty_h 6 #define V8PrivateProperty_h
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "bindings/core/v8/ScriptPromiseProperties.h" 10 #include "bindings/core/v8/ScriptPromiseProperties.h"
11 #include "bindings/core/v8/V8BindingMacros.h" 11 #include "bindings/core/v8/V8BindingMacros.h"
12 #include "bindings/core/v8/V8PerIsolateData.h" 12 #include "bindings/core/v8/V8PerIsolateData.h"
13 #include "core/CoreExport.h" 13 #include "core/CoreExport.h"
14 #include "v8/include/v8.h" 14 #include "v8/include/v8.h"
15 #include "wtf/Allocator.h" 15 #include "wtf/Allocator.h"
16 #include "wtf/PtrUtil.h" 16 #include "wtf/PtrUtil.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class ScriptWrappable; 20 class ScriptWrappable;
21 21
22 // Apply |X| for each pair of (InterfaceName, PrivateKeyName). 22 // Apply |X| for each pair of (InterfaceName, PrivateKeyName).
23 #define V8_PRIVATE_PROPERTY_FOR_EACH(X) \ 23 #define V8_PRIVATE_PROPERTY_FOR_EACH(X) \
24 X(CustomEvent, Detail) \
25 X(CustomElement, AdoptedCallback) \ 24 X(CustomElement, AdoptedCallback) \
26 X(CustomElement, AttributeChangedCallback) \ 25 X(CustomElement, AttributeChangedCallback) \
27 X(CustomElement, ConnectedCallback) \ 26 X(CustomElement, ConnectedCallback) \
28 X(CustomElement, DisconnectedCallback) \ 27 X(CustomElement, DisconnectedCallback) \
29 X(CustomElement, Document) \ 28 X(CustomElement, Document) \
30 X(CustomElement, IsInterfacePrototypeObject) \ 29 X(CustomElement, IsInterfacePrototypeObject) \
31 X(CustomElement, NamespaceURI) \ 30 X(CustomElement, NamespaceURI) \
32 X(CustomElement, TagName) \ 31 X(CustomElement, TagName) \
33 X(CustomElement, Type) \ 32 X(CustomElement, Type) \
33 X(CustomEvent, Detail) \
34 X(DOMException, Error) \ 34 X(DOMException, Error) \
35 X(ErrorEvent, Error) \ 35 X(ErrorEvent, Error) \
36 X(Global, Event) \
36 X(IDBObserver, Callback) \ 37 X(IDBObserver, Callback) \
37 X(IntersectionObserver, Callback) \ 38 X(IntersectionObserver, Callback) \
39 X(MessageChannel, Port1) \
40 X(MessageChannel, Port2) \
38 X(MessageEvent, CachedData) \ 41 X(MessageEvent, CachedData) \
39 X(MutationObserver, Callback) \ 42 X(MutationObserver, Callback) \
40 X(NamedConstructor, Initialized) \ 43 X(NamedConstructor, Initialized) \
41 X(PerformanceObserver, Callback) \ 44 X(PerformanceObserver, Callback) \
42 X(PopStateEvent, State) \ 45 X(PopStateEvent, State) \
43 X(SameObject, NotificationActions) \ 46 X(SameObject, NotificationActions) \
44 X(SameObject, NotificationData) \ 47 X(SameObject, NotificationData) \
45 X(SameObject, NotificationVibrate) \ 48 X(SameObject, NotificationVibrate) \
46 X(SameObject, PerformanceLongTaskTimingAttribution) \ 49 X(SameObject, PerformanceLongTaskTimingAttribution) \
47 X(V8NodeFilterCondition, Filter) 50 X(V8NodeFilterCondition, Filter)
(...skipping 147 matching lines...)
195 // TODO(peria): Do not use this specialized hack for 198 // TODO(peria): Do not use this specialized hack for
196 // Window#DocumentCachedAccessor. This is required to put v8::Private key in 199 // Window#DocumentCachedAccessor. This is required to put v8::Private key in
197 // a snapshot, and it cannot be a v8::Eternal<> due to V8 serializer's 200 // a snapshot, and it cannot be a v8::Eternal<> due to V8 serializer's
198 // requirement. 201 // requirement.
199 ScopedPersistent<v8::Private> m_symbolWindowDocumentCachedAccessor; 202 ScopedPersistent<v8::Private> m_symbolWindowDocumentCachedAccessor;
200 }; 203 };
201 204
202 } // namespace blink 205 } // namespace blink
203 206
204 #endif // V8PrivateProperty_h 207 #endif // V8PrivateProperty_h
OLDNEW

Powered by Google App Engine