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

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: Created 6 years, 7 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..da560bbe63696389f5dc893885996a6c0eb74bf3 100644
--- a/Source/core/inspector/AsyncCallStackTracker.h
+++ b/Source/core/inspector/AsyncCallStackTracker.h
@@ -53,13 +53,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 +80,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 +109,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*);

Powered by Google App Engine
This is Rietveld 408576698