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
3 // found in the LICENSE file.
5 #ifndef NavigatorPresentation_h
6 #define NavigatorPresentation_h
8 #include "core/frame/DOMWindowProperty.h"
9 #include "platform/Supplementable.h"
16 class NavigatorPresentation final
17 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPresentation>
18 , public WillBeHeapSupplement<Navigator>
19 , public DOMWindowProperty {
20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation);
22 virtual ~NavigatorPresentation();
24 static NavigatorPresentation& from(Navigator&);
25 static Presentation* presentation(Navigator&);
27 virtual void trace(Visitor*) override;
30 static const char* supplementName();
32 explicit NavigatorPresentation(LocalFrame*);
34 Presentation* presentation();
36 PersistentWillBeMember<Presentation> m_presentation;
41 #endif // NavigatorPresentation_h