OLD | NEW |
---|---|
(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(); | |
mark a. foltz
2015/02/19 22:59:57
Should this be const?
whywhat
2015/02/19 23:22:18
Yes.
| |
30 virtual blink::WebString getId(); | |
mark a. foltz
2015/02/19 22:59:57
Ditto
whywhat
2015/02/19 23:22:18
Acknowledged.
| |
31 | |
32 presentation::PresentationSessionInfoPtr session_info_; | |
33 }; | |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_DISPATCHER_H_ | |
OLD | NEW |