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

Side by Side Diff: Source/core/workers/WorkerObjectProxy.h

Issue 631133003: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « Source/core/workers/WorkerNavigator.h ('k') | Source/core/workers/WorkerScriptLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class ExecutionContext; 42 class ExecutionContext;
43 class ExecutionContextTask; 43 class ExecutionContextTask;
44 class WorkerMessagingProxy; 44 class WorkerMessagingProxy;
45 45
46 // A proxy to talk to the worker object. This object is created on the 46 // A proxy to talk to the worker object. This object is created on the
47 // worker object thread (i.e. usually the main thread), passed on to 47 // worker object thread (i.e. usually the main thread), passed on to
48 // the worker thread, and used just to proxy messages to the 48 // the worker thread, and used just to proxy messages to the
49 // WorkerMessagingProxy on the worker object thread. 49 // WorkerMessagingProxy on the worker object thread.
50 // 50 //
51 // Used only by Dedicated Worker. 51 // Used only by Dedicated Worker.
52 class WorkerObjectProxy FINAL : public WorkerReportingProxy { 52 class WorkerObjectProxy final : public WorkerReportingProxy {
53 public: 53 public:
54 static PassOwnPtr<WorkerObjectProxy> create(ExecutionContext*, WorkerMessagi ngProxy*); 54 static PassOwnPtr<WorkerObjectProxy> create(ExecutionContext*, WorkerMessagi ngProxy*);
55 virtual ~WorkerObjectProxy() { } 55 virtual ~WorkerObjectProxy() { }
56 56
57 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr <MessagePortChannelArray>); 57 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr <MessagePortChannelArray>);
58 void postTaskToMainExecutionContext(PassOwnPtr<ExecutionContextTask>); 58 void postTaskToMainExecutionContext(PassOwnPtr<ExecutionContextTask>);
59 void confirmMessageFromWorkerObject(bool hasPendingActivity); 59 void confirmMessageFromWorkerObject(bool hasPendingActivity);
60 void reportPendingActivity(bool hasPendingActivity); 60 void reportPendingActivity(bool hasPendingActivity);
61 61
62 // WorkerReportingProxy overrides. 62 // WorkerReportingProxy overrides.
63 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE; 63 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) override;
64 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) OV ERRIDE; 64 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride;
65 virtual void postMessageToPageInspector(const String&) OVERRIDE; 65 virtual void postMessageToPageInspector(const String&) override;
66 virtual void updateInspectorStateCookie(const String&) OVERRIDE; 66 virtual void updateInspectorStateCookie(const String&) override;
67 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) OVERRIDE { } 67 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override { }
68 virtual void workerGlobalScopeClosed() OVERRIDE; 68 virtual void workerGlobalScopeClosed() override;
69 virtual void workerThreadTerminated() OVERRIDE; 69 virtual void workerThreadTerminated() override;
70 virtual void willDestroyWorkerGlobalScope() OVERRIDE { } 70 virtual void willDestroyWorkerGlobalScope() override { }
71 71
72 private: 72 private:
73 WorkerObjectProxy(ExecutionContext*, WorkerMessagingProxy*); 73 WorkerObjectProxy(ExecutionContext*, WorkerMessagingProxy*);
74 74
75 // These objects always outlive this proxy. 75 // These objects always outlive this proxy.
76 ExecutionContext* m_executionContext; 76 ExecutionContext* m_executionContext;
77 WorkerMessagingProxy* m_messagingProxy; 77 WorkerMessagingProxy* m_messagingProxy;
78 }; 78 };
79 79
80 } // namespace blink 80 } // namespace blink
81 81
82 #endif // WorkerObjectProxy_h 82 #endif // WorkerObjectProxy_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerNavigator.h ('k') | Source/core/workers/WorkerScriptLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698