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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState)
; | 191 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState)
; |
192 void changeIceGatheringState(WebRTCPeerConnectionHandlerClient::ICEGathering
State); | 192 void changeIceGatheringState(WebRTCPeerConnectionHandlerClient::ICEGathering
State); |
193 // Changes the state immediately; does not fire an event. | 193 // Changes the state immediately; does not fire an event. |
194 // Returns true if the state was changed. | 194 // Returns true if the state was changed. |
195 bool setIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnectionS
tate); | 195 bool setIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnectionS
tate); |
196 // Changes the state asynchronously and fires an event immediately after cha
nging the state. | 196 // Changes the state asynchronously and fires an event immediately after cha
nging the state. |
197 void changeIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnecti
onState); | 197 void changeIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnecti
onState); |
198 | 198 |
199 void closeInternal(); | 199 void closeInternal(); |
200 | 200 |
| 201 void recordRapporMetrics(); |
| 202 |
201 SignalingState m_signalingState; | 203 SignalingState m_signalingState; |
202 ICEGatheringState m_iceGatheringState; | 204 ICEGatheringState m_iceGatheringState; |
203 ICEConnectionState m_iceConnectionState; | 205 ICEConnectionState m_iceConnectionState; |
204 | 206 |
205 MediaStreamVector m_localStreams; | 207 MediaStreamVector m_localStreams; |
206 MediaStreamVector m_remoteStreams; | 208 MediaStreamVector m_remoteStreams; |
207 | 209 |
208 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; | 210 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; |
209 | 211 |
210 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; | 212 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; |
211 HeapVector<Member<EventWrapper>> m_scheduledEvents; | 213 HeapVector<Member<EventWrapper>> m_scheduledEvents; |
212 | 214 |
213 bool m_stopped; | 215 bool m_stopped; |
214 bool m_closed; | 216 bool m_closed; |
| 217 |
| 218 bool m_hasDataChannels; // For RAPPOR metrics |
215 }; | 219 }; |
216 | 220 |
217 } // namespace blink | 221 } // namespace blink |
218 | 222 |
219 #endif // RTCPeerConnection_h | 223 #endif // RTCPeerConnection_h |
OLD | NEW |