| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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 WebRTCPeerConnectionHandlerClient_h | 31 #ifndef WebRTCPeerConnectionHandlerClient_h |
| 32 #define WebRTCPeerConnectionHandlerClient_h | 32 #define WebRTCPeerConnectionHandlerClient_h |
| 33 | 33 |
| 34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
| 35 #include "WebVector.h" |
| 35 | 36 |
| 36 namespace blink { | 37 namespace blink { |
| 37 | 38 |
| 38 class WebMediaStream; | 39 class WebMediaStream; |
| 39 class WebRTCDataChannelHandler; | 40 class WebRTCDataChannelHandler; |
| 40 class WebRTCICECandidate; | 41 class WebRTCICECandidate; |
| 42 class WebRTCRtpReceiver; |
| 41 | 43 |
| 42 class BLINK_PLATFORM_EXPORT WebRTCPeerConnectionHandlerClient { | 44 class BLINK_PLATFORM_EXPORT WebRTCPeerConnectionHandlerClient { |
| 43 public: | 45 public: |
| 44 enum SignalingState { | 46 enum SignalingState { |
| 45 kSignalingStateStable = 1, | 47 kSignalingStateStable = 1, |
| 46 kSignalingStateHaveLocalOffer = 2, | 48 kSignalingStateHaveLocalOffer = 2, |
| 47 kSignalingStateHaveRemoteOffer = 3, | 49 kSignalingStateHaveRemoteOffer = 3, |
| 48 kSignalingStateHaveLocalPrAnswer = 4, | 50 kSignalingStateHaveLocalPrAnswer = 4, |
| 49 kSignalingStateHaveRemotePrAnswer = 5, | 51 kSignalingStateHaveRemotePrAnswer = 5, |
| 50 kSignalingStateClosed = 6, | 52 kSignalingStateClosed = 6, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 69 kICEGatheringStateComplete = 3 | 71 kICEGatheringStateComplete = 3 |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 virtual ~WebRTCPeerConnectionHandlerClient(); | 74 virtual ~WebRTCPeerConnectionHandlerClient(); |
| 73 | 75 |
| 74 virtual void NegotiationNeeded() = 0; | 76 virtual void NegotiationNeeded() = 0; |
| 75 virtual void DidGenerateICECandidate(const WebRTCICECandidate&) = 0; | 77 virtual void DidGenerateICECandidate(const WebRTCICECandidate&) = 0; |
| 76 virtual void DidChangeSignalingState(SignalingState) = 0; | 78 virtual void DidChangeSignalingState(SignalingState) = 0; |
| 77 virtual void DidChangeICEGatheringState(ICEGatheringState) = 0; | 79 virtual void DidChangeICEGatheringState(ICEGatheringState) = 0; |
| 78 virtual void DidChangeICEConnectionState(ICEConnectionState) = 0; | 80 virtual void DidChangeICEConnectionState(ICEConnectionState) = 0; |
| 79 virtual void DidAddRemoteStream(const WebMediaStream&) = 0; | 81 virtual void DidAddRemoteStream( |
| 82 const WebMediaStream&, |
| 83 WebVector<std::unique_ptr<WebRTCRtpReceiver>>*) = 0; |
| 80 virtual void DidRemoveRemoteStream(const WebMediaStream&) = 0; | 84 virtual void DidRemoveRemoteStream(const WebMediaStream&) = 0; |
| 81 virtual void DidAddRemoteDataChannel(WebRTCDataChannelHandler*) = 0; | 85 virtual void DidAddRemoteDataChannel(WebRTCDataChannelHandler*) = 0; |
| 82 virtual void ReleasePeerConnectionHandler() = 0; | 86 virtual void ReleasePeerConnectionHandler() = 0; |
| 83 virtual void ClosePeerConnection(); | 87 virtual void ClosePeerConnection(); |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 } // namespace blink | 90 } // namespace blink |
| 87 | 91 |
| 88 #endif // WebRTCPeerConnectionHandlerClient_h | 92 #endif // WebRTCPeerConnectionHandlerClient_h |
| OLD | NEW |