| 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 <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/V8PerContextData.h" | 11 #include "bindings/core/v8/V8PerContextData.h" |
| 12 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
| 13 #include "platform/wtf/RefCounted.h" |
| 13 #include "v8/include/v8-debug.h" | 14 #include "v8/include/v8-debug.h" |
| 14 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 15 #include "wtf/RefCounted.h" | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class LocalDOMWindow; | 19 class LocalDOMWindow; |
| 20 class DOMWrapperWorld; | 20 class DOMWrapperWorld; |
| 21 class ExecutionContext; | 21 class ExecutionContext; |
| 22 class ScriptValue; | 22 class ScriptValue; |
| 23 | 23 |
| 24 // ScriptState is an abstraction class that holds all information about script | 24 // ScriptState is an abstraction class that holds all information about script |
| 25 // exectuion (e.g., v8::Isolate, v8::Context, DOMWrapperWorld, ExecutionContext | 25 // exectuion (e.g., v8::Isolate, v8::Context, DOMWrapperWorld, ExecutionContext |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 } | 199 } |
| 200 | 200 |
| 201 private: | 201 private: |
| 202 RefPtr<ScriptState> m_scriptState; | 202 RefPtr<ScriptState> m_scriptState; |
| 203 ScopedPersistent<v8::Context> m_context; | 203 ScopedPersistent<v8::Context> m_context; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace blink | 206 } // namespace blink |
| 207 | 207 |
| 208 #endif // ScriptState_h | 208 #endif // ScriptState_h |
| OLD | NEW |