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 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 WebRTCPeerConnectionHandler_h | 31 #ifndef WebRTCPeerConnectionHandler_h |
32 #define WebRTCPeerConnectionHandler_h | 32 #define WebRTCPeerConnectionHandler_h |
33 | 33 |
| 34 #include "WebRTCStats.h" |
| 35 |
34 namespace blink { | 36 namespace blink { |
35 | 37 |
36 class WebMediaConstraints; | 38 class WebMediaConstraints; |
37 class WebMediaStream; | 39 class WebMediaStream; |
38 class WebMediaStreamTrack; | 40 class WebMediaStreamTrack; |
39 class WebRTCAnswerOptions; | 41 class WebRTCAnswerOptions; |
40 class WebRTCConfiguration; | 42 class WebRTCConfiguration; |
41 class WebRTCDTMFSenderHandler; | 43 class WebRTCDTMFSenderHandler; |
42 class WebRTCDataChannelHandler; | 44 class WebRTCDataChannelHandler; |
43 class WebRTCICECandidate; | 45 class WebRTCICECandidate; |
(...skipping 30 matching lines...) Expand all Loading... |
74 virtual bool updateICE(const WebRTCConfiguration&) = 0; | 76 virtual bool updateICE(const WebRTCConfiguration&) = 0; |
75 virtual void logSelectedRtcpMuxPolicy(RtcpMuxPolicy) = 0; | 77 virtual void logSelectedRtcpMuxPolicy(RtcpMuxPolicy) = 0; |
76 | 78 |
77 // DEPRECATED | 79 // DEPRECATED |
78 virtual bool addICECandidate(const WebRTCICECandidate&) { return false; } | 80 virtual bool addICECandidate(const WebRTCICECandidate&) { return false; } |
79 | 81 |
80 virtual bool addICECandidate(const WebRTCVoidRequest&, const WebRTCICECandid
ate&) { return false; } | 82 virtual bool addICECandidate(const WebRTCVoidRequest&, const WebRTCICECandid
ate&) { return false; } |
81 virtual bool addStream(const WebMediaStream&, const WebMediaConstraints&) =
0; | 83 virtual bool addStream(const WebMediaStream&, const WebMediaConstraints&) =
0; |
82 virtual void removeStream(const WebMediaStream&) = 0; | 84 virtual void removeStream(const WebMediaStream&) = 0; |
83 virtual void getStats(const WebRTCStatsRequest&) = 0; | 85 virtual void getStats(const WebRTCStatsRequest&) = 0; |
| 86 // Gets stats using the new stats collection API, see third_party/webrtc/api
/stats/. |
| 87 // These will replace the old stats collection API when the new API has matu
red enough. |
| 88 virtual void getStats(std::unique_ptr<WebRTCStatsReportCallback>) = 0; |
84 virtual WebRTCDataChannelHandler* createDataChannel(const WebString& label,
const WebRTCDataChannelInit&) = 0; | 89 virtual WebRTCDataChannelHandler* createDataChannel(const WebString& label,
const WebRTCDataChannelInit&) = 0; |
85 virtual WebRTCDTMFSenderHandler* createDTMFSender(const WebMediaStreamTrack&
) = 0; | 90 virtual WebRTCDTMFSenderHandler* createDTMFSender(const WebMediaStreamTrack&
) = 0; |
86 virtual void stop() = 0; | 91 virtual void stop() = 0; |
87 }; | 92 }; |
88 | 93 |
89 } // namespace blink | 94 } // namespace blink |
90 | 95 |
91 #endif // WebRTCPeerConnectionHandler_h | 96 #endif // WebRTCPeerConnectionHandler_h |
OLD | NEW |