Chromium Code Reviews| 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/DOMWindowLifecycleObserver.h" | 9 #include "core/frame/DOMWindowLifecycleObserver.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 11 #include "platform/Supplementable.h" | 11 #include "platform/Supplementable.h" |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class Document; | 16 class Document; |
| 17 class Event; | 17 class Event; |
| 18 | 18 |
| 19 class MODULES_EXPORT DOMWindowStorageController final : public NoBaseWillBeGarba geCollectedFinalized<DOMWindowStorageController>, public WillBeHeapSupplement<Do cument>, public DOMWindowLifecycleObserver { | 19 class MODULES_EXPORT DOMWindowStorageController final : public NoBaseWillBeGarba geCollected<DOMWindowStorageController>, public WillBeHeapSupplement<Document>, public DOMWindowLifecycleObserver { |
| 20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowStorageController); | 20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowStorageController); |
| 21 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowStorageController) ; | |
| 21 public: | 22 public: |
| 22 virtual ~DOMWindowStorageController(); | |
| 23 DECLARE_VIRTUAL_TRACE(); | 23 DECLARE_VIRTUAL_TRACE(); |
| 24 | 24 |
| 25 static const char* supplementName(); | 25 static const char* supplementName(); |
| 26 static DOMWindowStorageController& from(Document&); | 26 static DOMWindowStorageController& from(Document&); |
| 27 | 27 |
| 28 // Inherited from DOMWindowLifecycleObserver | 28 // Inherited from DOMWindowLifecycleObserver |
| 29 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) overr ide; | 29 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) overr ide; |
| 30 | 30 |
| 31 protected: | 31 protected: |
| 32 explicit DOMWindowStorageController(Document&); | 32 explicit DOMWindowStorageController(Document&); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 Document& document() const { return *m_document; } | 35 Document& document() const { return *m_document; } |
| 36 | 36 |
| 37 RawPtrWillBeMember<Document> m_document; | 37 RawPtrWillBeMember<Document> m_document; |
|
haraken
2015/04/26 08:55:36
Ditto.
| |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace blink | 40 } // namespace blink |
| 41 | 41 |
| 42 #endif // DOMWindowStorageController_h | 42 #endif // DOMWindowStorageController_h |
| OLD | NEW |