| 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 V8Debugger_h | 5 #ifndef V8Debugger_h |
| 6 #define V8Debugger_h | 6 #define V8Debugger_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/InspectorTypeBuilder.h" | 9 #include "core/InspectorTypeBuilder.h" |
| 10 #include "core/inspector/v8/V8DebuggerListener.h" | 10 #include "core/inspector/v8/V8DebuggerListener.h" |
| 11 #include "wtf/FastAllocBase.h" |
| 11 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
| 12 #include "wtf/PassOwnPtr.h" | 13 #include "wtf/PassOwnPtr.h" |
| 13 | 14 |
| 14 #include <v8-debug.h> | 15 #include <v8-debug.h> |
| 15 #include <v8.h> | 16 #include <v8.h> |
| 16 | 17 |
| 17 namespace blink { | 18 namespace blink { |
| 18 | 19 |
| 19 class JavaScriptCallFrame; | 20 class JavaScriptCallFrame; |
| 20 class V8DebuggerClient; | 21 class V8DebuggerClient; |
| 21 struct ScriptBreakpoint; | 22 struct ScriptBreakpoint; |
| 22 | 23 |
| 23 class CORE_EXPORT V8Debugger { | 24 class CORE_EXPORT V8Debugger { |
| 25 WTF_MAKE_FAST_ALLOCATED(V8Debugger); |
| 24 public: | 26 public: |
| 25 static PassOwnPtr<V8Debugger> create(v8::Isolate*, V8DebuggerClient*); | 27 static PassOwnPtr<V8Debugger> create(v8::Isolate*, V8DebuggerClient*); |
| 26 virtual ~V8Debugger() { } | 28 virtual ~V8Debugger() { } |
| 27 | 29 |
| 28 virtual bool enabled() const = 0; | 30 virtual bool enabled() const = 0; |
| 29 | 31 |
| 30 // Each v8::Context is a part of a group. The group id is used to find appro
apriate | 32 // Each v8::Context is a part of a group. The group id is used to find appro
apriate |
| 31 // V8DebuggerListener to notify about events in the context. | 33 // V8DebuggerListener to notify about events in the context. |
| 32 // |contextGroupId| must be non-0. | 34 // |contextGroupId| must be non-0. |
| 33 static void setContextDebugData(v8::Local<v8::Context>, const String& type,
int contextGroupId); | 35 static void setContextDebugData(v8::Local<v8::Context>, const String& type,
int contextGroupId); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&) = 0; | 71 virtual v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&) = 0; |
| 70 virtual v8::MaybeLocal<v8::Value> setFunctionVariableValue(v8::Local<v8::Val
ue> functionValue, int scopeNumber, const String& variableName, v8::Local<v8::Va
lue> newValue) = 0; | 72 virtual v8::MaybeLocal<v8::Value> setFunctionVariableValue(v8::Local<v8::Val
ue> functionValue, int scopeNumber, const String& variableName, v8::Local<v8::Va
lue> newValue) = 0; |
| 71 | 73 |
| 72 virtual v8::Isolate* isolate() const = 0; | 74 virtual v8::Isolate* isolate() const = 0; |
| 73 }; | 75 }; |
| 74 | 76 |
| 75 } // namespace blink | 77 } // namespace blink |
| 76 | 78 |
| 77 | 79 |
| 78 #endif // V8Debugger_h | 80 #endif // V8Debugger_h |
| OLD | NEW |