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

Unified Diff: Source/modules/notifications/WorkerGlobalScopeNotifications.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/notifications/WorkerGlobalScopeNotifications.h
diff --git a/Source/modules/notifications/WorkerGlobalScopeNotifications.h b/Source/modules/notifications/WorkerGlobalScopeNotifications.h
index a369071c3e9ae8bc967d7572c7838a41ee3e2f93..d62d35887a0876ac7400714dfeb7fdb3d85885a1 100644
--- a/Source/modules/notifications/WorkerGlobalScopeNotifications.h
+++ b/Source/modules/notifications/WorkerGlobalScopeNotifications.h
@@ -42,16 +42,16 @@ class WorkerGlobalScopeNotifications FINAL : public WorkerSupplement {
public:
virtual ~WorkerGlobalScopeNotifications();
- static NotificationCenter* webkitNotifications(WorkerGlobalScope*);
- static WorkerGlobalScopeNotifications* from(WorkerGlobalScope*);
+ static NotificationCenter* webkitNotifications(WorkerGlobalScope&);
+ static WorkerGlobalScopeNotifications& from(WorkerGlobalScope&);
private:
- explicit WorkerGlobalScopeNotifications(WorkerGlobalScope*);
+ explicit WorkerGlobalScopeNotifications(WorkerGlobalScope&);
NotificationCenter* webkitNotifications();
static const char* supplementName();
- WorkerGlobalScope* m_context;
+ WorkerGlobalScope& m_context;
RefPtrWillBePersistent<NotificationCenter> m_notificationCenter;
};

Powered by Google App Engine
This is Rietveld 408576698