Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef NavigatorPresentation_h | |
| 6 #define NavigatorPresentation_h | |
| 7 | |
| 8 #include "core/frame/DOMWindowProperty.h" | |
| 9 #include "modules/presentation/Presentation.h" | |
| 10 #include "platform/Supplementable.h" | |
| 11 | |
| 12 namespace WebCore { | |
|
Peter Beverloo
2014/07/19 10:16:12
nit: s/WebCore/blink/
Elsewhere too, we switched
whywhat
2014/07/23 00:39:25
Done.
| |
| 13 | |
| 14 class Navigator; | |
| 15 class Presentation; | |
| 16 | |
| 17 class NavigatorPresentation FINAL | |
| 18 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPresentation> | |
|
Peter Beverloo
2014/07/19 10:16:12
No need to use the Oilpan transitional types, you
whywhat
2014/07/23 00:39:26
It seems like I have to use WillBeHeapSupplement w
| |
| 19 , public WillBeHeapSupplement<Navigator> | |
| 20 , public DOMWindowProperty { | |
| 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation); | |
| 22 public: | |
| 23 virtual ~NavigatorPresentation(); | |
| 24 | |
| 25 static NavigatorPresentation& from(Navigator&); | |
| 26 static Presentation* presentation(Navigator&); | |
| 27 | |
| 28 Presentation* presentation() const; | |
|
Peter Beverloo
2014/07/19 10:16:12
You could also make this private since there are n
Peter Beverloo
2014/07/19 10:16:12
nit: This shouldn't be |const| since it can modify
whywhat
2014/07/23 00:39:25
Done.
whywhat
2014/07/23 00:39:26
Done.
| |
| 29 | |
| 30 void trace(Visitor*); | |
|
Peter Beverloo
2014/07/19 10:16:12
virtual void trace(Visitor*) OVERRIDE;
whywhat
2014/07/23 00:39:25
Done.
| |
| 31 | |
| 32 private: | |
| 33 static const char* supplementName(); | |
| 34 | |
| 35 NavigatorPresentation(LocalFrame*); | |
| 36 | |
| 37 mutable PersistentWillBeMember<Presentation> m_presentation; | |
| 38 }; | |
| 39 | |
| 40 } // namespace WebCore | |
| 41 | |
| 42 #endif // Presentation_h | |
|
Peter Beverloo
2014/07/19 10:16:12
nit: NavigatorPresentation_h
whywhat
2014/07/23 00:39:26
Done.
| |
| OLD | NEW |