mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 13:50:40 +01:00

Bug: webrtc:12338 Change-Id: I89c8b3a328d04203177522cbdfd9e606fd4bce4c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/228246 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34696}
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
/*
|
|
* Copyright 2020 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef API_SET_LOCAL_DESCRIPTION_OBSERVER_INTERFACE_H_
|
|
#define API_SET_LOCAL_DESCRIPTION_OBSERVER_INTERFACE_H_
|
|
|
|
#include "api/rtc_error.h"
|
|
#include "rtc_base/ref_count.h"
|
|
|
|
namespace webrtc {
|
|
|
|
// OnSetLocalDescriptionComplete() invokes as soon as
|
|
// PeerConnectionInterface::SetLocalDescription() operation completes, allowing
|
|
// the observer to examine the effects of the operation without delay.
|
|
class SetLocalDescriptionObserverInterface : public rtc::RefCountInterface {
|
|
public:
|
|
// On success, `error.ok()` is true.
|
|
virtual void OnSetLocalDescriptionComplete(RTCError error) = 0;
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // API_SET_LOCAL_DESCRIPTION_OBSERVER_INTERFACE_H_
|