OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "web/AudioOutputDeviceClientImpl.h" |
| 7 |
| 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 9 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "core/dom/Document.h" |
| 11 #include "core/dom/ExecutionContext.h" |
| 12 #include "modules/notifications/Notification.h" |
| 13 #include "public/web/WebFrameClient.h" |
| 14 #include "web/WebLocalFrameImpl.h" |
| 15 |
| 16 namespace blink { |
| 17 |
| 18 PassOwnPtrWillBeRawPtr<AudioOutputDeviceClientImpl> AudioOutputDeviceClientImpl:
:create() |
| 19 { |
| 20 return adoptPtrWillBeNoop(new AudioOutputDeviceClientImpl()); |
| 21 } |
| 22 |
| 23 AudioOutputDeviceClientImpl::AudioOutputDeviceClientImpl() |
| 24 { |
| 25 } |
| 26 |
| 27 AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl() |
| 28 { |
| 29 } |
| 30 |
| 31 void AudioOutputDeviceClientImpl::checkAudioSink(ExecutionContext* context, cons
t WebString& sinkId, PassOwnPtr<WebSetSinkIdCallbacks> callbacks) |
| 32 { |
| 33 ASSERT(context && context->isDocument()); |
| 34 Document* document = toDocument(context); |
| 35 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame()
); |
| 36 webFrame->client()->checkAudioSink(sinkId, WebSecurityOrigin(context->securi
tyOrigin()), callbacks.leakPtr()); |
| 37 } |
| 38 |
| 39 } // namespace blink |
OLD | NEW |