| 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..afa24eadac52210172f81f9f148b3020c3ea6970 100644
|
| --- a/content/renderer/presentation/presentation_connection_client.cc
|
| +++ b/content/renderer/presentation/presentation_connection_client.cc
|
| @@ -21,6 +21,13 @@ PresentationConnectionClient::PresentationConnectionClient(
|
| : url_(url),
|
| id_(blink::WebString::fromUTF8(id)) {}
|
|
|
| +PresentationConnectionClient::PresentationConnectionClient(
|
| + blink::mojom::PresentationSessionInfoPtr session_info,
|
| + blink::WebPresentationConnectionProxy* proxy)
|
| + : url_(session_info->url),
|
| + id_(blink::WebString::fromUTF8(session_info->id)),
|
| + proxy_(proxy) {}
|
| +
|
| PresentationConnectionClient::~PresentationConnectionClient() {
|
| }
|
|
|
| @@ -32,4 +39,11 @@ blink::WebString PresentationConnectionClient::getId() {
|
| return id_;
|
| }
|
|
|
| +blink::WebPresentationConnectionProxy*
|
| +PresentationConnectionClient::getOrCreateProxy() {
|
| + if (!proxy_)
|
| + proxy_ = new RendererPresentationConnection();
|
| + return proxy_;
|
| +}
|
| +
|
| } // namespace content
|
|
|