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

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

Issue 383123009: DevTools: Support async call stacks for FileSystem API (part 1). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/AsyncCallStackTracker.h
diff --git a/Source/core/inspector/AsyncCallStackTracker.h b/Source/core/inspector/AsyncCallStackTracker.h
index e049395efd94b4131ad867dd810873cbf7ac726b..640fb985a0cab7509e35b33cc9c246248516c9e7 100644
--- a/Source/core/inspector/AsyncCallStackTracker.h
+++ b/Source/core/inspector/AsyncCallStackTracker.h
@@ -41,6 +41,7 @@
namespace WebCore {
+class AsyncFileSystemCallbacks;
class Event;
class EventListener;
class EventTarget;
@@ -103,9 +104,16 @@ public:
void didKillAllExecutionContextTasks(ExecutionContext*);
void willPerformExecutionContextTask(ExecutionContext*, ExecutionContextTask*);
+ void didEnqueueAsyncFileSystemCallback(ExecutionContext*, AsyncFileSystemCallbacks*, const ScriptValue& callFrames);
+ void didRemoveAsyncFileSystemCallback(ExecutionContext*, AsyncFileSystemCallbacks*);
+ void willHandleAsyncFileSystemCallback(ExecutionContext*, AsyncFileSystemCallbacks*, bool hasMore);
+
void didEnqueueV8AsyncTask(ExecutionContext*, const String& eventName, int id, const ScriptValue& callFrames);
void willHandleV8AsyncTask(ExecutionContext*, const String& eventName, int id);
+ void willRescheduleAsyncCallChain();
+ void didRescheduleAsyncCallChain();
+
void didFireAsyncCall();
void clear();
@@ -124,6 +132,8 @@ private:
unsigned m_maxAsyncCallStackDepth;
RefPtr<AsyncCallChain> m_currentAsyncCallChain;
unsigned m_nestedAsyncCallCount;
+ bool m_rescheduleNextAsyncCallChain;
+ RefPtr<AsyncCallChain> m_rescheduledAsyncCallChain;
typedef HashMap<ExecutionContext*, ExecutionContextData*> ExecutionContextDataMap;
ExecutionContextDataMap m_executionContextDataMap;
};

Powered by Google App Engine
This is Rietveld 408576698