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

Side by Side Diff: Source/modules/audio_output_devices/SetSinkIdCallbacks.h

Issue 1188203002: Implementation of setSinkId() for HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix missing #include and broken previous upload Created 5 years, 6 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
Mike West 2015/06/17 11:44:37 Nit: 2015.
Guido Urdaneta 2015/06/17 12:25:16 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SetSinkIdCallbacks_h
6 #define SetSinkIdCallbacks_h
7
8 #include "platform/Timer.h"
9 #include "platform/heap/Handle.h"
10 #include "public/platform/WebCallbacks.h"
11 #include "wtf/Noncopyable.h"
12 #include "wtf/PassRefPtr.h"
13 #include "wtf/RefPtr.h"
14
15 namespace blink {
16
17 class HTMLMediaElement;
18 class ScriptPromiseResolver;
19 struct WebSetSinkIdError;
20
21 class SetSinkIdCallbacks final : public WebCallbacks<void, WebSetSinkIdError> {
22 WTF_MAKE_NONCOPYABLE(SetSinkIdCallbacks);
23 public:
24 SetSinkIdCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, HTMLMediaE lement&, const String&);
25 ~SetSinkIdCallbacks() override;
26
27 void onSuccess() override;
28 void onError(WebSetSinkIdError*) override;
29
30 private:
31 RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver;
32 RefPtrWillBePersistent<HTMLMediaElement> m_element;
33 String m_sinkId;
34 };
35
36 } // namespace blink
37
38 #endif // SetSinkIdCallbacks_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698