| 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/dom/ContextLifecycleObserver.h" |
| 8 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
| 9 #include "core/fileapi/Blob.h" | 10 #include "core/fileapi/Blob.h" |
| 10 #include "core/fileapi/FileError.h" | 11 #include "core/fileapi/FileError.h" |
| 11 #include "core/frame/DOMWindowProperty.h" | |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 #include "platform/weborigin/KURL.h" | 13 #include "platform/weborigin/KURL.h" |
| 14 #include "public/platform/modules/presentation/WebPresentationConnectionClient.h
" | 14 #include "public/platform/modules/presentation/WebPresentationConnectionClient.h
" |
| 15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
| 16 #include <memory> | 16 #include <memory> |
| 17 | 17 |
| 18 namespace WTF { | 18 namespace WTF { |
| 19 class AtomicString; | 19 class AtomicString; |
| 20 } // namespace WTF | 20 } // namespace WTF |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 class DOMArrayBuffer; | 24 class DOMArrayBuffer; |
| 25 class DOMArrayBufferView; | 25 class DOMArrayBufferView; |
| 26 class PresentationController; | 26 class PresentationController; |
| 27 class PresentationReceiver; | 27 class PresentationReceiver; |
| 28 class PresentationRequest; | 28 class PresentationRequest; |
| 29 | 29 |
| 30 class PresentationConnection final : public EventTargetWithInlineData, | 30 class PresentationConnection final : public EventTargetWithInlineData, |
| 31 public DOMWindowProperty { | 31 public ContextClient { |
| 32 USING_GARBAGE_COLLECTED_MIXIN(PresentationConnection); | 32 USING_GARBAGE_COLLECTED_MIXIN(PresentationConnection); |
| 33 DEFINE_WRAPPERTYPEINFO(); | 33 DEFINE_WRAPPERTYPEINFO(); |
| 34 | 34 |
| 35 public: | 35 public: |
| 36 // For CallbackPromiseAdapter. | 36 // For CallbackPromiseAdapter. |
| 37 using WebType = std::unique_ptr<WebPresentationConnectionClient>; | 37 using WebType = std::unique_ptr<WebPresentationConnectionClient>; |
| 38 | 38 |
| 39 static PresentationConnection* take( | 39 static PresentationConnection* take( |
| 40 ScriptPromiseResolver*, | 40 ScriptPromiseResolver*, |
| 41 std::unique_ptr<WebPresentationConnectionClient>, | 41 std::unique_ptr<WebPresentationConnectionClient>, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // For Blob data handling. | 128 // For Blob data handling. |
| 129 Member<BlobLoader> m_blobLoader; | 129 Member<BlobLoader> m_blobLoader; |
| 130 HeapDeque<Member<Message>> m_messages; | 130 HeapDeque<Member<Message>> m_messages; |
| 131 | 131 |
| 132 BinaryType m_binaryType; | 132 BinaryType m_binaryType; |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| 136 | 136 |
| 137 #endif // PresentationConnection_h | 137 #endif // PresentationConnection_h |
| OLD | NEW |