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

Unified Diff: Source/core/workers/WorkerReportingProxy.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 | « Source/core/workers/WorkerObjectProxy.h ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerReportingProxy.h
diff --git a/Source/core/workers/WorkerReportingProxy.h b/Source/core/workers/WorkerReportingProxy.h
index 75b1389113316f982a4e45b0995b6d69600bb28b..0d0ccb027458947d99d880c5c7de0fa3d196ff24 100644
--- a/Source/core/workers/WorkerReportingProxy.h
+++ b/Source/core/workers/WorkerReportingProxy.h
@@ -36,25 +36,27 @@
namespace WebCore {
- // APIs used by workers to report console activity.
- class WorkerReportingProxy {
- public:
- virtual ~WorkerReportingProxy() {}
+class WorkerGlobalScope;
- virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) = 0;
- virtual void reportConsoleMessage(MessageSource, MessageLevel, const String& message, int lineNumber, const String& sourceURL) = 0;
- virtual void postMessageToPageInspector(const String&) = 0;
- virtual void updateInspectorStateCookie(const String&) = 0;
+// APIs used by workers to report console activity.
+class WorkerReportingProxy {
+public:
+ virtual ~WorkerReportingProxy() { }
- // Invoked when the new WorkerGlobalScope is started.
- virtual void workerGlobalScopeStarted() = 0;
+ virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) = 0;
+ virtual void reportConsoleMessage(MessageSource, MessageLevel, const String& message, int lineNumber, const String& sourceURL) = 0;
+ virtual void postMessageToPageInspector(const String&) = 0;
+ virtual void updateInspectorStateCookie(const String&) = 0;
- // Invoked when close() is invoked on the worker context.
- virtual void workerGlobalScopeClosed() = 0;
+ // Invoked when the new WorkerGlobalScope is started.
+ virtual void workerGlobalScopeStarted(WorkerGlobalScope*) = 0;
- // Invoked when the thread has stopped.
- virtual void workerGlobalScopeDestroyed() = 0;
- };
+ // Invoked when close() is invoked on the worker context.
+ virtual void workerGlobalScopeClosed() = 0;
+
+ // Invoked when the thread has stopped.
+ virtual void workerGlobalScopeDestroyed() = 0;
+};
} // namespace WebCore
« no previous file with comments | « Source/core/workers/WorkerObjectProxy.h ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698