| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 RTCSessionDescriptionRequestPromiseImpl_h | |
| 6 #define RTCSessionDescriptionRequestPromiseImpl_h | |
| 7 | |
| 8 #include "platform/mediastream/RTCSessionDescriptionRequest.h" | |
| 9 #include "wtf/text/WTFString.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class RTCPeerConnection; | |
| 14 class ScriptPromiseResolver; | |
| 15 class WebRTCSessionDescription; | |
| 16 | |
| 17 class RTCSessionDescriptionRequestPromiseImpl final : public RTCSessionDescripti
onRequest { | |
| 18 public: | |
| 19 static RTCSessionDescriptionRequestPromiseImpl* create(RTCPeerConnection*, S
criptPromiseResolver*); | |
| 20 ~RTCSessionDescriptionRequestPromiseImpl() override; | |
| 21 | |
| 22 // RTCSessionDescriptionRequest | |
| 23 void requestSucceeded(const WebRTCSessionDescription&) override; | |
| 24 void requestFailed(const String& error) override; | |
| 25 | |
| 26 DECLARE_VIRTUAL_TRACE(); | |
| 27 | |
| 28 private: | |
| 29 RTCSessionDescriptionRequestPromiseImpl(RTCPeerConnection*, ScriptPromiseRes
olver*); | |
| 30 | |
| 31 void clear(); | |
| 32 | |
| 33 Member<RTCPeerConnection> m_requester; | |
| 34 Member<ScriptPromiseResolver> m_resolver; | |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif // RTCSessionDescriptionRequestPromiseImpl_h | |
| OLD | NEW |