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

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

Issue 466753002: DevTools: Do not push to frontend messages from worker while it is alive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test Created 6 years, 4 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
« no previous file with comments | « Source/core/frame/FrameConsole.cpp ('k') | Source/core/inspector/ConsoleMessage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ConsoleMessage.h
diff --git a/Source/core/inspector/ConsoleMessage.h b/Source/core/inspector/ConsoleMessage.h
index 3a8ff19ba5e9d601a1f6cc388ba6d1ae084efc3d..8619924afc4431281ca944e9839247c12aa9b7e4 100644
--- a/Source/core/inspector/ConsoleMessage.h
+++ b/Source/core/inspector/ConsoleMessage.h
@@ -18,6 +18,7 @@ namespace blink {
class ScriptCallStack;
class ScriptState;
+class WorkerGlobalScopeProxy;
class ConsoleMessage FINAL: public RefCountedWillBeGarbageCollectedFinalized<ConsoleMessage> {
public:
@@ -43,6 +44,8 @@ public:
MessageLevel level() const;
const String& message() const;
unsigned columnNumber() const;
+ void setWorkerId(WorkerGlobalScopeProxy* proxy) { m_workerProxy = proxy; }
+ WorkerGlobalScopeProxy* workerId() { return m_workerProxy; }
void trace(Visitor*);
@@ -59,6 +62,7 @@ private:
RefPtrWillBeMember<ScriptCallStack> m_callStack;
ScriptState* m_scriptState;
unsigned long m_requestIdentifier;
+ WorkerGlobalScopeProxy* m_workerProxy;
};
} // namespace WebCore
« no previous file with comments | « Source/core/frame/FrameConsole.cpp ('k') | Source/core/inspector/ConsoleMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698