Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp

Issue 1416123005: Implement setSinkId() for media elements without src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 "core/dom/Document.h"
9 #include "core/dom/ExecutionContext.h"
10 #include "public/web/WebFrameClient.h"
11 #include "web/WebLocalFrameImpl.h"
12
13 namespace blink {
14
15 PassOwnPtrWillBeRawPtr<AudioOutputDeviceClientImpl> AudioOutputDeviceClientImpl: :create()
16 {
17 return adoptPtrWillBeNoop(new AudioOutputDeviceClientImpl());
18 }
19
20 AudioOutputDeviceClientImpl::AudioOutputDeviceClientImpl()
21 {
22 }
23
24 AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl()
25 {
26 }
27
28 void AudioOutputDeviceClientImpl::checkIfAudioSinkExistsAndIsAuthorized(Executio nContext* context, const WebString& sinkId, PassOwnPtr<WebSetSinkIdCallbacks> ca llbacks)
29 {
30 ASSERT(context && context->isDocument());
31 Document* document = toDocument(context);
32 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame() );
33 webFrame->client()->checkIfAudioSinkExistsAndIsAuthorized(sinkId, WebSecurit yOrigin(context->securityOrigin()), callbacks.leakPtr());
34 }
35
36 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698