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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual void createAnswer(const WebRTCSessionDescriptionRequest&, | 74 virtual void createAnswer(const WebRTCSessionDescriptionRequest&, |
75 const WebMediaConstraints&) = 0; | 75 const WebMediaConstraints&) = 0; |
76 virtual void createAnswer(const WebRTCSessionDescriptionRequest&, | 76 virtual void createAnswer(const WebRTCSessionDescriptionRequest&, |
77 const WebRTCAnswerOptions&) = 0; | 77 const WebRTCAnswerOptions&) = 0; |
78 virtual void setLocalDescription(const WebRTCVoidRequest&, | 78 virtual void setLocalDescription(const WebRTCVoidRequest&, |
79 const WebRTCSessionDescription&) = 0; | 79 const WebRTCSessionDescription&) = 0; |
80 virtual void setRemoteDescription(const WebRTCVoidRequest&, | 80 virtual void setRemoteDescription(const WebRTCVoidRequest&, |
81 const WebRTCSessionDescription&) = 0; | 81 const WebRTCSessionDescription&) = 0; |
82 virtual WebRTCSessionDescription localDescription() = 0; | 82 virtual WebRTCSessionDescription localDescription() = 0; |
83 virtual WebRTCSessionDescription remoteDescription() = 0; | 83 virtual WebRTCSessionDescription remoteDescription() = 0; |
84 virtual bool updateICE(const WebRTCConfiguration&) = 0; | 84 virtual bool setConfiguration(const WebRTCConfiguration&) = 0; |
85 virtual void logSelectedRtcpMuxPolicy(RtcpMuxPolicy) = 0; | 85 virtual void logSelectedRtcpMuxPolicy(RtcpMuxPolicy) = 0; |
86 | 86 |
87 // DEPRECATED | 87 // DEPRECATED |
88 virtual bool addICECandidate(const WebRTCICECandidate&) { return false; } | 88 virtual bool addICECandidate(const WebRTCICECandidate&) { return false; } |
89 | 89 |
90 virtual bool addICECandidate(const WebRTCVoidRequest&, | 90 virtual bool addICECandidate(const WebRTCVoidRequest&, |
91 const WebRTCICECandidate&) { | 91 const WebRTCICECandidate&) { |
92 return false; | 92 return false; |
93 } | 93 } |
94 virtual bool addStream(const WebMediaStream&, const WebMediaConstraints&) = 0; | 94 virtual bool addStream(const WebMediaStream&, const WebMediaConstraints&) = 0; |
95 virtual void removeStream(const WebMediaStream&) = 0; | 95 virtual void removeStream(const WebMediaStream&) = 0; |
96 virtual void getStats(const WebRTCStatsRequest&) = 0; | 96 virtual void getStats(const WebRTCStatsRequest&) = 0; |
97 // Gets stats using the new stats collection API, see | 97 // Gets stats using the new stats collection API, see |
98 // third_party/webrtc/api/stats/. These will replace the old stats collection | 98 // third_party/webrtc/api/stats/. These will replace the old stats collection |
99 // API when the new API has matured enough. | 99 // API when the new API has matured enough. |
100 virtual void getStats(std::unique_ptr<WebRTCStatsReportCallback>) = 0; | 100 virtual void getStats(std::unique_ptr<WebRTCStatsReportCallback>) = 0; |
101 virtual WebRTCDataChannelHandler* createDataChannel( | 101 virtual WebRTCDataChannelHandler* createDataChannel( |
102 const WebString& label, | 102 const WebString& label, |
103 const WebRTCDataChannelInit&) = 0; | 103 const WebRTCDataChannelInit&) = 0; |
104 virtual WebRTCDTMFSenderHandler* createDTMFSender( | 104 virtual WebRTCDTMFSenderHandler* createDTMFSender( |
105 const WebMediaStreamTrack&) = 0; | 105 const WebMediaStreamTrack&) = 0; |
106 virtual void stop() = 0; | 106 virtual void stop() = 0; |
107 }; | 107 }; |
108 | 108 |
109 } // namespace blink | 109 } // namespace blink |
110 | 110 |
111 #endif // WebRTCPeerConnectionHandler_h | 111 #endif // WebRTCPeerConnectionHandler_h |
OLD | NEW |