| 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 RTCPeerConnection_h | 31 #ifndef RTCPeerConnection_h |
| 32 #define RTCPeerConnection_h | 32 #define RTCPeerConnection_h |
| 33 | 33 |
| 34 #include <memory> | |
| 35 #include "bindings/core/v8/ActiveScriptWrappable.h" | 34 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 36 #include "bindings/core/v8/ScriptPromise.h" | 35 #include "bindings/core/v8/ScriptPromise.h" |
| 37 #include "core/dom/SuspendableObject.h" | 36 #include "core/dom/SuspendableObject.h" |
| 38 #include "modules/EventTargetModules.h" | 37 #include "modules/EventTargetModules.h" |
| 39 #include "modules/crypto/NormalizeAlgorithm.h" | 38 #include "modules/crypto/NormalizeAlgorithm.h" |
| 40 #include "modules/mediastream/MediaStream.h" | 39 #include "modules/mediastream/MediaStream.h" |
| 41 #include "modules/peerconnection/RTCIceCandidate.h" | 40 #include "modules/peerconnection/RTCIceCandidate.h" |
| 42 #include "platform/AsyncMethodRunner.h" | 41 #include "platform/AsyncMethodRunner.h" |
| 43 #include "platform/WebFrameScheduler.h" | |
| 44 #include "public/platform/WebMediaConstraints.h" | 42 #include "public/platform/WebMediaConstraints.h" |
| 45 #include "public/platform/WebRTCPeerConnectionHandler.h" | 43 #include "public/platform/WebRTCPeerConnectionHandler.h" |
| 46 #include "public/platform/WebRTCPeerConnectionHandlerClient.h" | 44 #include "public/platform/WebRTCPeerConnectionHandlerClient.h" |
| 45 #include <memory> |
| 47 | 46 |
| 48 namespace blink { | 47 namespace blink { |
| 49 class ExceptionState; | 48 class ExceptionState; |
| 50 class MediaStreamTrack; | 49 class MediaStreamTrack; |
| 51 class RTCAnswerOptions; | 50 class RTCAnswerOptions; |
| 52 class RTCConfiguration; | 51 class RTCConfiguration; |
| 53 class RTCDTMFSender; | 52 class RTCDTMFSender; |
| 54 class RTCDataChannel; | 53 class RTCDataChannel; |
| 55 class RTCIceCandidateInitOrRTCIceCandidate; | 54 class RTCIceCandidateInitOrRTCIceCandidate; |
| 56 class RTCOfferOptions; | 55 class RTCOfferOptions; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 ICEConnectionState m_iceConnectionState; | 246 ICEConnectionState m_iceConnectionState; |
| 248 | 247 |
| 249 MediaStreamVector m_localStreams; | 248 MediaStreamVector m_localStreams; |
| 250 MediaStreamVector m_remoteStreams; | 249 MediaStreamVector m_remoteStreams; |
| 251 | 250 |
| 252 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; | 251 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; |
| 253 | 252 |
| 254 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; | 253 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; |
| 255 HeapVector<Member<EventWrapper>> m_scheduledEvents; | 254 HeapVector<Member<EventWrapper>> m_scheduledEvents; |
| 256 | 255 |
| 257 // This handle notifies scheduler about an active connection associated | |
| 258 // with a frame. Handle should be destroyed when connection is closed. | |
| 259 std::unique_ptr<WebFrameScheduler::ActiveConnectionHandle> | |
| 260 m_connectionHandleForScheduler; | |
| 261 | |
| 262 bool m_stopped; | 256 bool m_stopped; |
| 263 bool m_closed; | 257 bool m_closed; |
| 264 | 258 |
| 265 bool m_hasDataChannels; // For RAPPOR metrics | 259 bool m_hasDataChannels; // For RAPPOR metrics |
| 266 }; | 260 }; |
| 267 | 261 |
| 268 } // namespace blink | 262 } // namespace blink |
| 269 | 263 |
| 270 #endif // RTCPeerConnection_h | 264 #endif // RTCPeerConnection_h |
| OLD | NEW |