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

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: Fix in printing NULL parent promises 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 f44abcccea940fda9efb47f3473a28e736fbc58d..00b40c8221e11444832b2387d4b4333399e2256d 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 addPromise(ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> parentPromise, V8PromiseCustom::PromiseState state);
+ void updatePromiseParent(ExecutionContext*, v8::Handle<v8::Object> promise, v8::Handle<v8::Object> newParentPromise);
+ void updatePromiseState(ExecutionContext*, v8::Handle<v8::Object> promise, V8PromiseCustom::PromiseState newState);
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