Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Side by Side Diff: content/renderer/presentation/presentation_session_dispatcher.h

Issue 935083002: [PresentationAPI] Implementing start/joinSession from WebPresentationClient to PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_DISPATCHER_H_
6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_DISPATCHER_H_
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "content/common/content_export.h"
12 #include "content/common/presentation/presentation_session.mojom.h"
13 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nSessionClient.h"
14
15 namespace content {
16
17 // PresentationSessionDispatcher is a delegate for Presentation API messages
18 // used by Blink. It forwards the calls from the PresentationSession JS objects
19 // to the corresponding Mojo PresentationSession remote objects.
20 class CONTENT_EXPORT PresentationSessionDispatcher
21 : public presentation::PresentationSession
22 , public NON_EXPORTED_BASE(blink::WebPresentationSessionClient) {
23 public:
24 PresentationSessionDispatcher(
25 mojo::InterfaceRequest<presentation::PresentationSession> session_request,
26 const std::string& url,
27 const std::string& id);
28 ~PresentationSessionDispatcher() override;
29
30 private:
31 // WebPresentationSessionClient implementation.
32 virtual blink::WebString getUrl();
33 virtual blink::WebString getId();
34
35 mojo::Binding<presentation::PresentationSession> session_binding_;
36
37 std::string url_;
38 std::string id_;
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698