Chromium Code Reviews

Unified Diff: src/inspector/v8-debugger-agent-impl.h

Issue 2723273002: [inspector] introduced Debugger.scheduleStepIntoAsync (Closed)
Patch Set: override current scheduled step into async if presented Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/inspector/v8-debugger-agent-impl.h
diff --git a/src/inspector/v8-debugger-agent-impl.h b/src/inspector/v8-debugger-agent-impl.h
index 65550c76a02f8dbe0bdd283217ab2f6801fbf9d9..c61b09ea82b19402a9f45c737f83c214548c1115 100644
--- a/src/inspector/v8-debugger-agent-impl.h
+++ b/src/inspector/v8-debugger-agent-impl.h
@@ -88,6 +88,8 @@ class V8DebuggerAgentImpl : public protocol::Debugger::Backend {
Response stepOver() override;
Response stepInto() override;
Response stepOut() override;
+ void scheduleStepIntoAsync(
+ std::unique_ptr<ScheduleStepIntoAsyncCallback> callback) override;
Response setPauseOnExceptions(const String16& pauseState) override;
Response evaluateOnCallFrame(
const String16& callFrameId, const String16& expression,
@@ -143,6 +145,9 @@ class V8DebuggerAgentImpl : public protocol::Debugger::Backend {
v8::Isolate* isolate() { return m_isolate; }
+ bool isStepIntoAsyncScheduled() { return m_stepIntoAsyncCallback.get(); }
+ void stepIntoAsyncWasScheduled();
+
private:
void enableImpl();
@@ -212,6 +217,8 @@ class V8DebuggerAgentImpl : public protocol::Debugger::Backend {
protocol::HashMap<String16, std::vector<std::pair<int, int>>>
m_blackboxedPositions;
+ std::unique_ptr<ScheduleStepIntoAsyncCallback> m_stepIntoAsyncCallback;
+
DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl);
};

Powered by Google App Engine