#define WorkerReportingProxy_h
#include "core/frame/ConsoleTypes.h"
+#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
-namespace WebCore {
+namespace blink {
+class ConsoleMessage;
class WorkerGlobalScope;
// APIs used by workers to report console activity.
virtual ~WorkerReportingProxy() { }
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 reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0;
virtual void postMessageToPageInspector(const String&) = 0;
virtual void updateInspectorStateCookie(const String&) = 0;
// Invoked when the thread is stopped and WorkerGlobalScope is being
// destructed. (This is be the last method that is called on this
// interface)
- virtual void workerGlobalScopeDestroyed() = 0;
+ virtual void workerThreadTerminated() = 0;
// Invoked when the thread is about to be stopped and WorkerGlobalScope
// is to be destructed. (When this is called it is guaranteed that
virtual void willDestroyWorkerGlobalScope() = 0;
};
-} // namespace WebCore
+} // namespace blink
#endif // WorkerReportingProxy_h