| 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 "platform/wtf/Allocator.h" |
| 14 #include "platform/wtf/PtrUtil.h" |
| 13 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 14 #include "wtf/Allocator.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 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ | 23 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ |
| 24 SCRIPT_PROMISE_PROPERTIES(V, Resolver) | 24 SCRIPT_PROMISE_PROPERTIES(V, Resolver) |
| 25 | 25 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 V8HiddenValue() {} | 56 V8HiddenValue() {} |
| 57 | 57 |
| 58 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 58 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
| 59 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 59 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
| 60 #undef V8_DECLARE_FIELD | 60 #undef V8_DECLARE_FIELD |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // V8HiddenValue_h | 65 #endif // V8HiddenValue_h |
| OLD | NEW |