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

Unified Diff: Source/modules/notifications/DOMWindowNotifications.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/DOMWindowNotifications.h
diff --git a/Source/modules/notifications/DOMWindowNotifications.h b/Source/modules/notifications/DOMWindowNotifications.h
index 255a792386e0a369f5d714acbad2a7cfff3dc20a..f9a19f23ed33321050338420f6cfdefa5f65e609 100644
--- a/Source/modules/notifications/DOMWindowNotifications.h
+++ b/Source/modules/notifications/DOMWindowNotifications.h
@@ -43,19 +43,19 @@ class DOMWindowNotifications FINAL : public Supplement<DOMWindow>, public DOMWin
public:
virtual ~DOMWindowNotifications();
- static NotificationCenter* webkitNotifications(DOMWindow*);
- static DOMWindowNotifications* from(DOMWindow*);
+ static NotificationCenter* webkitNotifications(DOMWindow&);
+ static DOMWindowNotifications& from(DOMWindow&);
virtual void willDestroyGlobalObjectInFrame() OVERRIDE;
virtual void willDetachGlobalObjectFromFrame() OVERRIDE;
private:
- explicit DOMWindowNotifications(DOMWindow*);
+ explicit DOMWindowNotifications(DOMWindow&);
NotificationCenter* webkitNotifications();
static const char* supplementName();
- DOMWindow* m_window;
+ DOMWindow& m_window;
RefPtrWillBePersistent<NotificationCenter> m_notificationCenter;
};

Powered by Google App Engine
This is Rietveld 408576698