Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h |
| diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f8d46d79763afd31d606a56bb60e3e2eed7ef5fb |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebPresentationConnection_h |
| +#define WebPresentationConnection_h |
| + |
| +#include "public/platform/WebCommon.h" |
| + |
| +namespace blink { |
| + |
| +class WebString; |
| + |
| +// 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.
|
| +// work. |
| +class WebPresentationConnection { |
| + public: |
| + virtual ~WebPresentationConnection() {} |
| + |
| + virtual void didReceiveTextMessage(const WebString& message) = 0; |
| + virtual void didReceiveBinaryMessage(const uint8_t* data, size_t length) = 0; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebPresentationConnection_h |