Chromium Code Reviews| 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 #include "public/platform/WebURL.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 enum class WebPresentationConnectionState { | 13 enum class WebPresentationConnectionState { |
| 14 Connected = 0, | 14 Connecting = 0, |
|
imcheng
2016/10/21 23:58:15
Can you also change GetWebPresentationConnectionSt
zhaobin
2016/10/24 19:42:39
Done.
| |
| 15 Connected, | |
| 15 Closed, | 16 Closed, |
| 16 Terminated, | 17 Terminated, |
| 17 }; | 18 }; |
| 18 | 19 |
| 19 enum class WebPresentationConnectionCloseReason { Error = 0, Closed, WentAway }; | 20 enum class WebPresentationConnectionCloseReason { Error = 0, Closed, WentAway }; |
| 20 | 21 |
| 21 // The implementation the embedder has to provide for the Presentation API to | 22 // The implementation the embedder has to provide for the Presentation API to |
| 22 // work. | 23 // work. |
| 23 class WebPresentationConnectionClient { | 24 class WebPresentationConnectionClient { |
| 24 public: | 25 public: |
| 25 virtual ~WebPresentationConnectionClient() {} | 26 virtual ~WebPresentationConnectionClient() {} |
| 26 | 27 |
| 27 virtual WebString getId() = 0; | 28 virtual WebString getId() = 0; |
| 28 virtual WebURL getUrl() = 0; | 29 virtual WebURL getUrl() = 0; |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } // namespace blink | 32 } // namespace blink |
| 32 | 33 |
| 33 #endif // WebPresentationConnectionClient_h | 34 #endif // WebPresentationConnectionClient_h |
| OLD | NEW |