OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
haraken
2017/01/13 04:01:24
2017
zhaobin
2017/01/18 18:25:47
Done.
| |
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 #include <memory> | |
11 | |
12 namespace blink { | |
13 | |
14 enum class WebPresentationConnectionState; | |
15 class WebPresentationConnectionProxy; | |
16 class WebString; | |
17 | |
18 // Implemented by the embedder for a PresentationConnection. | |
19 class WebPresentationConnection { | |
20 public: | |
21 virtual ~WebPresentationConnection() = default; | |
22 | |
23 virtual void setProxy(std::unique_ptr<WebPresentationConnectionProxy>) = 0; | |
dcheng
2017/01/17 23:31:49
Nit: consider calling this bindProxy(), as the imp
zhaobin
2017/01/18 18:25:47
Done.
| |
24 virtual void didReceiveTextMessage(const WebString& message) = 0; | |
25 virtual void didReceiveBinaryMessage(const uint8_t* data, size_t length) = 0; | |
26 virtual void didChangeState(WebPresentationConnectionState) = 0; | |
27 }; | |
28 | |
29 } // namespace blink | |
30 | |
31 #endif // WebPresentationConnection_h | |
OLD | NEW |