diff options
author | Andras Becsi <andras.becsi@digia.com> | 2013-12-11 21:33:03 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2013-12-13 12:34:07 +0100 |
commit | f2a33ff9cbc6d19943f1c7fbddd1f23d23975577 (patch) | |
tree | 0586a32aa390ade8557dfd6b4897f43a07449578 /chromium/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h | |
parent | 5362912cdb5eea702b68ebe23702468d17c3017a (diff) |
Update Chromium to branch 1650 (31.0.1650.63)
Change-Id: I57d8c832eaec1eb2364e0a8e7352a6dd354db99f
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/chromium/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h index 3a9d05d9e12..1aca7bb3f40 100644 --- a/chromium/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h +++ b/chromium/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h @@ -34,6 +34,7 @@ #include "core/dom/EventTarget.h" #include "core/dom/ScriptExecutionContext.h" #include "core/page/ContentSecurityPolicy.h" +#include "core/workers/WorkerConsole.h" #include "core/workers/WorkerEventQueue.h" #include "wtf/Assertions.h" #include "wtf/HashMap.h" @@ -50,6 +51,7 @@ namespace WebCore { class ExceptionState; class ScheduledAction; class WorkerClients; + class WorkerConsole; class WorkerInspectorController; class WorkerLocation; class WorkerNavigator; @@ -83,6 +85,7 @@ namespace WebCore { // WorkerGlobalScope WorkerGlobalScope* self() { return this; } + WorkerConsole* console(); WorkerLocation* location() const; void close(); @@ -101,6 +104,7 @@ namespace WebCore { WorkerInspectorController* workerInspectorController() { return m_workerInspectorController.get(); } // These methods are used for GC marking. See JSWorkerGlobalScope::visitChildrenVirtual(SlotVisitor&) in // JSWorkerGlobalScopeCustom.cpp. + WorkerConsole* optionalConsole() const { return m_console.get(); } WorkerNavigator* optionalNavigator() const { return m_navigator.get(); } WorkerLocation* optionalLocation() const { return m_location.get(); } @@ -136,7 +140,7 @@ namespace WebCore { void applyContentSecurityPolicyFromString(const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType); virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) OVERRIDE; - void addMessageToWorkerConsole(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, ScriptState* = 0, unsigned long requestIdentifier = 0); + void addMessageToWorkerConsole(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, ScriptState*); private: virtual void refScriptExecutionContext() OVERRIDE { ref(); } @@ -150,14 +154,14 @@ namespace WebCore { virtual const KURL& virtualURL() const OVERRIDE; virtual KURL virtualCompleteURL(const String&) const; - virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, ScriptState* = 0, unsigned long requestIdentifier = 0) OVERRIDE; - virtual void addConsoleMessage(MessageSource, MessageLevel, const String& message, unsigned long requestIdentifier = 0) OVERRIDE; + virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE; virtual EventTarget* errorEventTarget() OVERRIDE; KURL m_url; String m_userAgent; + mutable RefPtr<WorkerConsole> m_console; mutable RefPtr<WorkerLocation> m_location; mutable RefPtr<WorkerNavigator> m_navigator; |