| OLD | NEW |
| (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 #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& sinkId); |
| 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 |
| OLD | NEW |