| Index: third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| index 9b772f99332c9d7d3f6f62d62aa7cbf1636122a2..2f4e1114c0ba29cfb07cc9e7614f698fd0a1c0ef 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| @@ -13,32 +13,36 @@
|
| #include "modules/ModulesExport.h"
|
| #include "platform/heap/Handle.h"
|
| #include "platform/heap/Heap.h"
|
| +#include "public/platform/modules/presentation/WebPresentationReceiver.h"
|
|
|
| namespace blink {
|
|
|
| class PresentationConnection;
|
| class PresentationConnectionList;
|
| +class WebPresentationClient;
|
| class WebPresentationConnectionClient;
|
|
|
| // Implements the PresentationReceiver interface from the Presentation API from
|
| // which websites can implement the receiving side of a presentation session.
|
| class MODULES_EXPORT PresentationReceiver final
|
| - : public GarbageCollected<PresentationReceiver>
|
| + : public GarbageCollectedFinalized<PresentationReceiver>
|
| , public ScriptWrappable
|
| - , public DOMWindowProperty {
|
| + , public DOMWindowProperty
|
| + , public WebPresentationReceiver {
|
| USING_GARBAGE_COLLECTED_MIXIN(PresentationReceiver);
|
| DEFINE_WRAPPERTYPEINFO();
|
| -
|
| - using ConnectionListProperty = ScriptPromiseProperty<Member<PresentationReceiver>, Member<PresentationConnectionList>, Member<DOMException>>;
|
| + using ConnectionListProperty = ScriptPromiseProperty<Member<PresentationReceiver>, Member<PresentationConnectionList>,
|
| + Member<DOMException>>;
|
|
|
| public:
|
| - explicit PresentationReceiver(LocalFrame*);
|
| + explicit PresentationReceiver(LocalFrame*, WebPresentationClient*);
|
| ~PresentationReceiver() = default;
|
|
|
| // PresentationReceiver.idl implementation
|
| ScriptPromise connectionList(ScriptState*);
|
|
|
| - void onConnectionReceived(WebPresentationConnectionClient*);
|
| + // Implementation of WebPresentationController.
|
| + void onReceiverConnectionAvailable(WebPresentationConnectionClient*) override;
|
| void registerConnection(PresentationConnection*);
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|