summaryrefslogtreecommitdiffstats
path: root/WebCore/workers/WorkerObjectProxy.h
diff options
context:
space:
mode:
authorAndrei Popescu <andreip@google.com>2009-08-19 14:09:30 +0100
committerAndrei Popescu <andreip@google.com>2009-08-19 14:09:30 +0100
commit058ccc7ba0a4d59b9f6e92808332aa9895425fc7 (patch)
tree276aad5a2bbc2fd7d65d21bfca42c9de88b3dd20 /WebCore/workers/WorkerObjectProxy.h
parent2796dd1bf3b4b01e7e1d96ea91bd3a212f647579 (diff)
downloadexternal_webkit-058ccc7ba0a4d59b9f6e92808332aa9895425fc7.zip
external_webkit-058ccc7ba0a4d59b9f6e92808332aa9895425fc7.tar.gz
external_webkit-058ccc7ba0a4d59b9f6e92808332aa9895425fc7.tar.bz2
Revert "Merge WebKit r47420"
This reverts commit d227fc870c7a697500a3c900c31baf05fb9a8524.
Diffstat (limited to 'WebCore/workers/WorkerObjectProxy.h')
-rw-r--r--WebCore/workers/WorkerObjectProxy.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/WebCore/workers/WorkerObjectProxy.h b/WebCore/workers/WorkerObjectProxy.h
index 586e7a0..c5f4456 100644
--- a/WebCore/workers/WorkerObjectProxy.h
+++ b/WebCore/workers/WorkerObjectProxy.h
@@ -33,24 +33,31 @@
#if ENABLE(WORKERS)
-#include "WorkerReportingProxy.h"
+#include "Console.h"
#include <wtf/PassOwnPtr.h>
namespace WebCore {
class MessagePortChannel;
+ class String;
// A proxy to talk to the worker object.
- class WorkerObjectProxy : public WorkerReportingProxy {
+ class WorkerObjectProxy {
public:
+ virtual ~WorkerObjectProxy() {}
+
virtual void postMessageToWorkerObject(const String&, PassOwnPtr<MessagePortChannel>) = 0;
+ virtual void postExceptionToWorkerObject(const String& errorMessage, int lineNumber, const String& sourceURL) = 0;
+
+ virtual void postConsoleMessageToWorkerObject(MessageDestination, MessageSource, MessageType, MessageLevel, const String& message, int lineNumber, const String& sourceURL) = 0;
+
virtual void confirmMessageFromWorkerObject(bool hasPendingActivity) = 0;
+
virtual void reportPendingActivity(bool hasPendingActivity) = 0;
- // No need to notify the parent page context when dedicated workers are closing.
- virtual void workerContextClosed() { }
+ virtual void workerContextDestroyed() = 0;
};
} // namespace WebCore