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

Unified Diff: third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp

Issue 2863913002: Change AudioOutputDeviceClientImpl to use WebLocalFrameBase and move to modules. (Closed)
Patch Set: Use chrome client to create instances of WebLocalFrameBase. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 7d9ccd18e0cdb994b2946b5c166681be854e54aa..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-// 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 "web/AudioOutputDeviceClientImpl.h"
-
-#include "core/dom/Document.h"
-#include "core/dom/ExecutionContext.h"
-#include "public/web/WebFrameClient.h"
-#include "web/WebLocalFrameImpl.h"
-#include <memory>
-
-namespace blink {
-
-AudioOutputDeviceClientImpl::AudioOutputDeviceClientImpl(LocalFrame& frame)
- : AudioOutputDeviceClient(frame) {}
-
-AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl() {}
-
-void AudioOutputDeviceClientImpl::CheckIfAudioSinkExistsAndIsAuthorized(
- ExecutionContext* context,
- const WebString& sink_id,
- std::unique_ptr<WebSetSinkIdCallbacks> callbacks) {
- DCHECK(context);
- DCHECK(context->IsDocument());
- Document* document = ToDocument(context);
- WebLocalFrameImpl* web_frame =
- WebLocalFrameImpl::FromFrame(document->GetFrame());
- web_frame->Client()->CheckIfAudioSinkExistsAndIsAuthorized(
- sink_id, WebSecurityOrigin(context->GetSecurityOrigin()),
- callbacks.release());
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698