blob: 6e630453c4f0e008b9f46c2ca3255d6524bbb342 [file] [log] [blame]
Harald Alvestrand98462622019-01-30 14:57:03 +01001/*
2 * Copyright 2019 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_ICE_TRANSPORT_INTERFACE_H_
12#define API_ICE_TRANSPORT_INTERFACE_H_
13
14#include "api/rtc_error.h"
15#include "api/scoped_refptr.h"
16#include "rtc_base/ref_count.h"
17
18namespace cricket {
19class IceTransportInternal;
20} // namespace cricket
21
22namespace webrtc {
23
24// An ICE transport, as represented to the outside world.
25// This object is refcounted, and is therefore alive until the
26// last holder has released it.
27class IceTransportInterface : public rtc::RefCountInterface {
28 public:
29 // Accessor for the internal representation of an ICE transport.
30 // The returned object can only be safely used on the signalling thread.
31 // TODO(crbug.com/907849): Add API calls for the functions that have to
32 // be exposed to clients, and stop allowing access to the
33 // cricket::IceTransportInternal API.
34 virtual cricket::IceTransportInternal* internal() = 0;
35};
36
37} // namespace webrtc
38#endif // API_ICE_TRANSPORT_INTERFACE_H_