| 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 "core/events/EventTarget.h" | 8 #include "core/events/EventTarget.h" |
| 9 #include "core/fileapi/Blob.h" | 9 #include "core/fileapi/Blob.h" |
| 10 #include "core/fileapi/FileError.h" | 10 #include "core/fileapi/FileError.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 std::unique_ptr<WebPresentationConnectionClient>); | 49 std::unique_ptr<WebPresentationConnectionClient>); |
| 50 ~PresentationConnection() override; | 50 ~PresentationConnection() override; |
| 51 | 51 |
| 52 // EventTarget implementation. | 52 // EventTarget implementation. |
| 53 const AtomicString& interfaceName() const override; | 53 const AtomicString& interfaceName() const override; |
| 54 ExecutionContext* getExecutionContext() const override; | 54 ExecutionContext* getExecutionContext() const override; |
| 55 | 55 |
| 56 DECLARE_VIRTUAL_TRACE(); | 56 DECLARE_VIRTUAL_TRACE(); |
| 57 | 57 |
| 58 const String& id() const { return m_id; } | 58 const String& id() const { return m_id; } |
| 59 const String& url() const { return m_url; } |
| 59 const WTF::AtomicString& state() const; | 60 const WTF::AtomicString& state() const; |
| 60 | 61 |
| 61 void send(const String& message, ExceptionState&); | 62 void send(const String& message, ExceptionState&); |
| 62 void send(DOMArrayBuffer*, ExceptionState&); | 63 void send(DOMArrayBuffer*, ExceptionState&); |
| 63 void send(DOMArrayBufferView*, ExceptionState&); | 64 void send(DOMArrayBufferView*, ExceptionState&); |
| 64 void send(Blob*, ExceptionState&); | 65 void send(Blob*, ExceptionState&); |
| 65 void close(); | 66 void close(); |
| 66 void terminate(); | 67 void terminate(); |
| 67 | 68 |
| 68 String binaryType() const; | 69 String binaryType() const; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // For Blob data handling. | 125 // For Blob data handling. |
| 125 Member<BlobLoader> m_blobLoader; | 126 Member<BlobLoader> m_blobLoader; |
| 126 HeapDeque<Member<Message>> m_messages; | 127 HeapDeque<Member<Message>> m_messages; |
| 127 | 128 |
| 128 BinaryType m_binaryType; | 129 BinaryType m_binaryType; |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace blink | 132 } // namespace blink |
| 132 | 133 |
| 133 #endif // PresentationConnection_h | 134 #endif // PresentationConnection_h |
| OLD | NEW |