OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef DurableStorageController_h |
| 6 #define DurableStorageController_h |
| 7 |
| 8 #include "core/frame/LocalFrameLifecycleObserver.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/Supplementable.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class WebDurableStorageDispatcher; |
| 15 |
| 16 class MODULES_EXPORT DurableStorageController final |
| 17 : public NoBaseWillBeGarbageCollectedFinalized<DurableStorageController> |
| 18 , public WillBeHeapSupplement<LocalFrame> |
| 19 , public LocalFrameLifecycleObserver { |
| 20 WTF_MAKE_NONCOPYABLE(DurableStorageController); |
| 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DurableStorageController); |
| 22 public: |
| 23 virtual ~DurableStorageController(); |
| 24 |
| 25 static void provideTo(LocalFrame&, WebDurableStorageDispatcher*); |
| 26 static DurableStorageController* from(LocalFrame&); |
| 27 static const char* supplementName(); |
| 28 |
| 29 WebDurableStorageDispatcher* client() const; |
| 30 |
| 31 DECLARE_VIRTUAL_TRACE(); |
| 32 |
| 33 private: |
| 34 DurableStorageController(LocalFrame&, WebDurableStorageDispatcher*); |
| 35 |
| 36 // Inherited from LocalFrameLifecycleObserver. |
| 37 virtual void willDetachFrameHost() override; |
| 38 |
| 39 WebDurableStorageDispatcher* m_client; |
| 40 }; |
| 41 |
| 42 } // namespace blink |
| 43 |
| 44 #endif // DurableStorageController_h |
OLD | NEW |