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 NavigatorPresentation_h | 5 #ifndef NavigatorPresentation_h |
6 #define NavigatorPresentation_h | 6 #define NavigatorPresentation_h |
7 | 7 |
8 #include "core/frame/DOMWindowProperty.h" | |
9 #include "platform/Supplementable.h" | 8 #include "platform/Supplementable.h" |
10 | 9 |
11 namespace blink { | 10 namespace blink { |
12 | 11 |
12 class LocalFrame; | |
mark a. foltz
2015/01/26 19:53:38
Forward declaration is not used
| |
13 class Navigator; | 13 class Navigator; |
14 class Presentation; | 14 class Presentation; |
15 | 15 |
16 class NavigatorPresentation final | 16 class NavigatorPresentation final |
17 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPresentation> | 17 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPresentation> |
18 , public WillBeHeapSupplement<Navigator> | 18 , public WillBeHeapSupplement<Navigator> { |
19 , public DOMWindowProperty { | |
20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation); | 19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation); |
21 public: | 20 public: |
22 virtual ~NavigatorPresentation(); | 21 virtual ~NavigatorPresentation(); |
23 | 22 |
24 static NavigatorPresentation& from(Navigator&); | 23 static NavigatorPresentation& from(Navigator&); |
25 static Presentation* presentation(Navigator&); | 24 static Presentation* presentation(Navigator&); |
26 | 25 |
27 virtual void trace(Visitor*) override; | 26 virtual void trace(Visitor*) override; |
28 | 27 |
29 private: | 28 private: |
30 static const char* supplementName(); | 29 static const char* supplementName(); |
31 | 30 |
32 explicit NavigatorPresentation(LocalFrame*); | 31 NavigatorPresentation(); |
33 | 32 |
34 Presentation* presentation(); | 33 Presentation* presentation(); |
35 | 34 |
36 PersistentWillBeMember<Presentation> m_presentation; | 35 PersistentWillBeMember<Presentation> m_presentation; |
37 }; | 36 }; |
38 | 37 |
39 } // namespace blink | 38 } // namespace blink |
40 | 39 |
41 #endif // NavigatorPresentation_h | 40 #endif // NavigatorPresentation_h |
OLD | NEW |