aboutsummaryrefslogtreecommitdiff
path: root/api/call/call_factory_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/call/call_factory_interface.h')
-rw-r--r--api/call/call_factory_interface.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/api/call/call_factory_interface.h b/api/call/call_factory_interface.h
index 6051409cc3..db53d724a6 100644
--- a/api/call/call_factory_interface.h
+++ b/api/call/call_factory_interface.h
@@ -24,14 +24,19 @@ struct CallConfig;
// This interface exists to allow webrtc to be optionally built without media
// support (i.e., if only being used for data channels). PeerConnectionFactory
// is constructed with a CallFactoryInterface, which may or may not be null.
+// TODO(bugs.webrtc.org/15574): Delete this interface when
+// `PeerConnectionFactoryDependencies::call_factory` is removed in favor of
+// `PeerConnectionFactoryDependencies::media_factory`.
class CallFactoryInterface {
public:
- virtual ~CallFactoryInterface() {}
+ virtual ~CallFactoryInterface() = default;
- virtual Call* CreateCall(const CallConfig& config) = 0;
+ virtual std::unique_ptr<Call> CreateCall(const CallConfig& config) = 0;
};
-RTC_EXPORT std::unique_ptr<CallFactoryInterface> CreateCallFactory();
+[[deprecated("bugs.webrtc.org/15574")]] //
+RTC_EXPORT std::unique_ptr<CallFactoryInterface>
+CreateCallFactory();
} // namespace webrtc