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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months 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
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 "web/AudioOutputDeviceClientImpl.h" 5 #include "web/AudioOutputDeviceClientImpl.h"
6 6
7 #include <memory>
7 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
8 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
9 #include "public/web/WebFrameClient.h" 10 #include "public/web/WebFrameClient.h"
10 #include "web/WebLocalFrameImpl.h" 11 #include "web/WebLocalFrameImpl.h"
11 #include <memory>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 AudioOutputDeviceClientImpl::AudioOutputDeviceClientImpl(LocalFrame& frame) 15 AudioOutputDeviceClientImpl::AudioOutputDeviceClientImpl(LocalFrame& frame)
16 : AudioOutputDeviceClient(frame) {} 16 : AudioOutputDeviceClient(frame) {}
17 17
18 AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl() {} 18 AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl() {}
19 19
20 void AudioOutputDeviceClientImpl::checkIfAudioSinkExistsAndIsAuthorized( 20 void AudioOutputDeviceClientImpl::checkIfAudioSinkExistsAndIsAuthorized(
21 ExecutionContext* context, 21 ExecutionContext* context,
22 const WebString& sinkId, 22 const WebString& sinkId,
23 std::unique_ptr<WebSetSinkIdCallbacks> callbacks) { 23 std::unique_ptr<WebSetSinkIdCallbacks> callbacks) {
24 DCHECK(context); 24 DCHECK(context);
25 DCHECK(context->isDocument()); 25 DCHECK(context->isDocument());
26 Document* document = toDocument(context); 26 Document* document = toDocument(context);
27 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame()); 27 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame());
28 webFrame->client()->checkIfAudioSinkExistsAndIsAuthorized( 28 webFrame->client()->checkIfAudioSinkExistsAndIsAuthorized(
29 sinkId, WebSecurityOrigin(context->getSecurityOrigin()), 29 sinkId, WebSecurityOrigin(context->getSecurityOrigin()),
30 callbacks.release()); 30 callbacks.release());
31 } 31 }
32 32
33 } // namespace blink 33 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h ('k') | third_party/WebKit/Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698