Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.h

Issue 2148643002: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayoutTests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.h b/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.h
index 4f32eec04459f91f6e7f11b5cc736b9b7b7c3a08..cefee06dc5967e68291eb294334793c3ea754256 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationAvailabilityCallbacks.h
@@ -9,6 +9,7 @@
#include "platform/weborigin/KURL.h"
#include "public/platform/WebCallbacks.h"
#include "wtf/Noncopyable.h"
+#include "wtf/Vector.h"
namespace blink {
@@ -17,10 +18,10 @@ struct WebPresentationError;
// PresentationAvailabilityCallback extends WebCallbacks to resolve the
// underlying promise depending on the result passed to the callback. It takes a
-// KURL in its constructor and will pass it to the WebAvailabilityObserver.
+// WTF::Vector<KURL> in its constructor and will pass it to the WebAvailabilityObserver.
class PresentationAvailabilityCallbacks final : public WebCallbacks<bool, const WebPresentationError&> {
public:
- PresentationAvailabilityCallbacks(ScriptPromiseResolver*, const KURL&);
+ PresentationAvailabilityCallbacks(ScriptPromiseResolver*, const WTF::Vector<KURL>&);
~PresentationAvailabilityCallbacks() override;
void onSuccess(bool value) override;
@@ -28,7 +29,7 @@ public:
private:
Persistent<ScriptPromiseResolver> m_resolver;
- const KURL m_url;
+ const WTF::Vector<KURL> m_urls;
WTF_MAKE_NONCOPYABLE(PresentationAvailabilityCallbacks);
};

Powered by Google App Engine
This is Rietveld 408576698