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 RTCVoidRequestPromiseImpl_h | |
6 #define RTCVoidRequestPromiseImpl_h | |
7 | |
8 #include "core/dom/ActiveDOMObject.h" | |
9 #include "platform/heap/Handle.h" | |
10 #include "platform/mediastream/RTCVoidRequest.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class ScriptPromiseResolver; | |
15 class RTCPeerConnection; | |
16 | |
17 class RTCVoidRequestPromiseImpl final : public RTCVoidRequest, public ActiveDOMO bject { | |
18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCVoidRequestPromiseImpl); | |
philipj_slow
2016/02/09 12:02:04
Looks like this class will only work with Oilpan,
Guido Urdaneta
2016/02/09 16:51:01
Done.
| |
19 public: | |
20 static RTCVoidRequestPromiseImpl* create(RTCPeerConnection*, ScriptPromiseRe solver*, const String& errorName); | |
21 ~RTCVoidRequestPromiseImpl() override; | |
22 | |
23 // RTCVoidRequest | |
24 void requestSucceeded() override; | |
25 void requestFailed(const String& error) override; | |
philipj_slow
2016/02/09 12:02:04
This seems a bit strange, shouldn't the type of er
Guido Urdaneta
2016/02/09 16:51:01
Already explained by hta.
| |
26 | |
27 // ActiveDOMObject | |
philipj_slow
2016/02/09 12:02:04
What happens if this is not an ActiveDOMObject and
Guido Urdaneta
2016/02/09 16:51:01
I removed the inheritance from ActiveDOMObject and
philipj_slow
2016/02/09 18:59:17
Makes sense!
| |
28 void stop() override; | |
29 | |
30 DECLARE_VIRTUAL_TRACE(); | |
31 | |
32 private: | |
33 RTCVoidRequestPromiseImpl(RTCPeerConnection*, ScriptPromiseResolver*, const String& errorName); | |
34 | |
35 void clear(); | |
36 | |
37 Member<ScriptPromiseResolver> m_resolver; | |
38 String m_errorName; | |
39 Member<RTCPeerConnection> m_requester; | |
40 }; | |
41 | |
42 } // namespace blink | |
43 | |
44 #endif // RTCVoidRequestPromiseImpl_h | |
OLD | NEW |