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

Unified Diff: Source/modules/serviceworkers/NavigatorServiceWorker.h

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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/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;

Powered by Google App Engine
This is Rietveld 408576698