Index: third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
index 323c6a38f42c7c8e9b28cb3241ff5f630d0f2e07..3b4cf18b349256f7227402f528c76a5500ce5a36 100644 |
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
@@ -11,7 +11,9 @@ |
#include "core/frame/DOMWindowProperty.h" |
#include "platform/heap/Handle.h" |
#include "platform/weborigin/KURL.h" |
+#include "public/platform/modules/presentation/WebPresentationConnection.h" |
#include "public/platform/modules/presentation/WebPresentationConnectionClient.h" |
+#include "public/platform/modules/presentation/WebPresentationConnectionProxy.h" |
#include "wtf/text/WTFString.h" |
#include <memory> |
@@ -28,7 +30,8 @@ class PresentationReceiver; |
class PresentationRequest; |
class PresentationConnection final : public EventTargetWithInlineData, |
- public DOMWindowProperty { |
+ public DOMWindowProperty, |
+ public WebPresentationConnection { |
USING_GARBAGE_COLLECTED_MIXIN(PresentationConnection); |
DEFINE_WRAPPERTYPEINFO(); |
@@ -78,14 +81,14 @@ class PresentationConnection final : public EventTargetWithInlineData, |
bool matches(WebPresentationConnectionClient*) const; |
// Notifies the connection about its state change. |
- void didChangeState(WebPresentationConnectionState); |
+ void didChangeState(WebPresentationConnectionState) override; |
// Notifies the connection about its state change to 'closed'. |
void didClose(WebPresentationConnectionCloseReason, const String& message); |
// Notifies the presentation about new message. |
- void didReceiveTextMessage(const String& message); |
- void didReceiveBinaryMessage(const uint8_t* data, size_t length); |
+ void didReceiveTextMessage(const WebString& message) override; |
+ void didReceiveBinaryMessage(const uint8_t* data, size_t length) override; |
protected: |
// EventTarget implementation. |
@@ -106,6 +109,8 @@ class PresentationConnection final : public EventTargetWithInlineData, |
class Message; |
PresentationConnection(LocalFrame*, const String& id, const KURL&); |
+ void SetPresentationConnectionProxy( |
+ std::unique_ptr<WebPresentationConnectionProxy>); |
bool canSendMessage(ExceptionState&); |
void handleMessageQueue(); |
@@ -126,6 +131,8 @@ class PresentationConnection final : public EventTargetWithInlineData, |
HeapDeque<Member<Message>> m_messages; |
BinaryType m_binaryType; |
+ |
+ std::unique_ptr<WebPresentationConnectionProxy> m_proxy; |
}; |
} // namespace blink |