Index: content/renderer/presentation/presentation_connection_client.cc |
diff --git a/content/renderer/presentation/presentation_connection_client.cc b/content/renderer/presentation/presentation_connection_client.cc |
index 145e08db32eae6ee210458173ec1056bca86b954..50d5d68d920c866c152b8e7275c65d311e5fd5a6 100644 |
--- a/content/renderer/presentation/presentation_connection_client.cc |
+++ b/content/renderer/presentation/presentation_connection_client.cc |
@@ -7,19 +7,23 @@ |
#include "base/logging.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/WebURL.h" |
+#include "third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionProxy.h" |
namespace content { |
PresentationConnectionClient::PresentationConnectionClient( |
blink::mojom::PresentationSessionInfoPtr session_info) |
- : url_(session_info->url), |
- id_(blink::WebString::fromUTF8(session_info->id)) {} |
+ : PresentationConnectionClient(session_info->url, |
+ session_info->id, |
+ nullptr) {} |
PresentationConnectionClient::PresentationConnectionClient( |
const GURL& url, |
- const mojo::String& id) |
+ const mojo::String& id, |
+ std::unique_ptr<blink::WebPresentationConnectionProxy> proxy) |
: url_(url), |
- id_(blink::WebString::fromUTF8(id)) {} |
+ id_(blink::WebString::fromUTF8(id)), |
+ proxy_(std::move(proxy)) {} |
PresentationConnectionClient::~PresentationConnectionClient() { |
} |
@@ -32,4 +36,9 @@ blink::WebString PresentationConnectionClient::getId() { |
return id_; |
} |
+std::unique_ptr<blink::WebPresentationConnectionProxy> |
+PresentationConnectionClient::takeProxy() { |
+ return std::move(proxy_); |
+} |
+ |
} // namespace content |