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