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

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

Issue 137633004: Add WorkerGlobalScope* param to WorkerReportingProxy::workerGlobalScopeStarted (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
« no previous file with comments | « no previous file | Source/core/workers/WorkerReportingProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerObjectProxy.h
diff --git a/Source/core/workers/WorkerObjectProxy.h b/Source/core/workers/WorkerObjectProxy.h
index 697243d819a0e8a101a880c36b02c11fce51566d..56266efdb39c22cc368bb146d38dc1da2e055674 100644
--- a/Source/core/workers/WorkerObjectProxy.h
+++ b/Source/core/workers/WorkerObjectProxy.h
@@ -38,41 +38,41 @@
namespace WebCore {
- class ExecutionContext;
- class WorkerMessagingProxy;
+class ExecutionContext;
+class WorkerMessagingProxy;
- // A proxy to talk to the worker object. This object is created on the
- // worker object thread (i.e. usually the main thread), passed on to
- // the worker thread, and used just to proxy messages to the
- // WorkerMessagingProxy on the worker object thread.
- //
- // Used only by Dedicated Worker.
- class WorkerObjectProxy FINAL : public WorkerReportingProxy {
- public:
- static PassOwnPtr<WorkerObjectProxy> create(ExecutionContext*, WorkerMessagingProxy*);
- virtual ~WorkerObjectProxy() { }
+// A proxy to talk to the worker object. This object is created on the
+// worker object thread (i.e. usually the main thread), passed on to
+// the worker thread, and used just to proxy messages to the
+// WorkerMessagingProxy on the worker object thread.
+//
+// Used only by Dedicated Worker.
+class WorkerObjectProxy FINAL : public WorkerReportingProxy {
+public:
+ static PassOwnPtr<WorkerObjectProxy> create(ExecutionContext*, WorkerMessagingProxy*);
+ virtual ~WorkerObjectProxy() { }
- void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>);
+ void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>);
- void confirmMessageFromWorkerObject(bool hasPendingActivity);
- void reportPendingActivity(bool hasPendingActivity);
+ void confirmMessageFromWorkerObject(bool hasPendingActivity);
+ void reportPendingActivity(bool hasPendingActivity);
- // WorkerReportingProxy overrides.
- virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE;
- virtual void reportConsoleMessage(MessageSource, MessageLevel, const String& message, int lineNumber, const String& sourceURL) OVERRIDE;
- virtual void postMessageToPageInspector(const String&) OVERRIDE;
- virtual void updateInspectorStateCookie(const String&) OVERRIDE;
- virtual void workerGlobalScopeStarted() OVERRIDE { }
- virtual void workerGlobalScopeClosed() OVERRIDE;
- virtual void workerGlobalScopeDestroyed() OVERRIDE;
+ // WorkerReportingProxy overrides.
+ virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE;
+ virtual void reportConsoleMessage(MessageSource, MessageLevel, const String& message, int lineNumber, const String& sourceURL) OVERRIDE;
+ virtual void postMessageToPageInspector(const String&) OVERRIDE;
+ virtual void updateInspectorStateCookie(const String&) OVERRIDE;
+ virtual void workerGlobalScopeStarted(WorkerGlobalScope*) OVERRIDE { }
+ virtual void workerGlobalScopeClosed() OVERRIDE;
+ virtual void workerGlobalScopeDestroyed() OVERRIDE;
- private:
- WorkerObjectProxy(ExecutionContext*, WorkerMessagingProxy*);
+private:
+ WorkerObjectProxy(ExecutionContext*, WorkerMessagingProxy*);
- // These objects always outlive this proxy.
- ExecutionContext* m_executionContext;
- WorkerMessagingProxy* m_messagingProxy;
- };
+ // These objects always outlive this proxy.
+ ExecutionContext* m_executionContext;
+ WorkerMessagingProxy* m_messagingProxy;
+};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/workers/WorkerReportingProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698