You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

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