Henrik Boström | 3163867 | 2017-11-23 17:48:32 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #ifndef API_SET_REMOTE_DESCRIPTION_OBSERVER_INTERFACE_H_ |
| 12 | #define API_SET_REMOTE_DESCRIPTION_OBSERVER_INTERFACE_H_ |
Henrik Boström | 3163867 | 2017-11-23 17:48:32 +0100 | [diff] [blame] | 13 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 14 | #include "api/rtc_error.h" |
| 15 | #include "rtc_base/ref_count.h" |
Henrik Boström | 3163867 | 2017-11-23 17:48:32 +0100 | [diff] [blame] | 16 | |
| 17 | namespace webrtc { |
| 18 | |
| 19 | // An observer for PeerConnectionInterface::SetRemoteDescription(). The |
| 20 | // callback is invoked such that the state of the peer connection can be |
| 21 | // examined to accurately reflect the effects of the SetRemoteDescription |
| 22 | // operation. |
| 23 | class SetRemoteDescriptionObserverInterface : public rtc::RefCountInterface { |
| 24 | public: |
| 25 | // On success, |error.ok()| is true. |
| 26 | virtual void OnSetRemoteDescriptionComplete(RTCError error) = 0; |
| 27 | }; |
| 28 | |
| 29 | } // namespace webrtc |
| 30 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 31 | #endif // API_SET_REMOTE_DESCRIPTION_OBSERVER_INTERFACE_H_ |