| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 RemotePlayback_h | 5 #ifndef RemotePlayback_h |
| 6 #define RemotePlayback_h | 6 #define RemotePlayback_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
| 10 #include "core/frame/DOMWindowProperty.h" | 10 #include "core/frame/DOMWindowProperty.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h" | 12 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h" |
| 13 #include "public/platform/modules/remoteplayback/WebRemotePlaybackState.h" | 13 #include "public/platform/modules/remoteplayback/WebRemotePlaybackState.h" |
| 14 #include "wtf/text/AtomicString.h" | 14 #include "wtf/text/AtomicString.h" |
| 15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ExecutionContext; | 19 class ExecutionContext; |
| 20 class HTMLMediaElement; | 20 class HTMLMediaElement; |
| 21 class LocalFrame; | 21 class LocalFrame; |
| 22 class RemotePlaybackAvailability; | 22 class RemotePlaybackAvailability; |
| 23 class ScriptPromiseResolver; | 23 class ScriptPromiseResolver; |
| 24 | 24 |
| 25 class RemotePlayback final | 25 class RemotePlayback final |
| 26 : public RefCountedGarbageCollectedEventTargetWithInlineData<RemotePlayback> | 26 : public EventTargetWithInlineData |
| 27 , public DOMWindowProperty | 27 , public DOMWindowProperty |
| 28 , private WebRemotePlaybackClient { | 28 , private WebRemotePlaybackClient { |
| 29 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(RemotePlayback); | 29 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(RemotePlayback); |
| 30 DEFINE_WRAPPERTYPEINFO(); | 30 DEFINE_WRAPPERTYPEINFO(); |
| 31 USING_GARBAGE_COLLECTED_MIXIN(RemotePlayback); | 31 USING_GARBAGE_COLLECTED_MIXIN(RemotePlayback); |
| 32 public: | 32 public: |
| 33 static RemotePlayback* create(HTMLMediaElement&); | 33 static RemotePlayback* create(HTMLMediaElement&); |
| 34 | 34 |
| 35 ~RemotePlayback() override; | 35 ~RemotePlayback() override; |
| 36 | 36 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 57 WebRemotePlaybackState m_state; | 57 WebRemotePlaybackState m_state; |
| 58 bool m_availability; | 58 bool m_availability; |
| 59 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects; | 59 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects; |
| 60 Member<HTMLMediaElement> m_mediaElement; | 60 Member<HTMLMediaElement> m_mediaElement; |
| 61 HeapVector<Member<ScriptPromiseResolver>> m_connectPromiseResolvers; | 61 HeapVector<Member<ScriptPromiseResolver>> m_connectPromiseResolvers; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 #endif // RemotePlayback_h | 66 #endif // RemotePlayback_h |
| OLD | NEW |