Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionClient.h

Issue 2435243002: [Presentation API] add 'connecting' state to WebPresentationConnectionState (Closed)
Patch Set: resolve code review comments from mlamouri Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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,
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698