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

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: Address vsevik's comments 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
Index: Source/core/inspector/ConsoleMessage.h
diff --git a/Source/core/inspector/ConsoleMessage.h b/Source/core/inspector/ConsoleMessage.h
index 3a8ff19ba5e9d601a1f6cc388ba6d1ae084efc3d..f229253aeb7ca01369c639a6a23814371ad5e215 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* getWorkerId() { return m_workerProxy; }
vsevik 2014/08/12 15:46:07 workerId()
sergeyv 2014/08/12 16:00:58 Done.
void trace(Visitor*);
@@ -59,6 +62,7 @@ private:
RefPtrWillBeMember<ScriptCallStack> m_callStack;
ScriptState* m_scriptState;
unsigned long m_requestIdentifier;
+ WorkerGlobalScopeProxy* m_workerProxy;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698