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 #include "modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h" | 5 #include "modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "bindings/core/v8/ScriptPromiseResolver.h" | 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
8 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
9 #include "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
10 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
11 #include "core/dom/TaskRunnerHelper.h" | 12 #include "core/dom/TaskRunnerHelper.h" |
12 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" | 13 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" |
13 #include "modules/audio_output_devices/SetSinkIdCallbacks.h" | 14 #include "modules/audio_output_devices/SetSinkIdCallbacks.h" |
14 #include "public/platform/WebSecurityOrigin.h" | 15 #include "public/platform/WebSecurityOrigin.h" |
15 #include "wtf/PtrUtil.h" | 16 #include "wtf/PtrUtil.h" |
16 #include <memory> | |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class SetSinkIdResolver : public ScriptPromiseResolver { | 22 class SetSinkIdResolver : public ScriptPromiseResolver { |
23 WTF_MAKE_NONCOPYABLE(SetSinkIdResolver); | 23 WTF_MAKE_NONCOPYABLE(SetSinkIdResolver); |
24 | 24 |
25 public: | 25 public: |
26 static SetSinkIdResolver* create(ScriptState*, | 26 static SetSinkIdResolver* create(ScriptState*, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 provideTo(element, supplementName(), supplement); | 141 provideTo(element, supplementName(), supplement); |
142 } | 142 } |
143 return *supplement; | 143 return *supplement; |
144 } | 144 } |
145 | 145 |
146 DEFINE_TRACE(HTMLMediaElementAudioOutputDevice) { | 146 DEFINE_TRACE(HTMLMediaElementAudioOutputDevice) { |
147 Supplement<HTMLMediaElement>::trace(visitor); | 147 Supplement<HTMLMediaElement>::trace(visitor); |
148 } | 148 } |
149 | 149 |
150 } // namespace blink | 150 } // namespace blink |
OLD | NEW |