| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef V8DebuggerImpl_h | 31 #ifndef V8DebuggerImpl_h |
| 32 #define V8DebuggerImpl_h | 32 #define V8DebuggerImpl_h |
| 33 | 33 |
| 34 #include "platform/inspector_protocol/Maybe.h" | 34 #include "platform/inspector_protocol/Maybe.h" |
| 35 #include "platform/inspector_protocol/Platform.h" |
| 35 #include "platform/v8_inspector/JavaScriptCallFrame.h" | 36 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
| 36 #include "platform/v8_inspector/V8DebuggerScript.h" | 37 #include "platform/v8_inspector/V8DebuggerScript.h" |
| 37 #include "platform/v8_inspector/protocol/Debugger.h" | 38 #include "platform/v8_inspector/protocol/Debugger.h" |
| 38 #include "platform/v8_inspector/public/V8Debugger.h" | 39 #include "platform/v8_inspector/public/V8Debugger.h" |
| 39 #include "wtf/PtrUtil.h" | |
| 40 | 40 |
| 41 #include <v8-debug.h> | 41 #include <v8-debug.h> |
| 42 #include <v8.h> | 42 #include <v8.h> |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 using protocol::Maybe; | 46 using protocol::Maybe; |
| 47 | 47 |
| 48 struct ScriptBreakpoint; | 48 struct ScriptBreakpoint; |
| 49 class InspectedContext; | 49 class InspectedContext; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 v8::Isolate* isolate() const { return m_isolate; } | 100 v8::Isolate* isolate() const { return m_isolate; } |
| 101 V8DebuggerClient* client() { return m_client; } | 101 V8DebuggerClient* client() { return m_client; } |
| 102 | 102 |
| 103 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); | 103 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); |
| 104 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8
::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]
); | 104 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8
::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]
); |
| 105 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); | 105 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); |
| 106 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); | 106 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); |
| 107 v8::Local<v8::Context> regexContext(); | 107 v8::Local<v8::Context> regexContext(); |
| 108 | 108 |
| 109 // V8Debugger implementation | 109 // V8Debugger implementation |
| 110 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, V8InspectorS
essionClient*, const String16* state) override; | 110 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr
ontendChannel*, V8InspectorSessionClient*, const String16* state) override; |
| 111 void contextCreated(const V8ContextInfo&) override; | 111 void contextCreated(const V8ContextInfo&) override; |
| 112 void contextDestroyed(v8::Local<v8::Context>) override; | 112 void contextDestroyed(v8::Local<v8::Context>) override; |
| 113 void resetContextGroup(int contextGroupId) override; | 113 void resetContextGroup(int contextGroupId) override; |
| 114 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; | 114 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; |
| 115 void didExecuteScript(v8::Local<v8::Context>) override; | 115 void didExecuteScript(v8::Local<v8::Context>) override; |
| 116 void idleStarted() override; | 116 void idleStarted() override; |
| 117 void idleFinished() override; | 117 void idleFinished() override; |
| 118 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov
erride; | 118 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov
erride; |
| 119 std::unique_ptr<V8StackTrace> captureStackTrace(size_t maxStackSize) overrid
e; | 119 std::unique_ptr<V8StackTrace> captureStackTrace(size_t maxStackSize) overrid
e; |
| 120 | 120 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 v8::Local<v8::Object> m_executionState; | 160 v8::Local<v8::Object> m_executionState; |
| 161 v8::Local<v8::Context> m_pausedContext; | 161 v8::Local<v8::Context> m_pausedContext; |
| 162 bool m_runningNestedMessageLoop; | 162 bool m_runningNestedMessageLoop; |
| 163 v8::Global<v8::Context> m_regexContext; | 163 v8::Global<v8::Context> m_regexContext; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace blink | 166 } // namespace blink |
| 167 | 167 |
| 168 | 168 |
| 169 #endif // V8DebuggerImpl_h | 169 #endif // V8DebuggerImpl_h |
| OLD | NEW |