| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 void dispatchScheduledEvent(); | 223 void dispatchScheduledEvent(); |
| 224 bool hasLocalStreamWithTrackId(const String& trackId); | 224 bool hasLocalStreamWithTrackId(const String& trackId); |
| 225 | 225 |
| 226 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState); | 226 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState); |
| 227 void changeIceGatheringState( | 227 void changeIceGatheringState( |
| 228 WebRTCPeerConnectionHandlerClient::ICEGatheringState); | 228 WebRTCPeerConnectionHandlerClient::ICEGatheringState); |
| 229 // Changes the state immediately; does not fire an event. | 229 // Changes the state immediately; does not fire an event. |
| 230 // Returns true if the state was changed. | 230 // Returns true if the state was changed. |
| 231 bool setIceConnectionState( | 231 bool setIceConnectionState( |
| 232 WebRTCPeerConnectionHandlerClient::ICEConnectionState); | 232 WebRTCPeerConnectionHandlerClient::ICEConnectionState); |
| 233 // Changes the state asynchronously and fires an event immediately after chang
ing the state. | 233 // Changes the state asynchronously and fires an event immediately after |
| 234 // changing the state. |
| 234 void changeIceConnectionState( | 235 void changeIceConnectionState( |
| 235 WebRTCPeerConnectionHandlerClient::ICEConnectionState); | 236 WebRTCPeerConnectionHandlerClient::ICEConnectionState); |
| 236 | 237 |
| 237 void closeInternal(); | 238 void closeInternal(); |
| 238 | 239 |
| 239 void recordRapporMetrics(); | 240 void recordRapporMetrics(); |
| 240 | 241 |
| 241 SignalingState m_signalingState; | 242 SignalingState m_signalingState; |
| 242 ICEGatheringState m_iceGatheringState; | 243 ICEGatheringState m_iceGatheringState; |
| 243 ICEConnectionState m_iceConnectionState; | 244 ICEConnectionState m_iceConnectionState; |
| 244 | 245 |
| 245 MediaStreamVector m_localStreams; | 246 MediaStreamVector m_localStreams; |
| 246 MediaStreamVector m_remoteStreams; | 247 MediaStreamVector m_remoteStreams; |
| 247 | 248 |
| 248 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; | 249 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; |
| 249 | 250 |
| 250 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; | 251 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; |
| 251 HeapVector<Member<EventWrapper>> m_scheduledEvents; | 252 HeapVector<Member<EventWrapper>> m_scheduledEvents; |
| 252 | 253 |
| 253 bool m_stopped; | 254 bool m_stopped; |
| 254 bool m_closed; | 255 bool m_closed; |
| 255 | 256 |
| 256 bool m_hasDataChannels; // For RAPPOR metrics | 257 bool m_hasDataChannels; // For RAPPOR metrics |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 } // namespace blink | 260 } // namespace blink |
| 260 | 261 |
| 261 #endif // RTCPeerConnection_h | 262 #endif // RTCPeerConnection_h |
| OLD | NEW |