OLD | NEW |
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 WebPresentationSessionClient_h | 5 #ifndef WebPresentationSessionClient_h |
6 #define WebPresentationSessionClient_h | 6 #define WebPresentationSessionClient_h |
7 | 7 |
8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
| 12 enum class WebPresentationSessionState { |
| 13 Connected = 0, |
| 14 Disconnected, |
| 15 }; |
| 16 |
12 // The implementation the embedder has to provide for the Presentation API to wo
rk. | 17 // The implementation the embedder has to provide for the Presentation API to wo
rk. |
13 class WebPresentationSessionClient { | 18 class WebPresentationSessionClient { |
14 public: | 19 public: |
15 virtual ~WebPresentationSessionClient() { } | 20 virtual ~WebPresentationSessionClient() { } |
16 | 21 |
17 virtual WebString getId() = 0; | 22 virtual WebString getId() = 0; |
18 virtual WebString getUrl() = 0; | 23 virtual WebString getUrl() = 0; |
19 }; | 24 }; |
20 | 25 |
21 } // namespace blink | 26 } // namespace blink |
22 | 27 |
23 #endif // WebPresentationSessionClient_h | 28 #endif // WebPresentationSessionClient_h |
OLD | NEW |