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

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

Issue 17236004: Update AbstractWorker, Worker and SharedWorker to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
Index: Source/core/workers/Worker.h
diff --git a/Source/core/workers/Worker.h b/Source/core/workers/Worker.h
index 64100b03c40ee3018ee3b37e38a9f24882e76d8e..f01c774017771e9d3d22180677aa89babda75072 100644
--- a/Source/core/workers/Worker.h
+++ b/Source/core/workers/Worker.h
@@ -47,7 +47,7 @@ namespace WebCore {
typedef int ExceptionCode;
- class Worker : public AbstractWorker, private WorkerScriptLoaderClient {
+ class Worker : public AbstractWorker, public ScriptWrappable, public ActiveDOMObject, private WorkerScriptLoaderClient {
public:
static PassRefPtr<Worker> create(ScriptExecutionContext*, const String& url, ExceptionCode&);
virtual ~Worker();
@@ -61,6 +61,8 @@ namespace WebCore {
virtual bool canSuspend() const OVERRIDE;
virtual void stop() OVERRIDE;
virtual bool hasPendingActivity() const OVERRIDE;
+ virtual void contextDestroyed() OVERRIDE;
+ virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE { return ActiveDOMObject::scriptExecutionContext(); }
DEFINE_ATTRIBUTE_EVENT_LISTENER(message);

Powered by Google App Engine
This is Rietveld 408576698