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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestImpl.h

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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
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
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" 34 #include "core/dom/SuspendableObject.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/peerconnection/RTCSessionDescriptionRequest.h" 36 #include "platform/peerconnection/RTCSessionDescriptionRequest.h"
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class RTCPeerConnection; 41 class RTCPeerConnection;
42 class RTCPeerConnectionErrorCallback; 42 class RTCPeerConnectionErrorCallback;
43 class RTCSessionDescriptionCallback; 43 class RTCSessionDescriptionCallback;
44 class WebRTCSessionDescription; 44 class WebRTCSessionDescription;
45 45
46 class RTCSessionDescriptionRequestImpl final 46 class RTCSessionDescriptionRequestImpl final
47 : public RTCSessionDescriptionRequest, 47 : public RTCSessionDescriptionRequest,
48 public ActiveDOMObject { 48 public SuspendableObject {
49 USING_GARBAGE_COLLECTED_MIXIN(RTCSessionDescriptionRequestImpl); 49 USING_GARBAGE_COLLECTED_MIXIN(RTCSessionDescriptionRequestImpl);
50 50
51 public: 51 public:
52 static RTCSessionDescriptionRequestImpl* create( 52 static RTCSessionDescriptionRequestImpl* create(
53 ExecutionContext*, 53 ExecutionContext*,
54 RTCPeerConnection*, 54 RTCPeerConnection*,
55 RTCSessionDescriptionCallback*, 55 RTCSessionDescriptionCallback*,
56 RTCPeerConnectionErrorCallback*); 56 RTCPeerConnectionErrorCallback*);
57 ~RTCSessionDescriptionRequestImpl() override; 57 ~RTCSessionDescriptionRequestImpl() override;
58 58
59 void requestSucceeded(const WebRTCSessionDescription&) override; 59 void requestSucceeded(const WebRTCSessionDescription&) override;
60 void requestFailed(const String& error) override; 60 void requestFailed(const String& error) override;
61 61
62 // ActiveDOMObject 62 // SuspendableObject
63 void contextDestroyed() override; 63 void contextDestroyed() override;
64 64
65 DECLARE_VIRTUAL_TRACE(); 65 DECLARE_VIRTUAL_TRACE();
66 66
67 private: 67 private:
68 RTCSessionDescriptionRequestImpl(ExecutionContext*, 68 RTCSessionDescriptionRequestImpl(ExecutionContext*,
69 RTCPeerConnection*, 69 RTCPeerConnection*,
70 RTCSessionDescriptionCallback*, 70 RTCSessionDescriptionCallback*,
71 RTCPeerConnectionErrorCallback*); 71 RTCPeerConnectionErrorCallback*);
72 72
73 void clear(); 73 void clear();
74 74
75 Member<RTCSessionDescriptionCallback> m_successCallback; 75 Member<RTCSessionDescriptionCallback> m_successCallback;
76 Member<RTCPeerConnectionErrorCallback> m_errorCallback; 76 Member<RTCPeerConnectionErrorCallback> m_errorCallback;
77 Member<RTCPeerConnection> m_requester; 77 Member<RTCPeerConnection> m_requester;
78 }; 78 };
79 79
80 } // namespace blink 80 } // namespace blink
81 81
82 #endif // RTCSessionDescriptionRequestImpl_h 82 #endif // RTCSessionDescriptionRequestImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698