Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef RTCSessionDescriptionRequestImpl_h | 31 #ifndef RTCSessionDescriptionRequestImpl_h |
| 32 #define RTCSessionDescriptionRequestImpl_h | 32 #define RTCSessionDescriptionRequestImpl_h |
| 33 | 33 |
| 34 #include "core/dom/ActiveDOMObject.h" | |
| 35 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 36 #include "platform/mediastream/RTCSessionDescriptionRequest.h" | 35 #include "platform/mediastream/RTCSessionDescriptionRequest.h" |
| 37 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
| 38 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 39 | 38 |
| 40 namespace blink { | 39 namespace blink { |
| 41 | 40 |
| 42 class RTCErrorCallback; | |
| 43 class RTCPeerConnection; | 41 class RTCPeerConnection; |
| 42 class RTCPeerConnectionErrorCallback; | |
| 44 class RTCSessionDescriptionCallback; | 43 class RTCSessionDescriptionCallback; |
| 45 class WebRTCSessionDescription; | 44 class WebRTCSessionDescription; |
| 46 | 45 |
| 47 class RTCSessionDescriptionRequestImpl final : public RTCSessionDescriptionReque st, public ActiveDOMObject { | 46 class RTCSessionDescriptionRequestImpl final : public RTCSessionDescriptionReque st { |
|
philipj_slow
2016/02/24 08:14:03
Is the ActiveDOMObject change made possible by thi
Guido Urdaneta
2016/02/24 12:42:10
Reverted.
| |
| 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCSessionDescriptionRequestImpl); | |
| 49 public: | 47 public: |
| 50 static RTCSessionDescriptionRequestImpl* create(ExecutionContext*, RTCPeerCo nnection*, RTCSessionDescriptionCallback*, RTCErrorCallback*); | 48 static RTCSessionDescriptionRequestImpl* create(RTCPeerConnection*, RTCSessi onDescriptionCallback*, RTCPeerConnectionErrorCallback*); |
| 51 ~RTCSessionDescriptionRequestImpl() override; | 49 ~RTCSessionDescriptionRequestImpl() override; |
| 52 | 50 |
| 53 void requestSucceeded(const WebRTCSessionDescription&) override; | 51 void requestSucceeded(const WebRTCSessionDescription&) override; |
| 54 void requestFailed(const String& error) override; | 52 void requestFailed(const String& error) override; |
| 55 | 53 |
| 56 // ActiveDOMObject | |
| 57 void stop() override; | |
| 58 | |
| 59 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 60 | 55 |
| 61 private: | 56 private: |
| 62 RTCSessionDescriptionRequestImpl(ExecutionContext*, RTCPeerConnection*, RTCS essionDescriptionCallback*, RTCErrorCallback*); | 57 RTCSessionDescriptionRequestImpl(RTCPeerConnection*, RTCSessionDescriptionCa llback*, RTCPeerConnectionErrorCallback*); |
| 63 | 58 |
| 64 void clear(); | 59 void clear(); |
| 65 | 60 |
| 66 Member<RTCSessionDescriptionCallback> m_successCallback; | 61 Member<RTCSessionDescriptionCallback> m_successCallback; |
| 67 Member<RTCErrorCallback> m_errorCallback; | 62 Member<RTCPeerConnectionErrorCallback> m_errorCallback; |
| 68 Member<RTCPeerConnection> m_requester; | 63 Member<RTCPeerConnection> m_requester; |
| 69 }; | 64 }; |
| 70 | 65 |
| 71 } // namespace blink | 66 } // namespace blink |
| 72 | 67 |
| 73 #endif // RTCSessionDescriptionRequestImpl_h | 68 #endif // RTCSessionDescriptionRequestImpl_h |
| OLD | NEW |