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_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nSessionClient.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class PresentationSessionDispatcher; |
| 15 |
| 16 // PresentationSessionClient is passed to the Blink layer if presentation |
| 17 // session has been created successfully. Owned by the callback. |
| 18 class CONTENT_EXPORT PresentationSessionClient |
| 19 : public NON_EXPORTED_BASE(blink::WebPresentationSessionClient) { |
| 20 public: |
| 21 explicit PresentationSessionClient(PresentationSessionDispatcher* dispatcher); |
| 22 ~PresentationSessionClient() override; |
| 23 |
| 24 // WebPresentationSessionClient implementation. |
| 25 virtual blink::WebString getUrl(); |
| 26 virtual blink::WebString getId(); |
| 27 |
| 28 private: |
| 29 blink::WebString url_; |
| 30 blink::WebString id_; |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |
OLD | NEW |