| Index: Source/modules/serviceworkers/NavigatorServiceWorker.h
|
| diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.h b/Source/modules/serviceworkers/NavigatorServiceWorker.h
|
| index b1a2e4e49489a417a37c0c6a7883eacbbb27e4ef..57f114def8015809f4b2641bd9af728c367d9b7b 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&);
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| private:
|
| explicit NavigatorServiceWorker(Navigator&);
|
| ServiceWorkerContainer* serviceWorker(ExecutionContext*);
|
|
|