| 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" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); | 46 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); |
| 47 | 47 |
| 48 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 explicit RemotePlayback(HTMLMediaElement&); | 51 explicit RemotePlayback(HTMLMediaElement&); |
| 52 | 52 |
| 53 void stateChanged(WebRemotePlaybackState) override; | 53 void stateChanged(WebRemotePlaybackState) override; |
| 54 void availabilityChanged(bool available) override; | 54 void availabilityChanged(bool available) override; |
| 55 void connectCancelled() override; |
| 55 | 56 |
| 56 WebRemotePlaybackState m_state; | 57 WebRemotePlaybackState m_state; |
| 57 bool m_availability; | 58 bool m_availability; |
| 58 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects; | 59 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects; |
| 59 WeakPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 60 WeakPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
| 60 HeapVector<Member<ScriptPromiseResolver>> m_connectPromiseResolvers; | 61 HeapVector<Member<ScriptPromiseResolver>> m_connectPromiseResolvers; |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace blink | 64 } // namespace blink |
| 64 | 65 |
| 65 #endif // RemotePlayback_h | 66 #endif // RemotePlayback_h |
| OLD | NEW |