1 /* 2 * Copyright (c) 2021 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 NET_DCSCTP_PUBLIC_DCSCTP_SOCKET_FACTORY_H_ 11 #define NET_DCSCTP_PUBLIC_DCSCTP_SOCKET_FACTORY_H_ 12 13 #include <memory> 14 15 #include "absl/strings/string_view.h" 16 #include "net/dcsctp/public/dcsctp_options.h" 17 #include "net/dcsctp/public/dcsctp_socket.h" 18 #include "net/dcsctp/public/packet_observer.h" 19 20 namespace dcsctp { 21 class DcSctpSocketFactory { 22 public: 23 virtual ~DcSctpSocketFactory(); 24 virtual std::unique_ptr<DcSctpSocketInterface> Create( 25 absl::string_view log_prefix, 26 DcSctpSocketCallbacks& callbacks, 27 std::unique_ptr<PacketObserver> packet_observer, 28 const DcSctpOptions& options); 29 }; 30 } // namespace dcsctp 31 32 #endif // NET_DCSCTP_PUBLIC_DCSCTP_SOCKET_FACTORY_H_ 33