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

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

Issue 2379703002: [Presentation API] (alternative) 1-UA: send message between controller and receiver page (Closed)
Patch Set: resolve code review comments from Mark Created 4 years, 2 months 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
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 class WebPresentationConnectionProxy;
14
13 enum class WebPresentationConnectionState { 15 enum class WebPresentationConnectionState {
14 Connected = 0, 16 Connected = 0,
15 Closed, 17 Closed,
16 Terminated, 18 Terminated,
17 }; 19 };
18 20
19 enum class WebPresentationConnectionCloseReason { Error = 0, Closed, WentAway }; 21 enum class WebPresentationConnectionCloseReason { Error = 0, Closed, WentAway };
20 22
21 // The implementation the embedder has to provide for the Presentation API to 23 // The implementation the embedder has to provide for the Presentation API to
22 // work. 24 // work.
23 class WebPresentationConnectionClient { 25 class WebPresentationConnectionClient {
24 public: 26 public:
25 virtual ~WebPresentationConnectionClient() {} 27 virtual ~WebPresentationConnectionClient() {}
26 28
27 virtual WebString getId() = 0; 29 virtual WebString getId() = 0;
28 virtual WebURL getUrl() = 0; 30 virtual WebURL getUrl() = 0;
31 virtual WebPresentationConnectionProxy* getOrCreateProxy() = 0;
imcheng 2016/10/12 02:22:55 Could you please document this method? Also, it l
zhaobin 2016/10/13 02:33:52 Added documents in presentation_connection_client.
29 }; 32 };
30 33
31 } // namespace blink 34 } // namespace blink
32 35
33 #endif // WebPresentationConnectionClient_h 36 #endif // WebPresentationConnectionClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698