| Index: third_party/WebKit/Source/modules/presentation/PresentationRequest.h
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequest.h b/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
|
| index 6a15a0b858a3d9c688ed2970bd2cb3ed82755ff3..3b2c930b1e946b8dd2645c9244a3cdf851d4ce9c 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
|
| @@ -9,15 +9,17 @@
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| #include "core/dom/ActiveDOMObject.h"
|
| #include "core/events/EventTarget.h"
|
| +#include "modules/ModulesExport.h"
|
| #include "platform/heap/Handle.h"
|
| #include "platform/heap/Heap.h"
|
| #include "platform/weborigin/KURL.h"
|
| +#include "wtf/Vector.h"
|
|
|
| namespace blink {
|
|
|
| // Implements the PresentationRequest interface from the Presentation API from
|
| // which websites can start or join presentation connections.
|
| -class PresentationRequest final
|
| +class MODULES_EXPORT PresentationRequest final
|
| : public EventTargetWithInlineData
|
| , public ActiveScriptWrappable
|
| , public ActiveDOMObject {
|
| @@ -27,6 +29,7 @@ public:
|
| ~PresentationRequest() = default;
|
|
|
| static PresentationRequest* create(ExecutionContext*, const String& url, ExceptionState&);
|
| + static PresentationRequest* create(ExecutionContext*, const WTF::Vector<String>& urls, ExceptionState&);
|
|
|
| // EventTarget implementation.
|
| const AtomicString& interfaceName() const override;
|
| @@ -39,7 +42,7 @@ public:
|
| ScriptPromise reconnect(ScriptState*, const String& id);
|
| ScriptPromise getAvailability(ScriptState*);
|
|
|
| - const KURL& url() const;
|
| + const WTF::Vector<KURL>& urls() const;
|
|
|
| DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
|
|
|
| @@ -50,9 +53,9 @@ protected:
|
| void addedEventListener(const AtomicString& eventType, RegisteredEventListener&) override;
|
|
|
| private:
|
| - PresentationRequest(ExecutionContext*, const KURL&);
|
| + PresentationRequest(ExecutionContext*, const WTF::Vector<KURL>&);
|
|
|
| - KURL m_url;
|
| + WTF::Vector<KURL> m_urls;
|
| };
|
|
|
| } // namespace blink
|
|
|