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 ScriptState_h | 5 #ifndef ScriptState_h |
6 #define ScriptState_h | 6 #define ScriptState_h |
7 | 7 |
8 #include "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
9 #include "bindings/core/v8/V8PerContextData.h" | 9 #include "bindings/core/v8/V8PerContextData.h" |
10 #include "wtf/RefCounted.h" | 10 #include "wtf/RefCounted.h" |
11 #include <v8.h> | 11 #include <v8.h> |
12 | 12 |
13 namespace WebCore { | 13 namespace blink { |
14 | 14 |
15 class LocalDOMWindow; | 15 class LocalDOMWindow; |
16 class DOMWrapperWorld; | 16 class DOMWrapperWorld; |
17 class ExecutionContext; | 17 class ExecutionContext; |
18 class LocalFrame; | 18 class LocalFrame; |
19 class ScriptValue; | 19 class ScriptValue; |
20 | 20 |
21 // ScriptState is created when v8::Context is created. | 21 // ScriptState is created when v8::Context is created. |
22 // ScriptState is destroyed when v8::Context is garbage-collected and | 22 // ScriptState is destroyed when v8::Context is garbage-collected and |
23 // all V8 proxy objects that have references to the ScriptState are destructed. | 23 // all V8 proxy objects that have references to the ScriptState are destructed. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 | 137 |
138 private: | 138 private: |
139 RefPtr<ScriptState> m_scriptState; | 139 RefPtr<ScriptState> m_scriptState; |
140 ScopedPersistent<v8::Context> m_context; | 140 ScopedPersistent<v8::Context> m_context; |
141 }; | 141 }; |
142 | 142 |
143 } | 143 } |
144 | 144 |
145 #endif // ScriptState_h | 145 #endif // ScriptState_h |
OLD | NEW |