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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // ActiveDOMObject | 128 // ActiveDOMObject |
129 virtual void suspend() OVERRIDE; | 129 virtual void suspend() OVERRIDE; |
130 virtual void resume() OVERRIDE; | 130 virtual void resume() OVERRIDE; |
131 virtual void stop() OVERRIDE; | 131 virtual void stop() OVERRIDE; |
132 virtual bool hasPendingActivity() const OVERRIDE { return !m_stopped; } | 132 virtual bool hasPendingActivity() const OVERRIDE { return !m_stopped; } |
133 | 133 |
134 private: | 134 private: |
135 RTCPeerConnection(ExecutionContext*, PassRefPtr<RTCConfiguration>, blink::We
bMediaConstraints, ExceptionState&); | 135 RTCPeerConnection(ExecutionContext*, PassRefPtr<RTCConfiguration>, blink::We
bMediaConstraints, ExceptionState&); |
136 | 136 |
137 static PassRefPtr<RTCConfiguration> parseConfiguration(const Dictionary& con
figuration, ExceptionState&); | 137 static PassRefPtr<RTCConfiguration> parseConfiguration(const Dictionary& con
figuration, ExceptionState&); |
138 void scheduleDispatchEvent(PassRefPtr<Event>); | 138 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); |
139 void dispatchScheduledEvent(); | 139 void dispatchScheduledEvent(); |
140 bool hasLocalStreamWithTrackId(const String& trackId); | 140 bool hasLocalStreamWithTrackId(const String& trackId); |
141 | 141 |
142 void changeSignalingState(blink::WebRTCPeerConnectionHandlerClient::Signalin
gState); | 142 void changeSignalingState(blink::WebRTCPeerConnectionHandlerClient::Signalin
gState); |
143 void changeIceGatheringState(blink::WebRTCPeerConnectionHandlerClient::ICEGa
theringState); | 143 void changeIceGatheringState(blink::WebRTCPeerConnectionHandlerClient::ICEGa
theringState); |
144 void changeIceConnectionState(blink::WebRTCPeerConnectionHandlerClient::ICEC
onnectionState); | 144 void changeIceConnectionState(blink::WebRTCPeerConnectionHandlerClient::ICEC
onnectionState); |
145 | 145 |
146 SignalingState m_signalingState; | 146 SignalingState m_signalingState; |
147 ICEGatheringState m_iceGatheringState; | 147 ICEGatheringState m_iceGatheringState; |
148 ICEConnectionState m_iceConnectionState; | 148 ICEConnectionState m_iceConnectionState; |
149 | 149 |
150 MediaStreamVector m_localStreams; | 150 MediaStreamVector m_localStreams; |
151 MediaStreamVector m_remoteStreams; | 151 MediaStreamVector m_remoteStreams; |
152 | 152 |
153 Vector<RefPtr<RTCDataChannel> > m_dataChannels; | 153 Vector<RefPtr<RTCDataChannel> > m_dataChannels; |
154 | 154 |
155 OwnPtr<blink::WebRTCPeerConnectionHandler> m_peerHandler; | 155 OwnPtr<blink::WebRTCPeerConnectionHandler> m_peerHandler; |
156 | 156 |
157 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner; | 157 AsyncMethodRunner<RTCPeerConnection> m_dispatchScheduledEventRunner; |
158 Vector<RefPtr<Event> > m_scheduledEvents; | 158 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
159 | 159 |
160 bool m_stopped; | 160 bool m_stopped; |
161 }; | 161 }; |
162 | 162 |
163 } // namespace WebCore | 163 } // namespace WebCore |
164 | 164 |
165 #endif // RTCPeerConnection_h | 165 #endif // RTCPeerConnection_h |
OLD | NEW |