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

Unified Diff: Source/core/workers/WorkerGlobalScope.h

Issue 743153002: [DevTools] Show stack trace for exceptions in dedicated workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@worker-capture-stack
Patch Set: Created 6 years, 1 month 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/workers/WorkerGlobalScope.h
diff --git a/Source/core/workers/WorkerGlobalScope.h b/Source/core/workers/WorkerGlobalScope.h
index 84878bd70250f1fe607f28645202bdadd93d2013..2b8b8a607404c111cca5ffe11af399b093b0859f 100644
--- a/Source/core/workers/WorkerGlobalScope.h
+++ b/Source/core/workers/WorkerGlobalScope.h
@@ -127,6 +127,8 @@ public:
virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override final;
ConsoleMessageStorage* messageStorage();
+ void exceptionHandled(int exceptionId, bool isHandled);
+
virtual void trace(Visitor*) override;
protected:
@@ -170,6 +172,8 @@ private:
double m_timeOrigin;
OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage;
+
+ HashMap<unsigned long, RefPtr<ConsoleMessage> > m_pendingMessages;
};
DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorkerGlobalScope(), context.isWorkerGlobalScope());

Powered by Google App Engine
This is Rietveld 408576698