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

Unified Diff: Source/modules/indexeddb/DOMWindowIndexedDatabase.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/indexeddb/DOMWindowIndexedDatabase.h
diff --git a/Source/modules/indexeddb/DOMWindowIndexedDatabase.h b/Source/modules/indexeddb/DOMWindowIndexedDatabase.h
index 8a68aee1077e99613f7fac45109929dc1d04a132..ebec8a4e78b17274b496c007db1b154afa158fcc 100644
--- a/Source/modules/indexeddb/DOMWindowIndexedDatabase.h
+++ b/Source/modules/indexeddb/DOMWindowIndexedDatabase.h
@@ -38,20 +38,20 @@ class DOMWindow;
class DOMWindowIndexedDatabase FINAL : public DOMWindowProperty, public Supplement<DOMWindow> {
public:
virtual ~DOMWindowIndexedDatabase();
- static DOMWindowIndexedDatabase* from(DOMWindow*);
+ static DOMWindowIndexedDatabase& from(DOMWindow&);
- static IDBFactory* indexedDB(DOMWindow*);
+ static IDBFactory* indexedDB(DOMWindow&);
virtual void willDestroyGlobalObjectInFrame() OVERRIDE;
virtual void willDetachGlobalObjectFromFrame() OVERRIDE;
private:
- explicit DOMWindowIndexedDatabase(DOMWindow*);
+ explicit DOMWindowIndexedDatabase(DOMWindow&);
IDBFactory* indexedDB();
static const char* supplementName();
- DOMWindow* m_window;
+ DOMWindow& m_window;
RefPtr<IDBFactory> m_idbFactory;
};

Powered by Google App Engine
This is Rietveld 408576698