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 WebPresentationConnectionProxy_h |
| 6 #define WebPresentationConnectionProxy_h |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 class WebPresentationConnection; |
| 11 |
| 12 // The implementation the embedder has to provide for the Presentation API to |
| 13 // work. This class is used to send messages to a PresentationConnection hosted |
| 14 // in a different frame. |
| 15 class WebPresentationConnectionProxy { |
| 16 public: |
| 17 virtual ~WebPresentationConnectionProxy() {} |
| 18 |
| 19 virtual void SetSourceConnection(blink::WebPresentationConnection*) = 0; |
| 20 |
| 21 virtual void SendString(const blink::WebString& message) = 0; |
| 22 |
| 23 virtual void SendArrayBuffer(const uint8_t* data, size_t length) = 0; |
| 24 }; |
| 25 |
| 26 } // namespace blink |
| 27 |
| 28 #endif // WebPresentationConnectionProxy_h |
OLD | NEW |