| 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 5404c175de86e8d1d5fac72c5da7040e6ffca071..6f14ef00227d9f307860157537d7553871ee032c 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.h
|
| @@ -9,17 +9,20 @@
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| #include "core/dom/SuspendableObject.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 : public EventTargetWithInlineData,
|
| - public ActiveScriptWrappable,
|
| - public SuspendableObject {
|
| +class MODULES_EXPORT PresentationRequest final
|
| + : public EventTargetWithInlineData,
|
| + public ActiveScriptWrappable,
|
| + public SuspendableObject {
|
| USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest);
|
| DEFINE_WRAPPERTYPEINFO();
|
|
|
| @@ -29,6 +32,9 @@ class PresentationRequest final : public EventTargetWithInlineData,
|
| 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;
|
| @@ -41,7 +47,7 @@ class PresentationRequest final : public EventTargetWithInlineData,
|
| ScriptPromise reconnect(ScriptState*, const String& id);
|
| ScriptPromise getAvailability(ScriptState*);
|
|
|
| - const KURL& url() const;
|
| + const WTF::Vector<KURL>& urls() const;
|
|
|
| DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
|
|
|
| @@ -53,9 +59,9 @@ class PresentationRequest final : public EventTargetWithInlineData,
|
| RegisteredEventListener&) override;
|
|
|
| private:
|
| - PresentationRequest(ExecutionContext*, const KURL&);
|
| + PresentationRequest(ExecutionContext*, const WTF::Vector<KURL>&);
|
|
|
| - KURL m_url;
|
| + WTF::Vector<KURL> m_urls;
|
| };
|
|
|
| } // namespace blink
|
|
|