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 WebPresentationConnectionClient_h | 5 #ifndef WebPresentationConnectionClient_h |
6 #define WebPresentationConnectionClient_h | 6 #define WebPresentationConnectionClient_h |
7 | 7 |
8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" |
| 9 #include "public/platform/WebURL.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 enum class WebPresentationConnectionState { | 13 enum class WebPresentationConnectionState { |
13 Connected = 0, | 14 Connected = 0, |
14 Closed, | 15 Closed, |
15 Terminated, | 16 Terminated, |
16 }; | 17 }; |
17 | 18 |
18 enum class WebPresentationConnectionCloseReason { | 19 enum class WebPresentationConnectionCloseReason { |
19 Error = 0, | 20 Error = 0, |
20 Closed, | 21 Closed, |
21 WentAway | 22 WentAway |
22 }; | 23 }; |
23 | 24 |
24 // The implementation the embedder has to provide for the Presentation API to wo
rk. | 25 // The implementation the embedder has to provide for the Presentation API to wo
rk. |
25 class WebPresentationConnectionClient { | 26 class WebPresentationConnectionClient { |
26 public: | 27 public: |
27 virtual ~WebPresentationConnectionClient() { } | 28 virtual ~WebPresentationConnectionClient() { } |
28 | 29 |
29 virtual WebString getId() = 0; | 30 virtual WebString getId() = 0; |
30 virtual WebString getUrl() = 0; | 31 virtual WebURL getUrl() = 0; |
31 }; | 32 }; |
32 | 33 |
33 } // namespace blink | 34 } // namespace blink |
34 | 35 |
35 #endif // WebPresentationConnectionClient_h | 36 #endif // WebPresentationConnectionClient_h |
OLD | NEW |