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

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

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h
diff --git a/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h b/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d6fed90f1585dd2c02ad14667dfc33d9a27dd89
--- /dev/null
+++ b/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.h
@@ -0,0 +1,33 @@
+// 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.
+
+#ifndef AudioOutputDeviceClientImpl_h
+#define AudioOutputDeviceClientImpl_h
+
+#include "modules/audio_output_devices/AudioOutputDeviceClient.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class AudioOutputDeviceClientImpl : public NoBaseWillBeGarbageCollectedFinalized<AudioOutputDeviceClientImpl>, public AudioOutputDeviceClient {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AudioOutputDeviceClientImpl);
+ WTF_MAKE_NONCOPYABLE(AudioOutputDeviceClientImpl);
+public:
+ static PassOwnPtrWillBeRawPtr<AudioOutputDeviceClientImpl> create();
+
+ ~AudioOutputDeviceClientImpl() override;
+
+ // AudioOutputDeviceClient implementation.
+ void checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext*, const WebString& sinkId, PassOwnPtr<WebSetSinkIdCallbacks>) override;
+
+ // NoBaseWillBeGarbageCollectedFinalized implementation.
+ DEFINE_INLINE_VIRTUAL_TRACE() { AudioOutputDeviceClient::trace(visitor); }
+
+private:
+ AudioOutputDeviceClientImpl();
+};
+
+} // namespace blink
+
+#endif // AudioOutputDeviceClientImpl_h
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698