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

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

Issue 2327993002: [PresentationAPI] Use KURL and WebURL in place of string types. (Closed)
Patch Set: Address imcheng@ comments Created 4 years, 3 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698