| 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 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 // For CallbackPromiseAdapter. | 35 // For CallbackPromiseAdapter. |
| 36 using WebType = OwnPtr<WebPresentationConnectionClient>; | 36 using WebType = OwnPtr<WebPresentationConnectionClient>; |
| 37 | 37 |
| 38 static PresentationConnection* take(ScriptPromiseResolver*, PassOwnPtr<WebPr
esentationConnectionClient>, PresentationRequest*); | 38 static PresentationConnection* take(ScriptPromiseResolver*, PassOwnPtr<WebPr
esentationConnectionClient>, PresentationRequest*); |
| 39 static PresentationConnection* take(PresentationController*, PassOwnPtr<WebP
resentationConnectionClient>, PresentationRequest*); | 39 static PresentationConnection* take(PresentationController*, PassOwnPtr<WebP
resentationConnectionClient>, PresentationRequest*); |
| 40 ~PresentationConnection() override; | 40 ~PresentationConnection() override; |
| 41 | 41 |
| 42 // EventTarget implementation. | 42 // EventTarget implementation. |
| 43 const AtomicString& interfaceName() const override; | 43 const AtomicString& interfaceName() const override; |
| 44 ExecutionContext* executionContext() const override; | 44 ExecutionContext* getExecutionContext() const override; |
| 45 | 45 |
| 46 DECLARE_VIRTUAL_TRACE(); | 46 DECLARE_VIRTUAL_TRACE(); |
| 47 | 47 |
| 48 const String& id() const { return m_id; } | 48 const String& id() const { return m_id; } |
| 49 const WTF::AtomicString& state() const; | 49 const WTF::AtomicString& state() const; |
| 50 | 50 |
| 51 void send(const String& message, ExceptionState&); | 51 void send(const String& message, ExceptionState&); |
| 52 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); | 52 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); |
| 53 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); | 53 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); |
| 54 void send(Blob*, ExceptionState&); | 54 void send(Blob*, ExceptionState&); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // For Blob data handling. | 133 // For Blob data handling. |
| 134 Member<BlobLoader> m_blobLoader; | 134 Member<BlobLoader> m_blobLoader; |
| 135 Deque<OwnPtr<Message>> m_messages; | 135 Deque<OwnPtr<Message>> m_messages; |
| 136 | 136 |
| 137 BinaryType m_binaryType; | 137 BinaryType m_binaryType; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace blink | 140 } // namespace blink |
| 141 | 141 |
| 142 #endif // PresentationConnection_h | 142 #endif // PresentationConnection_h |
| OLD | NEW |