| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PresentationController_h | 5 #ifndef PresentationController_h |
| 6 #define PresentationController_h | 6 #define PresentationController_h |
| 7 | 7 |
| 8 #include "core/frame/DOMWindowProperty.h" | 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 11 #include "modules/presentation/Presentation.h" | 11 #include "modules/presentation/Presentation.h" |
| 12 #include "modules/presentation/PresentationRequest.h" | 12 #include "modules/presentation/PresentationRequest.h" |
| 13 #include "platform/Supplementable.h" | 13 #include "platform/Supplementable.h" |
| 14 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
| 15 #include "public/platform/modules/presentation/WebPresentationClient.h" | 15 #include "public/platform/modules/presentation/WebPresentationClient.h" |
| 16 #include "public/platform/modules/presentation/WebPresentationController.h" | 16 #include "public/platform/modules/presentation/WebPresentationController.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class PresentationConnection; | 20 class PresentationConnection; |
| 21 class WebPresentationAvailabilityCallback; | |
| 22 class WebPresentationConnectionClient; | 21 class WebPresentationConnectionClient; |
| 23 enum class WebPresentationConnectionCloseReason; | 22 enum class WebPresentationConnectionCloseReason; |
| 24 enum class WebPresentationConnectionState; | 23 enum class WebPresentationConnectionState; |
| 25 | 24 |
| 26 // The coordinator between the various page exposed properties and the content | 25 // The coordinator between the various page exposed properties and the content |
| 27 // layer represented via |WebPresentationClient|. | 26 // layer represented via |WebPresentationClient|. |
| 28 class MODULES_EXPORT PresentationController final | 27 class MODULES_EXPORT PresentationController final |
| 29 : public GarbageCollectedFinalized<PresentationController>, | 28 : public GarbageCollectedFinalized<PresentationController>, |
| 30 public Supplement<LocalFrame>, | 29 public Supplement<LocalFrame>, |
| 31 public DOMWindowProperty, | 30 public DOMWindowProperty, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // The presentation connections associated with that frame. | 96 // The presentation connections associated with that frame. |
| 98 // TODO(mlamouri): the PresentationController will keep any created | 97 // TODO(mlamouri): the PresentationController will keep any created |
| 99 // connections alive until the frame is detached. These should be weak ptr | 98 // connections alive until the frame is detached. These should be weak ptr |
| 100 // so that the connection can be GC'd. | 99 // so that the connection can be GC'd. |
| 101 HeapHashSet<Member<PresentationConnection>> m_connections; | 100 HeapHashSet<Member<PresentationConnection>> m_connections; |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 } // namespace blink | 103 } // namespace blink |
| 105 | 104 |
| 106 #endif // PresentationController_h | 105 #endif // PresentationController_h |
| OLD | NEW |