| 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 "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
| 9 #include "bindings/core/v8/ScriptPromiseProperties.h" | 9 #include "bindings/core/v8/ScriptPromiseProperties.h" |
| 10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 V(injectedScriptNative) \ | 44 V(injectedScriptNative) \ |
| 45 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ | 45 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ |
| 46 SCRIPT_PROMISE_PROPERTIES(V, Resolver) | 46 SCRIPT_PROMISE_PROPERTIES(V, Resolver) |
| 47 | 47 |
| 48 class CORE_EXPORT V8HiddenValue { | 48 class CORE_EXPORT V8HiddenValue { |
| 49 USING_FAST_MALLOC(V8HiddenValue); | 49 USING_FAST_MALLOC(V8HiddenValue); |
| 50 WTF_MAKE_NONCOPYABLE(V8HiddenValue); | 50 WTF_MAKE_NONCOPYABLE(V8HiddenValue); |
| 51 | 51 |
| 52 public: | 52 public: |
| 53 static std::unique_ptr<V8HiddenValue> create() { | 53 static std::unique_ptr<V8HiddenValue> create() { |
| 54 return wrapUnique(new V8HiddenValue()); | 54 return WTF::wrapUnique(new V8HiddenValue()); |
| 55 } | 55 } |
| 56 | 56 |
| 57 #define V8_DECLARE_METHOD(name) \ | 57 #define V8_DECLARE_METHOD(name) \ |
| 58 static v8::Local<v8::String> name(v8::Isolate* isolate); | 58 static v8::Local<v8::String> name(v8::Isolate* isolate); |
| 59 V8_HIDDEN_VALUES(V8_DECLARE_METHOD); | 59 V8_HIDDEN_VALUES(V8_DECLARE_METHOD); |
| 60 #undef V8_DECLARE_METHOD | 60 #undef V8_DECLARE_METHOD |
| 61 | 61 |
| 62 static v8::Local<v8::Value> getHiddenValue(ScriptState*, | 62 static v8::Local<v8::Value> getHiddenValue(ScriptState*, |
| 63 v8::Local<v8::Object>, | 63 v8::Local<v8::Object>, |
| 64 v8::Local<v8::String>); | 64 v8::Local<v8::String>); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 78 V8HiddenValue() {} | 78 V8HiddenValue() {} |
| 79 | 79 |
| 80 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 80 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
| 81 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 81 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
| 82 #undef V8_DECLARE_FIELD | 82 #undef V8_DECLARE_FIELD |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| 86 | 86 |
| 87 #endif // V8HiddenValue_h | 87 #endif // V8HiddenValue_h |
| OLD | NEW |