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

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: is_null() checks for StructPtr's instead of get() 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_service.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 NON_EXPORTED_BASE(blink::WebPresentationSessionClient) {
22 public:
23 explicit PresentationSessionDispatcher(
24 presentation::PresentationSessionInfoPtr session_info);
25 ~PresentationSessionDispatcher() override;
26
27 private:
28 // WebPresentationSessionClient implementation.
29 virtual blink::WebString getUrl();
30 virtual blink::WebString getId();
31
32 presentation::PresentationSessionInfoPtr session_info_;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698