| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PresentationConnection_h | 5 #ifndef PresentationConnection_h |
| 6 #define PresentationConnection_h | 6 #define PresentationConnection_h |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/dom/NotShared.h" | |
| 11 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| 12 #include "core/fileapi/Blob.h" | 11 #include "core/fileapi/Blob.h" |
| 13 #include "core/fileapi/FileError.h" | 12 #include "core/fileapi/FileError.h" |
| 14 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 15 #include "platform/weborigin/KURL.h" | 14 #include "platform/weborigin/KURL.h" |
| 16 #include "public/platform/modules/presentation/WebPresentationConnection.h" | 15 #include "public/platform/modules/presentation/WebPresentationConnection.h" |
| 17 #include "public/platform/modules/presentation/WebPresentationConnectionProxy.h" | 16 #include "public/platform/modules/presentation/WebPresentationConnectionProxy.h" |
| 18 #include "public/platform/modules/presentation/WebPresentationController.h" | 17 #include "public/platform/modules/presentation/WebPresentationController.h" |
| 19 #include "public/platform/modules/presentation/WebPresentationInfo.h" | 18 #include "public/platform/modules/presentation/WebPresentationInfo.h" |
| 20 #include "wtf/text/WTFString.h" | 19 #include "wtf/text/WTFString.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 ExecutionContext* GetExecutionContext() const override; | 53 ExecutionContext* GetExecutionContext() const override; |
| 55 | 54 |
| 56 DECLARE_VIRTUAL_TRACE(); | 55 DECLARE_VIRTUAL_TRACE(); |
| 57 | 56 |
| 58 const String& id() const { return id_; } | 57 const String& id() const { return id_; } |
| 59 const String& url() const { return url_; } | 58 const String& url() const { return url_; } |
| 60 const WTF::AtomicString& state() const; | 59 const WTF::AtomicString& state() const; |
| 61 | 60 |
| 62 void send(const String& message, ExceptionState&); | 61 void send(const String& message, ExceptionState&); |
| 63 void send(DOMArrayBuffer*, ExceptionState&); | 62 void send(DOMArrayBuffer*, ExceptionState&); |
| 64 void send(NotShared<DOMArrayBufferView>, ExceptionState&); | 63 void send(DOMArrayBufferView*, ExceptionState&); |
| 65 void send(Blob*, ExceptionState&); | 64 void send(Blob*, ExceptionState&); |
| 66 void close(); | 65 void close(); |
| 67 void terminate(); | 66 void terminate(); |
| 68 | 67 |
| 69 String binaryType() const; | 68 String binaryType() const; |
| 70 void setBinaryType(const String&); | 69 void setBinaryType(const String&); |
| 71 | 70 |
| 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 71 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); | 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); |
| 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 HeapDeque<Member<Message>> messages_; | 138 HeapDeque<Member<Message>> messages_; |
| 140 | 139 |
| 141 BinaryType binary_type_; | 140 BinaryType binary_type_; |
| 142 | 141 |
| 143 std::unique_ptr<WebPresentationConnectionProxy> proxy_; | 142 std::unique_ptr<WebPresentationConnectionProxy> proxy_; |
| 144 }; | 143 }; |
| 145 | 144 |
| 146 } // namespace blink | 145 } // namespace blink |
| 147 | 146 |
| 148 #endif // PresentationConnection_h | 147 #endif // PresentationConnection_h |
| OLD | NEW |