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

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

Issue 1024903003: [Presentation API] Plumbing of |onstatechange| from the Mojo service to the public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the Mojo method again from the callback Created 5 years, 9 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
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"
10 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nSessionClient.h" 11 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nSessionClient.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 class PresentationSessionDispatcher;
15
16 // PresentationSessionClient is passed to the Blink layer if presentation 15 // PresentationSessionClient is passed to the Blink layer if presentation
17 // session has been created successfully. Owned by the callback. 16 // session has been created successfully. Owned by the callback.
18 class CONTENT_EXPORT PresentationSessionClient 17 class CONTENT_EXPORT PresentationSessionClient
19 : public NON_EXPORTED_BASE(blink::WebPresentationSessionClient) { 18 : public NON_EXPORTED_BASE(blink::WebPresentationSessionClient) {
20 public: 19 public:
21 explicit PresentationSessionClient(PresentationSessionDispatcher* dispatcher); 20 explicit PresentationSessionClient(
21 presentation::PresentationSessionInfoPtr session_info);
22 ~PresentationSessionClient() override; 22 ~PresentationSessionClient() override;
23 23
24 // WebPresentationSessionClient implementation. 24 // WebPresentationSessionClient implementation.
25 virtual blink::WebString getUrl(); 25 virtual blink::WebString getUrl();
26 virtual blink::WebString getId(); 26 virtual blink::WebString getId();
27 27
28 private: 28 private:
29 blink::WebString url_; 29 blink::WebString url_;
30 blink::WebString id_; 30 blink::WebString id_;
31 }; 31 };
32 32
33 } // namespace content 33 } // namespace content
34 34
35 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ 35 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.cc ('k') | content/renderer/presentation/presentation_session_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698