| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google AB. All rights reserved. | 2 * Copyright (C) 2012 Google AB. 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 15 matching lines...) Expand all Loading... |
| 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 RTCPeerConnectionHandlerClient_h | 31 #ifndef RTCPeerConnectionHandlerClient_h |
| 32 #define RTCPeerConnectionHandlerClient_h | 32 #define RTCPeerConnectionHandlerClient_h |
| 33 | 33 |
| 34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
| 35 | 35 |
| 36 namespace WebKit { | 36 namespace blink { |
| 37 class WebRTCICECandidate; | 37 class WebRTCICECandidate; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class MediaStreamDescriptor; | 42 class MediaStreamDescriptor; |
| 43 class RTCDataChannelHandler; | 43 class RTCDataChannelHandler; |
| 44 | 44 |
| 45 class RTCPeerConnectionHandlerClient { | 45 class RTCPeerConnectionHandlerClient { |
| 46 public: | 46 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 enum IceGatheringState { | 66 enum IceGatheringState { |
| 67 IceGatheringStateNew = 1, | 67 IceGatheringStateNew = 1, |
| 68 IceGatheringStateGathering = 2, | 68 IceGatheringStateGathering = 2, |
| 69 IceGatheringStateComplete = 3 | 69 IceGatheringStateComplete = 3 |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 virtual ~RTCPeerConnectionHandlerClient() { } | 72 virtual ~RTCPeerConnectionHandlerClient() { } |
| 73 | 73 |
| 74 virtual void negotiationNeeded() = 0; | 74 virtual void negotiationNeeded() = 0; |
| 75 virtual void didGenerateIceCandidate(WebKit::WebRTCICECandidate) = 0; | 75 virtual void didGenerateIceCandidate(blink::WebRTCICECandidate) = 0; |
| 76 virtual void didChangeSignalingState(SignalingState) = 0; | 76 virtual void didChangeSignalingState(SignalingState) = 0; |
| 77 virtual void didChangeIceGatheringState(IceGatheringState) = 0; | 77 virtual void didChangeIceGatheringState(IceGatheringState) = 0; |
| 78 virtual void didChangeIceConnectionState(IceConnectionState) = 0; | 78 virtual void didChangeIceConnectionState(IceConnectionState) = 0; |
| 79 virtual void didAddRemoteStream(PassRefPtr<MediaStreamDescriptor>) = 0; | 79 virtual void didAddRemoteStream(PassRefPtr<MediaStreamDescriptor>) = 0; |
| 80 virtual void didRemoveRemoteStream(MediaStreamDescriptor*) = 0; | 80 virtual void didRemoveRemoteStream(MediaStreamDescriptor*) = 0; |
| 81 virtual void didAddRemoteDataChannel(PassOwnPtr<RTCDataChannelHandler>) = 0; | 81 virtual void didAddRemoteDataChannel(PassOwnPtr<RTCDataChannelHandler>) = 0; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace WebCore | 84 } // namespace WebCore |
| 85 | 85 |
| 86 #endif // RTCPeerConnectionHandlerClient_h | 86 #endif // RTCPeerConnectionHandlerClient_h |
| OLD | NEW |