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

Unified Diff: Source/core/workers/SharedWorker.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/SharedWorker.h
diff --git a/Source/core/workers/SharedWorker.h b/Source/core/workers/SharedWorker.h
index 859c0c67a8799177dc87a93a6dcf35691f402f43..06e5b0314bdbe915c54d5768a9111ad87c00b87e 100644
--- a/Source/core/workers/SharedWorker.h
+++ b/Source/core/workers/SharedWorker.h
@@ -32,11 +32,12 @@
#ifndef SharedWorker_h
#define SharedWorker_h
+#include "core/dom/ActiveDOMObject.h"
#include "core/workers/AbstractWorker.h"
namespace WebCore {
- class SharedWorker : public AbstractWorker {
+ class SharedWorker : public AbstractWorker, public ScriptWrappable, public ActiveDOMObject {
public:
static PassRefPtr<SharedWorker> create(ScriptExecutionContext*, const String& url, const String& name, ExceptionCode&);
virtual ~SharedWorker();
@@ -44,6 +45,8 @@ namespace WebCore {
MessagePort* port() const { return m_port.get(); }
virtual const AtomicString& interfaceName() const OVERRIDE;
+ virtual void contextDestroyed() OVERRIDE;
+ virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE { return ActiveDOMObject::scriptExecutionContext(); }
private:
explicit SharedWorker(ScriptExecutionContext*);

Powered by Google App Engine
This is Rietveld 408576698