OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DOMWindowStorageController_h | 5 #ifndef DOMWindowStorageController_h |
6 #define DOMWindowStorageController_h | 6 #define DOMWindowStorageController_h |
7 | 7 |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/frame/LocalDOMWindow.h" | 9 #include "core/frame/LocalDOMWindow.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 DECLARE_VIRTUAL_TRACE(); | 25 DECLARE_VIRTUAL_TRACE(); |
26 | 26 |
27 static const char* supplementName(); | 27 static const char* supplementName(); |
28 static DOMWindowStorageController& from(Document&); | 28 static DOMWindowStorageController& from(Document&); |
29 | 29 |
30 // Inherited from LocalDOMWindow::EventListenerObserver | 30 // Inherited from LocalDOMWindow::EventListenerObserver |
31 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; | 31 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; |
32 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override {} | 32 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override {} |
33 void didRemoveAllEventListeners(LocalDOMWindow*) override {} | 33 void didRemoveAllEventListeners(LocalDOMWindow*) override {} |
34 | 34 |
35 protected: | 35 private: |
36 explicit DOMWindowStorageController(Document&); | 36 explicit DOMWindowStorageController(Document&); |
37 | |
38 private: | |
39 Document& document() const { return *m_document; } | |
40 | |
41 Member<Document> m_document; | |
42 }; | 37 }; |
43 | 38 |
44 } // namespace blink | 39 } // namespace blink |
45 | 40 |
46 #endif // DOMWindowStorageController_h | 41 #endif // DOMWindowStorageController_h |
OLD | NEW |