OLD | NEW |
---|---|
(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" | |
mark a. foltz
2016/11/16 01:16:39
May not be needed.
zhaobin
2016/11/23 22:52:29
Need this for uint8_t, size_t.
| |
9 | |
10 namespace blink { | |
11 | |
12 class WebString; | |
13 | |
14 // Implemented by the embedder for a PresentationConnection. | |
15 class WebPresentationConnection { | |
16 public: | |
17 virtual ~WebPresentationConnection() {} | |
18 | |
19 virtual void didReceiveTextMessage(const WebString& message) = 0; | |
20 virtual void didReceiveBinaryMessage(const uint8_t* data, size_t length) = 0; | |
21 }; | |
22 | |
23 } // namespace blink | |
24 | |
25 #endif // WebPresentationConnection_h | |
OLD | NEW |