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

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

Issue 134213006: Update worker classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/workers/WorkerGlobalScope.h
diff --git a/Source/core/workers/WorkerGlobalScope.h b/Source/core/workers/WorkerGlobalScope.h
index 8bbc43e3c645db3b87f577eda5e21ac283e24f13..08fa1eecff804fb68e2b4c8481108145d02669cd 100644
--- a/Source/core/workers/WorkerGlobalScope.h
+++ b/Source/core/workers/WorkerGlobalScope.h
@@ -63,9 +63,9 @@ namespace WebCore {
public:
virtual ~WorkerGlobalScope();
- virtual bool isWorkerGlobalScope() const OVERRIDE { return true; }
+ virtual bool isWorkerGlobalScope() const OVERRIDE FINAL { return true; }
- virtual ExecutionContext* executionContext() const OVERRIDE;
+ virtual ExecutionContext* executionContext() const OVERRIDE FINAL;
virtual bool isSharedWorkerGlobalScope() const { return false; }
virtual bool isDedicatedWorkerGlobalScope() const { return false; }
@@ -74,8 +74,8 @@ namespace WebCore {
const KURL& url() const { return m_url; }
KURL completeURL(const String&) const;
- virtual String userAgent(const KURL&) const;
- virtual void disableEval(const String& errorMessage) OVERRIDE;
+ virtual String userAgent(const KURL&) const OVERRIDE FINAL;
+ virtual void disableEval(const String& errorMessage) OVERRIDE FINAL;
WorkerScriptController* script() { return m_script.get(); }
void clearScript() { m_script.clear(); }
@@ -83,7 +83,7 @@ namespace WebCore {
WorkerThread* thread() const { return m_thread; }
- virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE; // Executes the task on context's thread asynchronously.
+ virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE FINAL; // Executes the task on context's thread asynchronously.
// WorkerGlobalScope
WorkerGlobalScope* self() { return this; }
@@ -98,13 +98,13 @@ namespace WebCore {
WorkerNavigator* navigator() const;
// ExecutionContextClient
- virtual WorkerEventQueue* eventQueue() const OVERRIDE;
- virtual SecurityContext& securityContext() OVERRIDE { return *this; }
+ virtual WorkerEventQueue* eventQueue() const OVERRIDE FINAL;
+ virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; }
- virtual bool isContextThread() const OVERRIDE;
- virtual bool isJSExecutionForbidden() const OVERRIDE;
+ virtual bool isContextThread() const OVERRIDE FINAL;
+ virtual bool isJSExecutionForbidden() const OVERRIDE FINAL;
- virtual double timerAlignmentInterval() const OVERRIDE;
+ virtual double timerAlignmentInterval() const OVERRIDE FINAL;
WorkerInspectorController* workerInspectorController() { return m_workerInspectorController.get(); }
// These methods are used for GC marking. See JSWorkerGlobalScope::visitChildrenVirtual(SlotVisitor&) in
@@ -148,17 +148,17 @@ namespace WebCore {
void addMessageToWorkerConsole(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, ScriptState*);
private:
- virtual void refExecutionContext() OVERRIDE { ref(); }
- virtual void derefExecutionContext() OVERRIDE { deref(); }
+ virtual void refExecutionContext() OVERRIDE FINAL { ref(); }
+ virtual void derefExecutionContext() OVERRIDE FINAL { deref(); }
- virtual const KURL& virtualURL() const OVERRIDE;
- virtual KURL virtualCompleteURL(const String&) const;
+ virtual const KURL& virtualURL() const OVERRIDE FINAL;
+ virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL;
- virtual void reportBlockedScriptExecutionToInspector(const String& directiveText) OVERRIDE;
- virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE;
+ virtual void reportBlockedScriptExecutionToInspector(const String& directiveText) OVERRIDE FINAL;
+ virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE FINAL;
- virtual EventTarget* errorEventTarget() OVERRIDE;
- virtual void didUpdateSecurityOrigin() OVERRIDE { }
+ virtual EventTarget* errorEventTarget() OVERRIDE FINAL;
+ virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { }
KURL m_url;
String m_userAgent;

Powered by Google App Engine
This is Rietveld 408576698