| OLD | NEW |
| 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" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 X(MessageChannel, Port2) \ | 53 X(MessageChannel, Port2) \ |
| 54 X(MessageEvent, CachedData) \ | 54 X(MessageEvent, CachedData) \ |
| 55 X(MutationObserver, Callback) \ | 55 X(MutationObserver, Callback) \ |
| 56 X(NamedConstructor, Initialized) \ | 56 X(NamedConstructor, Initialized) \ |
| 57 X(PerformanceObserver, Callback) \ | 57 X(PerformanceObserver, Callback) \ |
| 58 X(PopStateEvent, State) \ | 58 X(PopStateEvent, State) \ |
| 59 X(SameObject, NotificationActions) \ | 59 X(SameObject, NotificationActions) \ |
| 60 X(SameObject, NotificationData) \ | 60 X(SameObject, NotificationData) \ |
| 61 X(SameObject, NotificationVibrate) \ | 61 X(SameObject, NotificationVibrate) \ |
| 62 X(SameObject, PerformanceLongTaskTimingAttribution) \ | 62 X(SameObject, PerformanceLongTaskTimingAttribution) \ |
| 63 X(V8NodeFilterCondition, Filter) | 63 X(V8NodeFilterCondition, Filter) \ |
| 64 SCRIPT_PROMISE_PROPERTIES(X, Promise) \ |
| 65 SCRIPT_PROMISE_PROPERTIES(X, Resolver) |
| 64 | 66 |
| 65 // The getter's name for a private property. | 67 // The getter's name for a private property. |
| 66 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \ | 68 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \ |
| 67 get##InterfaceName##PrivateKeyName | 69 get##InterfaceName##PrivateKeyName |
| 68 | 70 |
| 69 // The member variable's name for a private property. | 71 // The member variable's name for a private property. |
| 70 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \ | 72 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \ |
| 71 m_symbol##InterfaceName##PrivateKeyName | 73 m_symbol##InterfaceName##PrivateKeyName |
| 72 | 74 |
| 73 // The string used to create a private symbol. Must be unique per V8 instance. | 75 // The string used to create a private symbol. Must be unique per V8 instance. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // TODO(peria): Do not use this specialized hack for | 213 // TODO(peria): Do not use this specialized hack for |
| 212 // Window#DocumentCachedAccessor. This is required to put v8::Private key in | 214 // Window#DocumentCachedAccessor. This is required to put v8::Private key in |
| 213 // a snapshot, and it cannot be a v8::Eternal<> due to V8 serializer's | 215 // a snapshot, and it cannot be a v8::Eternal<> due to V8 serializer's |
| 214 // requirement. | 216 // requirement. |
| 215 ScopedPersistent<v8::Private> m_symbolWindowDocumentCachedAccessor; | 217 ScopedPersistent<v8::Private> m_symbolWindowDocumentCachedAccessor; |
| 216 }; | 218 }; |
| 217 | 219 |
| 218 } // namespace blink | 220 } // namespace blink |
| 219 | 221 |
| 220 #endif // V8PrivateProperty_h | 222 #endif // V8PrivateProperty_h |
| OLD | NEW |