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 // The implementation the embedder has to provide for the Presentation API to wo rk. | 12 // The implementation the embedder has to provide for the Presentation API to wo rk. |
13 class WebPresentationSessionClient { | 13 class WebPresentationSessionClient { |
14 public: | 14 public: |
15 enum SessionState { | |
mlamouri (slow - plz ping)
2015/03/23 17:54:16
Could you make this an enum class?
It will requir
whywhat
2015/03/23 21:12:16
Done.
| |
16 SessionStateConnected = 0, | |
17 SessionStateDisconnected, | |
18 SessionStateUnknown, | |
Peter Beverloo
2015/03/20 19:07:40
When would we use "Unknown"?
whywhat
2015/03/23 21:12:16
When WFT happens?
| |
19 SessionStateLast = SessionStateUnknown | |
mlamouri (slow - plz ping)
2015/03/23 17:54:16
Do you use SessionStateLast? It is commonly used f
whywhat
2015/03/23 21:12:17
No, I have it for consistency only.
| |
20 }; | |
21 | |
15 virtual ~WebPresentationSessionClient() { } | 22 virtual ~WebPresentationSessionClient() { } |
16 | 23 |
17 virtual WebString getId() = 0; | 24 virtual WebString getId() = 0; |
18 virtual WebString getUrl() = 0; | 25 virtual WebString getUrl() = 0; |
19 }; | 26 }; |
20 | 27 |
21 } // namespace blink | 28 } // namespace blink |
22 | 29 |
23 #endif // WebPresentationSessionClient_h | 30 #endif // WebPresentationSessionClient_h |
OLD | NEW |