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

Unified Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h

Issue 2174693004: [Presentation API] Add support to content/ for multiple URLs per PresentationRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update service, dispatcher to use Mojo URLs. Created 4 years, 4 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/public/platform/modules/presentation/WebPresentationClient.h
diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h
index b0bae336331a1a5cf3e5c9fa44bb850d08ba1419..7bef4b373bcebf04ad6e85b20e0cfa33fbc2c77c 100644
--- a/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h
+++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h
@@ -17,6 +17,8 @@ class WebPresentationController;
class WebPresentationConnectionClient;
class WebString;
struct WebPresentationError;
+template <typename T>
+class WebVector;
// If session was created, callback's onSuccess() is invoked with the information about the
// presentation session created by the embedder. Otherwise, onError() is invoked with the error code
@@ -36,11 +38,11 @@ public:
// Called when the frame requests to start a new session.
// The ownership of the |callbacks| argument is transferred to the embedder.
- virtual void startSession(const WebString& presentationUrl, WebPresentationConnectionClientCallbacks*) = 0;
+ virtual void startSession(const WebVector<WebString>& presentationUrls, WebPresentationConnectionClientCallbacks*) = 0;
dcheng 2016/08/24 22:14:19 These should be WebURLs as well, no?
mark a. foltz 2016/08/24 22:37:11 We have dozens of files/APIs that need to be chang
dcheng 2016/08/24 23:12:17 Can someone commit to doing this in an immediate f
mark a. foltz 2016/08/29 23:54:54 Added TODO for WebString -> WebURL conversion.
// Called when the frame requests to join an existing session.
// The ownership of the |callbacks| argument is transferred to the embedder.
- virtual void joinSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationConnectionClientCallbacks*) = 0;
+ virtual void joinSession(const WebVector<WebString>& presentationUrls, const WebString& presentationId, WebPresentationConnectionClientCallbacks*) = 0;
// Called when the frame requests to send String message to an existing session.
virtual void sendString(const WebString& presentationUrl, const WebString& presentationId, const WebString& message) = 0;
@@ -75,7 +77,7 @@ public:
// Called when a defaultRequest has been set. It sends the url associated
// with it for the embedder.
- virtual void setDefaultPresentationUrl(const WebString&) = 0;
+ virtual void setDefaultPresentationUrls(const WebVector<WebString>&) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698