| 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/frame/DOMWindowLifecycleObserver.h" | 8 #include "core/frame/DOMWindowLifecycleObserver.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class Document; | 14 class Document; |
| 15 class Event; | 15 class Event; |
| 16 | 16 |
| 17 class DOMWindowStorageController : public NoBaseWillBeGarbageCollectedFinalized<
DOMWindowStorageController>, public WillBeHeapSupplement<Document>, public DOMWi
ndowLifecycleObserver { | 17 class DOMWindowStorageController final : public NoBaseWillBeGarbageCollectedFina
lized<DOMWindowStorageController>, public WillBeHeapSupplement<Document>, public
DOMWindowLifecycleObserver { |
| 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowStorageController); | 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowStorageController); |
| 19 public: | 19 public: |
| 20 virtual ~DOMWindowStorageController(); | 20 virtual ~DOMWindowStorageController(); |
| 21 virtual void trace(Visitor*); |
| 21 | 22 |
| 22 static const char* supplementName(); | 23 static const char* supplementName(); |
| 23 static DOMWindowStorageController& from(Document&); | 24 static DOMWindowStorageController& from(Document&); |
| 24 | 25 |
| 25 // Inherited from DOMWindowLifecycleObserver | 26 // Inherited from DOMWindowLifecycleObserver |
| 26 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) overr
ide; | 27 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) overr
ide; |
| 27 | 28 |
| 28 protected: | 29 protected: |
| 29 explicit DOMWindowStorageController(Document&); | 30 explicit DOMWindowStorageController(Document&); |
| 30 | 31 |
| 31 private: | 32 private: |
| 32 Document& document() const { return *m_document; } | 33 Document& document() const { return *m_document; } |
| 33 | 34 |
| 34 RawPtrWillBeMember<Document> m_document; | 35 RawPtrWillBeMember<Document> m_document; |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 } // namespace blink | 38 } // namespace blink |
| 38 | 39 |
| 39 #endif // DOMWindowStorageController_h | 40 #endif // DOMWindowStorageController_h |
| OLD | NEW |