| 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 "config.h" | |
| 6 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" | 5 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" |
| 7 | 6 |
| 8 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 9 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
| 10 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 const char* AudioOutputDeviceClient::supplementName() | 13 const char* AudioOutputDeviceClient::supplementName() |
| 15 { | 14 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 | 26 |
| 28 return static_cast<AudioOutputDeviceClient*>(WillBeHeapSupplement<LocalFrame
>::from(document->frame(), supplementName())); | 27 return static_cast<AudioOutputDeviceClient*>(WillBeHeapSupplement<LocalFrame
>::from(document->frame(), supplementName())); |
| 29 } | 28 } |
| 30 | 29 |
| 31 void provideAudioOutputDeviceClientTo(LocalFrame& frame, PassOwnPtrWillBeRawPtr<
AudioOutputDeviceClient> client) | 30 void provideAudioOutputDeviceClientTo(LocalFrame& frame, PassOwnPtrWillBeRawPtr<
AudioOutputDeviceClient> client) |
| 32 { | 31 { |
| 33 frame.provideSupplement(AudioOutputDeviceClient::supplementName(), client); | 32 frame.provideSupplement(AudioOutputDeviceClient::supplementName(), client); |
| 34 } | 33 } |
| 35 | 34 |
| 36 } // namespace blink | 35 } // namespace blink |
| OLD | NEW |