OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MediaSession_h | 5 #ifndef MediaSession_h |
6 #define MediaSession_h | 6 #define MediaSession_h |
7 | 7 |
| 8 #include <memory> |
8 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "bindings/core/v8/TraceWrapperMember.h" | 10 #include "bindings/core/v8/TraceWrapperMember.h" |
10 #include "core/dom/ContextLifecycleObserver.h" | 11 #include "core/dom/ContextLifecycleObserver.h" |
11 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
12 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
13 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
14 #include "public/platform/modules/mediasession/media_session.mojom-blink.h" | 15 #include "public/platform/modules/mediasession/media_session.mojom-blink.h" |
15 #include "wtf/text/WTFString.h" | 16 #include "wtf/text/WTFString.h" |
16 #include <memory> | |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 class ExecutionContext; | 20 class ExecutionContext; |
21 class MediaMetadata; | 21 class MediaMetadata; |
22 class MediaSessionActionHandler; | 22 class MediaSessionActionHandler; |
23 | 23 |
24 class MODULES_EXPORT MediaSession final | 24 class MODULES_EXPORT MediaSession final |
25 : public GarbageCollectedFinalized<MediaSession>, | 25 : public GarbageCollectedFinalized<MediaSession>, |
26 public ContextClient, | 26 public ContextClient, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 Member<MediaMetadata> m_metadata; | 73 Member<MediaMetadata> m_metadata; |
74 HeapHashMap<String, TraceWrapperMember<MediaSessionActionHandler>> | 74 HeapHashMap<String, TraceWrapperMember<MediaSessionActionHandler>> |
75 m_actionHandlers; | 75 m_actionHandlers; |
76 mojom::blink::MediaSessionServicePtr m_service; | 76 mojom::blink::MediaSessionServicePtr m_service; |
77 mojo::Binding<blink::mojom::blink::MediaSessionClient> m_clientBinding; | 77 mojo::Binding<blink::mojom::blink::MediaSessionClient> m_clientBinding; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace blink | 80 } // namespace blink |
81 | 81 |
82 #endif // MediaSession_h | 82 #endif // MediaSession_h |
OLD | NEW |