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

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

Issue 2471263003: [Presentation API] (4th)(1-UA blink side) Add WebPresentationConnection and WebPresentationConnecti… (Closed)
Patch Set: resolve code review comments from Mark Created 4 years 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebPresentationConnection_h
6 #define WebPresentationConnection_h
7
8 #include "public/platform/WebCommon.h"
9
10 namespace blink {
11
12 enum class WebPresentationConnectionState;
13 class WebString;
14
15 // Implemented by the embedder for a PresentationConnection.
16 class WebPresentationConnection {
17 public:
18 virtual ~WebPresentationConnection() {}
mlamouri (slow - plz ping) 2016/12/06 09:57:01 nit: = default;
zhaobin 2016/12/08 02:41:10 Done.
19
20 virtual void didReceiveTextMessage(const WebString& message) = 0;
21 virtual void didReceiveBinaryMessage(const uint8_t* data, size_t length) = 0;
22 virtual void didChangeState(WebPresentationConnectionState) = 0;
23 };
24
25 } // namespace blink
26
27 #endif // WebPresentationConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698