Chromium Code Reviews| Index: Source/modules/serviceworkers/NavigatorServiceWorker.h |
| diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.h b/Source/modules/serviceworkers/NavigatorServiceWorker.h |
| index b1a2e4e49489a417a37c0c6a7883eacbbb27e4ef..023afd249b189795a8c3b9f268e91b00ebc55f96 100644 |
| --- a/Source/modules/serviceworkers/NavigatorServiceWorker.h |
| +++ b/Source/modules/serviceworkers/NavigatorServiceWorker.h |
| @@ -7,6 +7,7 @@ |
| #include "bindings/v8/ScriptPromise.h" |
| #include "core/frame/Navigator.h" |
| +#include "heap/Handle.h" |
| #include "platform/Supplementable.h" |
| namespace WebCore { |
| @@ -14,15 +15,18 @@ namespace WebCore { |
| class Navigator; |
| class ServiceWorkerContainer; |
| -class NavigatorServiceWorker FINAL : public Supplement<Navigator>, DOMWindowProperty { |
| +class NavigatorServiceWorker FINAL : public NoBaseWillBeGarbageCollectedFinalized<NavigatorServiceWorker>, public WillBeHeapSupplement<Navigator>, DOMWindowProperty { |
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorServiceWorker); |
| public: |
| virtual ~NavigatorServiceWorker(); |
| static NavigatorServiceWorker& from(Navigator&); |
| - static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator& navigator) { return static_cast<NavigatorServiceWorker*>(Supplement<Navigator>::from(navigator, supplementName())); } |
| + static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator&); |
| static const char* supplementName(); |
| static ServiceWorkerContainer* serviceWorker(ExecutionContext*, Navigator&); |
| + virtual void trace(Visitor*) { } |
|
haraken
2014/03/19 04:02:36
Drop virtual.
|
| + |
| private: |
| explicit NavigatorServiceWorker(Navigator&); |
| ServiceWorkerContainer* serviceWorker(ExecutionContext*); |