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

Unified Diff: chrome/browser/media/router/create_presentation_connection_request.h

Issue 2547703002: [Media Router] Handle multiple Presentation URLs when creating routes (Closed)
Patch Set: fix unittests Created 4 years 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: chrome/browser/media/router/create_presentation_connection_request.h
diff --git a/chrome/browser/media/router/create_presentation_connection_request.h b/chrome/browser/media/router/create_presentation_connection_request.h
index 9dd9c037e198600e3c1df1a357ef043f47736e60..41e5da492c4e8bbbb24c28792129c8df67260055 100644
--- a/chrome/browser/media/router/create_presentation_connection_request.h
+++ b/chrome/browser/media/router/create_presentation_connection_request.h
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
+#include <vector>
#include "base/macros.h"
#include "chrome/browser/media/router/media_route.h"
@@ -46,7 +47,7 @@ class CreatePresentationConnectionRequest {
// |erorr_cb|: Callback to invoke when the request fails. Must be valid.
CreatePresentationConnectionRequest(
const RenderFrameHostId& render_frame_host_id,
- const GURL& presentation_url,
+ const std::vector<GURL>& presentation_urls,
const GURL& frame_url,
const PresentationSessionSuccessCallback& success_cb,
const PresentationSessionErrorCallback& error_cb);
@@ -60,6 +61,7 @@ class CreatePresentationConnectionRequest {
// These functions can only be invoked once per instance. It is an error
// to invoke these functions more than once.
void InvokeSuccessCallback(const std::string& presentation_id,
+ const GURL& presentation_url,
const MediaRoute& route);
void InvokeErrorCallback(const content::PresentationError& error);

Powered by Google App Engine
This is Rietveld 408576698