| Index: content/renderer/presentation/presentation_connection_client.h
|
| diff --git a/content/renderer/presentation/presentation_connection_client.h b/content/renderer/presentation/presentation_connection_client.h
|
| index f8e0bac00034b04684557338fcb418b5edb9c314..f3537e1c1b41540ba66c301f0359637d7425edd2 100644
|
| --- a/content/renderer/presentation/presentation_connection_client.h
|
| +++ b/content/renderer/presentation/presentation_connection_client.h
|
| @@ -5,11 +5,14 @@
|
| #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_
|
| #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_
|
|
|
| +#include <memory>
|
| +
|
| #include "base/compiler_specific.h"
|
| #include "content/common/content_export.h"
|
| #include "third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionClient.h"
|
| #include "third_party/WebKit/public/platform/modules/presentation/presentation.mojom.h"
|
| -#include "url/gurl.h"
|
| +
|
| +class GURL;
|
|
|
| namespace content {
|
|
|
| @@ -20,17 +23,29 @@ class CONTENT_EXPORT PresentationConnectionClient
|
| public:
|
| explicit PresentationConnectionClient(
|
| blink::mojom::PresentationSessionInfoPtr session_info);
|
| - explicit PresentationConnectionClient(const GURL& url,
|
| - const mojo::String& id);
|
| +
|
| + // Creates a PresentationConnectionClient for a 1-UA presentation.
|
| + // |session_info|: contains presentation ID and URL info
|
| + // |proxy|: Proxy to blink PresentationConnection object in current render
|
| + // process. Ownership is passed to this class.
|
| + PresentationConnectionClient(
|
| + const GURL& url,
|
| + const mojo::String& id,
|
| + std::unique_ptr<blink::WebPresentationConnectionProxy> proxy);
|
| ~PresentationConnectionClient() override;
|
|
|
| // WebPresentationConnectionClient implementation.
|
| blink::WebURL getUrl() override;
|
| blink::WebString getId() override;
|
|
|
| + // Returns proxy passed into this class. Transfers ownership of returned proxy
|
| + // to caller.
|
| + std::unique_ptr<blink::WebPresentationConnectionProxy> takeProxy() override;
|
| +
|
| private:
|
| blink::WebURL url_;
|
| blink::WebString id_;
|
| + std::unique_ptr<blink::WebPresentationConnectionProxy> proxy_;
|
| };
|
|
|
| } // namespace content
|
|
|