OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 V8ObjectBuilder_h | 5 #ifndef V8ObjectBuilder_h |
6 #define V8ObjectBuilder_h | 6 #define V8ObjectBuilder_h |
7 | 7 |
| 8 #include <v8.h> |
8 #include "bindings/core/v8/ToV8.h" | 9 #include "bindings/core/v8/ToV8.h" |
9 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
10 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
11 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
12 #include <v8.h> | |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class ScriptState; | 16 class ScriptState; |
17 class ScriptValue; | 17 class ScriptValue; |
18 | 18 |
19 class CORE_EXPORT V8ObjectBuilder final { | 19 class CORE_EXPORT V8ObjectBuilder final { |
20 STACK_ALLOCATED(); | 20 STACK_ALLOCATED(); |
21 | 21 |
22 public: | 22 public: |
(...skipping 24 matching lines...) Expand all Loading... |
47 private: | 47 private: |
48 void addInternal(const StringView& name, v8::Local<v8::Value>); | 48 void addInternal(const StringView& name, v8::Local<v8::Value>); |
49 | 49 |
50 RefPtr<ScriptState> m_scriptState; | 50 RefPtr<ScriptState> m_scriptState; |
51 v8::Local<v8::Object> m_object; | 51 v8::Local<v8::Object> m_object; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace blink | 54 } // namespace blink |
55 | 55 |
56 #endif // V8ObjectBuilder_h | 56 #endif // V8ObjectBuilder_h |
OLD | NEW |