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..3c1bee6ea3969114f15aa72308e71b1ebf04b780 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
haraken
2017/01/13 04:01:24
2017
zhaobin
2017/01/18 18:25:47
Done.
|
| +// 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" |
| + |
| +#include <memory> |
| + |
| +namespace blink { |
| + |
| +enum class WebPresentationConnectionState; |
| +class WebPresentationConnectionProxy; |
| +class WebString; |
| + |
| +// Implemented by the embedder for a PresentationConnection. |
| +class WebPresentationConnection { |
| + public: |
| + virtual ~WebPresentationConnection() = default; |
| + |
| + 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.
|
| + virtual void didReceiveTextMessage(const WebString& message) = 0; |
| + virtual void didReceiveBinaryMessage(const uint8_t* data, size_t length) = 0; |
| + virtual void didChangeState(WebPresentationConnectionState) = 0; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebPresentationConnection_h |