Index: Source/modules/serviceworkers/NavigatorServiceWorker.h |
diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.h b/Source/modules/serviceworkers/NavigatorServiceWorker.h |
index a1249e2c07815a250909b4f439ce75d9aae86018..67ac96503c467f32cde894fddbbc2aa5be65327f 100644 |
--- a/Source/modules/serviceworkers/NavigatorServiceWorker.h |
+++ b/Source/modules/serviceworkers/NavigatorServiceWorker.h |
@@ -17,14 +17,14 @@ class ServiceWorkerContainer; |
class NavigatorServiceWorker FINAL : public Supplement<Navigator>, DOMWindowProperty { |
public: |
virtual ~NavigatorServiceWorker(); |
- static NavigatorServiceWorker* from(Navigator*); |
- static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator* navigator) { return static_cast<NavigatorServiceWorker*>(Supplement<Navigator>::from(navigator, supplementName())); } |
+ static NavigatorServiceWorker& from(Navigator&); |
+ static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator& navigator) { return static_cast<NavigatorServiceWorker*>(Supplement<Navigator>::from(navigator, supplementName())); } |
static const char* supplementName(); |
- static ServiceWorkerContainer* serviceWorker(Navigator*); |
+ static ServiceWorkerContainer* serviceWorker(Navigator&); |
private: |
- explicit NavigatorServiceWorker(Navigator*); |
+ explicit NavigatorServiceWorker(Navigator&); |
ServiceWorkerContainer* serviceWorker(); |
RefPtr<ServiceWorkerContainer> m_serviceWorker; |