OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 V8HiddenValue_h | 5 #ifndef V8HiddenValue_h |
6 #define V8HiddenValue_h | 6 #define V8HiddenValue_h |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "bindings/core/v8/ScopedPersistent.h" | 10 #include "bindings/core/v8/ScopedPersistent.h" |
11 #include "bindings/core/v8/ScriptPromiseProperties.h" | 11 #include "bindings/core/v8/ScriptPromiseProperties.h" |
12 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
13 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
14 #include "wtf/Allocator.h" | 14 #include "wtf/Allocator.h" |
15 #include "wtf/PtrUtil.h" | 15 #include "wtf/PtrUtil.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 class ScriptState; | 19 class ScriptState; |
20 class ScriptWrappable; | 20 class ScriptWrappable; |
21 | 21 |
22 #define V8_HIDDEN_VALUES(V) \ | 22 #define V8_HIDDEN_VALUES(V) \ |
23 V(customElementAttachedCallback) \ | 23 V(customElementAttachedCallback) \ |
24 V(customElementAttributeChangedCallback) \ | 24 V(customElementAttributeChangedCallback) \ |
25 V(customElementCreatedCallback) \ | 25 V(customElementCreatedCallback) \ |
26 V(customElementDetachedCallback) \ | 26 V(customElementDetachedCallback) \ |
27 V(customElementsRegistryMap) \ | 27 V(customElementsRegistryMap) \ |
28 V(event) \ | |
29 V(idbCursorRequest) \ | 28 V(idbCursorRequest) \ |
30 V(internalBodyBuffer) \ | 29 V(internalBodyBuffer) \ |
31 V(internalBodyStream) \ | 30 V(internalBodyStream) \ |
32 V(port1) \ | |
33 V(port2) \ | |
34 V(requestInFetchEvent) \ | 31 V(requestInFetchEvent) \ |
35 V(testInterfaces) \ | 32 V(testInterfaces) \ |
36 V(thenableHiddenPromise) \ | 33 V(thenableHiddenPromise) \ |
37 V(toStringString) \ | 34 V(toStringString) \ |
38 V(injectedScriptNative) \ | 35 V(injectedScriptNative) \ |
39 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ | 36 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ |
40 SCRIPT_PROMISE_PROPERTIES(V, Resolver) | 37 SCRIPT_PROMISE_PROPERTIES(V, Resolver) |
41 | 38 |
42 class CORE_EXPORT V8HiddenValue { | 39 class CORE_EXPORT V8HiddenValue { |
43 USING_FAST_MALLOC(V8HiddenValue); | 40 USING_FAST_MALLOC(V8HiddenValue); |
(...skipping 28 matching lines...) Expand all Loading... |
72 V8HiddenValue() {} | 69 V8HiddenValue() {} |
73 | 70 |
74 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 71 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
75 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 72 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
76 #undef V8_DECLARE_FIELD | 73 #undef V8_DECLARE_FIELD |
77 }; | 74 }; |
78 | 75 |
79 } // namespace blink | 76 } // namespace blink |
80 | 77 |
81 #endif // V8HiddenValue_h | 78 #endif // V8HiddenValue_h |
OLD | NEW |