Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / content / renderer / presentation / presentation_session_client.h
blob3f2bb20216d1a7bd125438f31d1e0cb6d6e4b6c6
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_
6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_
8 #include "base/compiler_specific.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/WebPresentationSessionClient.h"
13 namespace content {
15 // PresentationSessionClient is passed to the Blink layer if presentation
16 // session has been created successfully. Owned by the callback.
17 class CONTENT_EXPORT PresentationSessionClient
18 : public NON_EXPORTED_BASE(blink::WebPresentationSessionClient) {
19 public:
20 explicit PresentationSessionClient(
21 presentation::PresentationSessionInfoPtr session_info);
22 explicit PresentationSessionClient(const mojo::String& url,
23 const mojo::String& id);
24 ~PresentationSessionClient() override;
26 // WebPresentationSessionClient implementation.
27 virtual blink::WebString getUrl();
28 virtual blink::WebString getId();
30 private:
31 blink::WebString url_;
32 blink::WebString id_;
35 } // namespace content
37 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_