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

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

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 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 2686668b1888de2ecc51bd925144b2c7cb2bc3ae..d12d45c277d4976439fc15774eb3dbb6be70e8b5 100644
--- a/Source/core/inspector/AsyncCallStackTracker.h
+++ b/Source/core/inspector/AsyncCallStackTracker.h
@@ -32,6 +32,7 @@
#define AsyncCallStackTracker_h
#include "bindings/common/ScriptValue.h"
+#include "bindings/common/StackTrace.h"
#include "wtf/Deque.h"
#include "wtf/HashMap.h"
#include "wtf/HashSet.h"
@@ -53,13 +54,13 @@ class AsyncCallStackTracker {
public:
class AsyncCallStack : public RefCounted<AsyncCallStack> {
public:
- AsyncCallStack(const String&, const ScriptValue&);
+ AsyncCallStack(const String&, const StackTrace&);
~AsyncCallStack();
String description() const { return m_description; }
- ScriptValue callFrames() const { return m_callFrames; }
+ StackTrace callFrames() const { return m_callFrames; }
private:
String m_description;
- ScriptValue m_callFrames;
+ StackTrace m_callFrames;
};
typedef Deque<RefPtr<AsyncCallStack>, 4> AsyncCallStackVector;
@@ -80,27 +81,27 @@ public:
void setAsyncCallStackDepth(int);
const AsyncCallChain* currentAsyncCallChain() const;
- void didInstallTimer(ExecutionContext*, int timerId, bool singleShot, const ScriptValue& callFrames);
+ void didInstallTimer(ExecutionContext*, int timerId, bool singleShot, const StackTrace& callFrames);
void didRemoveTimer(ExecutionContext*, int timerId);
void willFireTimer(ExecutionContext*, int timerId);
- void didRequestAnimationFrame(ExecutionContext*, int callbackId, const ScriptValue& callFrames);
+ void didRequestAnimationFrame(ExecutionContext*, int callbackId, const StackTrace& callFrames);
void didCancelAnimationFrame(ExecutionContext*, int callbackId);
void willFireAnimationFrame(ExecutionContext*, int callbackId);
- void didAddEventListener(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture, const ScriptValue& callFrames);
+ void didAddEventListener(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture, const StackTrace& callFrames);
void didRemoveEventListener(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture);
void didRemoveAllEventListeners(EventTarget*);
void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListener*, bool useCapture);
- void willLoadXHR(XMLHttpRequest*, const ScriptValue& callFrames);
+ void willLoadXHR(XMLHttpRequest*, const StackTrace& callFrames);
- void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*, const ScriptValue& callFrames);
+ void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*, const StackTrace& callFrames);
bool hasEnqueuedMutationRecord(ExecutionContext*, MutationObserver*);
void didClearAllMutationRecords(ExecutionContext*, MutationObserver*);
void willDeliverMutationRecords(ExecutionContext*, MutationObserver*);
- void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isResolved, const ScriptValue& callFrames);
+ void didPostPromiseTask(ExecutionContext*, ExecutionContextTask*, bool isResolved, const StackTrace& callFrames);
void willPerformPromiseTask(ExecutionContext*, ExecutionContextTask*);
void didFireAsyncCall();
@@ -109,11 +110,11 @@ public:
private:
void willHandleXHREvent(XMLHttpRequest*, EventTarget*, const AtomicString& eventType);
- PassRefPtr<AsyncCallChain> createAsyncCallChain(const String& description, const ScriptValue& callFrames);
+ PassRefPtr<AsyncCallChain> createAsyncCallChain(const String& description, const StackTrace& callFrames);
void setCurrentAsyncCallChain(PassRefPtr<AsyncCallChain>);
void clearCurrentAsyncCallChain();
static void ensureMaxAsyncCallChainDepth(AsyncCallChain*, unsigned);
- static bool validateCallFrames(const ScriptValue& callFrames);
+ static bool validateCallFrames(const StackTrace& callFrames);
class ExecutionContextData;
ExecutionContextData* createContextDataIfNeeded(ExecutionContext*);
« no previous file with comments | « Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp ('k') | Source/core/inspector/AsyncCallStackTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698