blob: 024e72418d4923da6eadfe9cda5f3d3fae0d2b02 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DOMWindowStorageController_h
#define DOMWindowStorageController_h
#include "core/dom/Document.h"
#include "core/frame/DOMWindowLifecycleObserver.h"
#include "modules/ModulesExport.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
namespace blink {
class Document;
class Event;
class MODULES_EXPORT DOMWindowStorageController final : public GarbageCollected<DOMWindowStorageController>, public Supplement<Document>, public DOMWindowLifecycleObserver {
USING_GARBAGE_COLLECTED_MIXIN(DOMWindowStorageController);
public:
DECLARE_VIRTUAL_TRACE();
static const char* supplementName();
static DOMWindowStorageController& from(Document&);
// Inherited from DOMWindowLifecycleObserver
void didAddEventListener(LocalDOMWindow*, const AtomicString&) override;
protected:
explicit DOMWindowStorageController(Document&);
private:
Document& document() const { return *m_document; }
Member<Document> m_document;
};
} // namespace blink
#endif // DOMWindowStorageController_h