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

Unified Diff: Source/core/inspector/InspectorConsoleMessage.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/InspectorConsoleMessage.h
diff --git a/Source/core/inspector/InspectorConsoleMessage.h b/Source/core/inspector/InspectorConsoleMessage.h
index 2285fdf4614ebdf0ad4ed453d0859bafeef0f1d6..6852444cc17d939e3a2c398723f570f3202b2a34 100644
--- a/Source/core/inspector/InspectorConsoleMessage.h
+++ b/Source/core/inspector/InspectorConsoleMessage.h
@@ -46,6 +46,7 @@ class ScriptArguments;
class ScriptCallFrame;
class ScriptCallStack;
class ScriptValue;
+class WorkerGlobalScopeProxy;
class InspectorConsoleMessage {
WTF_MAKE_NONCOPYABLE(InspectorConsoleMessage); WTF_MAKE_FAST_ALLOCATED;
@@ -58,6 +59,8 @@ public:
void addToFrontend(InspectorFrontend::Console*, InjectedScriptManager*, bool generatePreview);
void setTimestamp(double timestamp) { m_timestamp = timestamp; }
+ void setWorkerGlobalScopeProxy(WorkerGlobalScopeProxy* proxy) { m_workerProxy = proxy; }
+ WorkerGlobalScopeProxy* getWorkerGlobalScopeProxy() { return m_workerProxy; }
vsevik 2014/08/12 15:46:07 no get* please
sergeyv 2014/08/12 16:00:58 Done.
MessageType type() const { return m_type; }
@@ -80,6 +83,7 @@ private:
unsigned m_column;
String m_requestId;
double m_timestamp;
+ WorkerGlobalScopeProxy* m_workerProxy;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698