| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ | 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/presentation/presentation_service.mojom.h" | |
| 11 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nConnectionClient.h" | 10 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nConnectionClient.h" |
| 11 #include "third_party/WebKit/public/platform/modules/presentation/presentation.m
ojom.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 // PresentationConnectionClient is passed to the Blink layer if presentation | 15 // PresentationConnectionClient is passed to the Blink layer if presentation |
| 16 // session has been created successfully. Owned by the callback. | 16 // session has been created successfully. Owned by the callback. |
| 17 class CONTENT_EXPORT PresentationConnectionClient | 17 class CONTENT_EXPORT PresentationConnectionClient |
| 18 : public NON_EXPORTED_BASE(blink::WebPresentationConnectionClient) { | 18 : public NON_EXPORTED_BASE(blink::WebPresentationConnectionClient) { |
| 19 public: | 19 public: |
| 20 explicit PresentationConnectionClient( | 20 explicit PresentationConnectionClient( |
| 21 mojom::PresentationSessionInfoPtr session_info); | 21 blink::mojom::PresentationSessionInfoPtr session_info); |
| 22 explicit PresentationConnectionClient(const mojo::String& url, | 22 explicit PresentationConnectionClient(const mojo::String& url, |
| 23 const mojo::String& id); | 23 const mojo::String& id); |
| 24 ~PresentationConnectionClient() override; | 24 ~PresentationConnectionClient() override; |
| 25 | 25 |
| 26 // WebPresentationConnectionClient implementation. | 26 // WebPresentationConnectionClient implementation. |
| 27 blink::WebString getUrl() override; | 27 blink::WebString getUrl() override; |
| 28 blink::WebString getId() override; | 28 blink::WebString getId() override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 blink::WebString url_; | 31 blink::WebString url_; |
| 32 blink::WebString id_; | 32 blink::WebString id_; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace content | 35 } // namespace content |
| 36 | 36 |
| 37 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ | 37 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |
| OLD | NEW |