blob: 8e7b6258d32dd2642542cd13ffa056c0f38717ba [file] [log] [blame]
Henrik Boström831ae4e2020-07-29 10:04:001/*
2 * Copyright 2020 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
11#ifndef API_SET_LOCAL_DESCRIPTION_OBSERVER_INTERFACE_H_
12#define API_SET_LOCAL_DESCRIPTION_OBSERVER_INTERFACE_H_
13
14#include "api/rtc_error.h"
15#include "rtc_base/ref_count.h"
16
17namespace webrtc {
18
19// OnSetLocalDescriptionComplete() invokes as soon as
20// PeerConnectionInterface::SetLocalDescription() operation completes, allowing
21// the observer to examine the effects of the operation without delay.
22class SetLocalDescriptionObserverInterface : public rtc::RefCountInterface {
23 public:
Artem Titovcfea2182021-08-09 23:22:3124 // On success, `error.ok()` is true.
Henrik Boström831ae4e2020-07-29 10:04:0025 virtual void OnSetLocalDescriptionComplete(RTCError error) = 0;
26};
27
28} // namespace webrtc
29
30#endif // API_SET_LOCAL_DESCRIPTION_OBSERVER_INTERFACE_H_