Chromium Code Reviews| 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" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class WebString; | |
| 13 | |
| 14 // The implementation the embedder has to provide for the Presentation API to | |
|
mark a. foltz
2016/10/10 18:28:52
Or just,
Implemented by the embedder for a Presen
zhaobin
2016/10/12 02:27:34
Done.
| |
| 15 // work. | |
| 16 class WebPresentationConnection { | |
| 17 public: | |
| 18 virtual ~WebPresentationConnection() {} | |
| 19 | |
| 20 virtual void didReceiveTextMessage(const WebString& message) = 0; | |
| 21 virtual void didReceiveBinaryMessage(const uint8_t* data, size_t length) = 0; | |
| 22 }; | |
| 23 | |
| 24 } // namespace blink | |
| 25 | |
| 26 #endif // WebPresentationConnection_h | |
| OLD | NEW |