Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: Source/core/inspector/InspectorDebuggerAgent.h

Issue 177773002: Support Promises instrumentation on backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert blank line Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorDebuggerAgent.h
diff --git a/Source/core/inspector/InspectorDebuggerAgent.h b/Source/core/inspector/InspectorDebuggerAgent.h
index 243b660e64c0f6fd6b81691311de667c99100989..1825a069b6fa183a73da86bbd5b2061a15b37095 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.h
+++ b/Source/core/inspector/InspectorDebuggerAgent.h
@@ -37,6 +37,7 @@
#include "core/inspector/ConsoleAPITypes.h"
#include "core/inspector/InjectedScript.h"
#include "core/inspector/InspectorBaseAgent.h"
+#include "core/inspector/PromiseOfficer.h"
#include "core/inspector/ScriptBreakpoint.h"
#include "core/inspector/ScriptDebugListener.h"
#include "wtf/Forward.h"
@@ -161,6 +162,9 @@ public:
void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isResolved);
void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*);
void didPerformPromiseTask();
+ void didCreatePromise(ExecutionContext*, v8::Handle<v8::Object> promise);
+ void didUpdatePromiseParent(v8::Handle<v8::Object> promise, v8::Handle<v8::Object> parentPromise);
+ void didUpdatePromiseState(v8::Handle<v8::Object> promise, V8PromiseCustom::PromiseState, v8::Handle<v8::Value> result);
bool canBreakProgram();
void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data);
void scriptExecutionBlockedByCSP(const String& directiveText);
@@ -248,6 +252,7 @@ private:
bool m_skipAllPauses;
OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
AsyncCallStackTracker m_asyncCallStackTracker;
+ PromiseOfficer m_promiseOfficer;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698