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..d1bde329cee6bf1233265899952deb36ab55e47a |
--- /dev/null |
+++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h |
@@ -0,0 +1,27 @@ |
+// 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 { |
+ |
+enum class WebPresentationConnectionState; |
+class WebString; |
+ |
+// Implemented by the embedder for a PresentationConnection. |
+class WebPresentationConnection { |
+ public: |
+ virtual ~WebPresentationConnection() {} |
mlamouri (slow - plz ping)
2016/12/06 09:57:01
nit: = default;
zhaobin
2016/12/08 02:41:10
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 |