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

Side by Side Diff: third_party/WebKit/Source/modules/storage/DOMWindowStorageController.h

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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 GarbageCollected< DOMWindowStorageController>, public HeapSupplement<Document>, public DOMWindowLi fecycleObserver { 19 class MODULES_EXPORT DOMWindowStorageController final : public GarbageCollected< DOMWindowStorageController>, public Supplement<Document>, public DOMWindowLifecy cleObserver {
20 USING_GARBAGE_COLLECTED_MIXIN(DOMWindowStorageController); 20 USING_GARBAGE_COLLECTED_MIXIN(DOMWindowStorageController);
21 public: 21 public:
22 DECLARE_VIRTUAL_TRACE(); 22 DECLARE_VIRTUAL_TRACE();
23 23
24 static const char* supplementName(); 24 static const char* supplementName();
25 static DOMWindowStorageController& from(Document&); 25 static DOMWindowStorageController& from(Document&);
26 26
27 // Inherited from DOMWindowLifecycleObserver 27 // Inherited from DOMWindowLifecycleObserver
28 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; 28 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override;
29 29
30 protected: 30 protected:
31 explicit DOMWindowStorageController(Document&); 31 explicit DOMWindowStorageController(Document&);
32 32
33 private: 33 private:
34 Document& document() const { return *m_document; } 34 Document& document() const { return *m_document; }
35 35
36 Member<Document> m_document; 36 Member<Document> m_document;
37 }; 37 };
38 38
39 } // namespace blink 39 } // namespace blink
40 40
41 #endif // DOMWindowStorageController_h 41 #endif // DOMWindowStorageController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698