| 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 RTCPeerConnectionHandler_h | 31 #ifndef RTCPeerConnectionHandler_h |
| 32 #define RTCPeerConnectionHandler_h | 32 #define RTCPeerConnectionHandler_h |
| 33 | 33 |
| 34 #include "public/platform/WebMediaStream.h" | 34 #include "core/platform/mediastream/MediaStreamDescriptor.h" |
| 35 #include <wtf/PassOwnPtr.h> | 35 #include <wtf/PassOwnPtr.h> |
| 36 #include <wtf/PassRefPtr.h> | 36 #include <wtf/PassRefPtr.h> |
| 37 | 37 |
| 38 namespace WebKit { | 38 namespace WebKit { |
| 39 class WebRTCICECandidate; | 39 class WebRTCICECandidate; |
| 40 class WebRTCSessionDescription; | 40 class WebRTCSessionDescription; |
| 41 struct WebRTCDataChannelInit; | 41 struct WebRTCDataChannelInit; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 61 virtual bool initialize(PassRefPtr<RTCConfiguration>, PassRefPtr<MediaConstr
aints>) = 0; | 61 virtual bool initialize(PassRefPtr<RTCConfiguration>, PassRefPtr<MediaConstr
aints>) = 0; |
| 62 | 62 |
| 63 virtual void createOffer(PassRefPtr<RTCSessionDescriptionRequest>, PassRefPt
r<MediaConstraints>) = 0; | 63 virtual void createOffer(PassRefPtr<RTCSessionDescriptionRequest>, PassRefPt
r<MediaConstraints>) = 0; |
| 64 virtual void createAnswer(PassRefPtr<RTCSessionDescriptionRequest>, PassRefP
tr<MediaConstraints>) = 0; | 64 virtual void createAnswer(PassRefPtr<RTCSessionDescriptionRequest>, PassRefP
tr<MediaConstraints>) = 0; |
| 65 virtual void setLocalDescription(PassRefPtr<RTCVoidRequest>, WebKit::WebRTCS
essionDescription) = 0; | 65 virtual void setLocalDescription(PassRefPtr<RTCVoidRequest>, WebKit::WebRTCS
essionDescription) = 0; |
| 66 virtual void setRemoteDescription(PassRefPtr<RTCVoidRequest>, WebKit::WebRTC
SessionDescription) = 0; | 66 virtual void setRemoteDescription(PassRefPtr<RTCVoidRequest>, WebKit::WebRTC
SessionDescription) = 0; |
| 67 virtual WebKit::WebRTCSessionDescription localDescription() = 0; | 67 virtual WebKit::WebRTCSessionDescription localDescription() = 0; |
| 68 virtual WebKit::WebRTCSessionDescription remoteDescription() = 0; | 68 virtual WebKit::WebRTCSessionDescription remoteDescription() = 0; |
| 69 virtual bool updateIce(PassRefPtr<RTCConfiguration>, PassRefPtr<MediaConstra
ints>) = 0; | 69 virtual bool updateIce(PassRefPtr<RTCConfiguration>, PassRefPtr<MediaConstra
ints>) = 0; |
| 70 virtual bool addIceCandidate(WebKit::WebRTCICECandidate) = 0; | 70 virtual bool addIceCandidate(WebKit::WebRTCICECandidate) = 0; |
| 71 virtual bool addStream(WebKit::WebMediaStream, PassRefPtr<MediaConstraints>)
= 0; | 71 virtual bool addStream(PassRefPtr<MediaStreamDescriptor>, PassRefPtr<MediaCo
nstraints>) = 0; |
| 72 virtual void removeStream(WebKit::WebMediaStream) = 0; | 72 virtual void removeStream(PassRefPtr<MediaStreamDescriptor>) = 0; |
| 73 virtual void getStats(PassRefPtr<RTCStatsRequest>) = 0; | 73 virtual void getStats(PassRefPtr<RTCStatsRequest>) = 0; |
| 74 virtual PassOwnPtr<RTCDataChannelHandler> createDataChannel(const String& la
bel, const WebKit::WebRTCDataChannelInit&) = 0; | 74 virtual PassOwnPtr<RTCDataChannelHandler> createDataChannel(const String& la
bel, const WebKit::WebRTCDataChannelInit&) = 0; |
| 75 virtual PassOwnPtr<RTCDTMFSenderHandler> createDTMFSender(PassRefPtr<MediaSt
reamComponent>) = 0; | 75 virtual PassOwnPtr<RTCDTMFSenderHandler> createDTMFSender(PassRefPtr<MediaSt
reamComponent>) = 0; |
| 76 virtual void stop() = 0; | 76 virtual void stop() = 0; |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 RTCPeerConnectionHandler() { } | 79 RTCPeerConnectionHandler() { } |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace WebCore | 82 } // namespace WebCore |
| 83 | 83 |
| 84 #endif // RTCPeerConnectionHandler_h | 84 #endif // RTCPeerConnectionHandler_h |
| OLD | NEW |