Index: third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp b/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..db13a7f41e3f9d01ceeff9ebdb8f662ec1b7c40d |
--- /dev/null |
+++ b/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
@@ -0,0 +1,36 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "config.h" |
+#include "web/AudioOutputDeviceClientImpl.h" |
+ |
+#include "core/dom/Document.h" |
+#include "core/dom/ExecutionContext.h" |
+#include "public/web/WebFrameClient.h" |
+#include "web/WebLocalFrameImpl.h" |
+ |
+namespace blink { |
+ |
+PassOwnPtrWillBeRawPtr<AudioOutputDeviceClientImpl> AudioOutputDeviceClientImpl::create() |
+{ |
+ return adoptPtrWillBeNoop(new AudioOutputDeviceClientImpl()); |
+} |
+ |
+AudioOutputDeviceClientImpl::AudioOutputDeviceClientImpl() |
+{ |
+} |
+ |
+AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl() |
+{ |
+} |
+ |
+void AudioOutputDeviceClientImpl::checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext* context, const WebString& sinkId, PassOwnPtr<WebSetSinkIdCallbacks> callbacks) |
+{ |
+ ASSERT(context && context->isDocument()); |
+ Document* document = toDocument(context); |
+ WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame()); |
+ webFrame->client()->checkIfAudioSinkExistsAndIsAuthorized(sinkId, WebSecurityOrigin(context->securityOrigin()), callbacks.leakPtr()); |
+} |
+ |
+} // namespace blink |