| 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/Navigator.h" | 8 #include "core/frame/Navigator.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class Navigator; | 14 class Navigator; |
| 15 class Presentation; | 15 class Presentation; |
| 16 | 16 |
| 17 class NavigatorPresentation final | 17 class NavigatorPresentation final |
| 18 : public GarbageCollected<NavigatorPresentation>, | 18 : public GarbageCollected<NavigatorPresentation>, |
| 19 public Supplement<Navigator> { | 19 public Supplement<Navigator> { |
| 20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation); | 20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation); |
| 21 | 21 |
| 22 public: | 22 public: |
| 23 static NavigatorPresentation& from(Navigator&); | 23 static NavigatorPresentation& from(Navigator&); |
| 24 static Presentation* presentation(Navigator&); | 24 static Presentation* presentation(Navigator&); |
| 25 | 25 |
| 26 DECLARE_VIRTUAL_TRACE(); | 26 DECLARE_VIRTUAL_TRACE(); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 NavigatorPresentation(); | 29 explicit NavigatorPresentation(Navigator&); |
| 30 | 30 |
| 31 static const char* supplementName(); | 31 static const char* supplementName(); |
| 32 Presentation* presentation(); | 32 Presentation* presentation(); |
| 33 | 33 |
| 34 Member<Presentation> m_presentation; | 34 Member<Presentation> m_presentation; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace blink | 37 } // namespace blink |
| 38 | 38 |
| 39 #endif // NavigatorPresentation_h | 39 #endif // NavigatorPresentation_h |
| OLD | NEW |