WebRTC-DeprecateGlobalFieldTrialString/Enabled/ - part 8/inf
Convert p2p/.
This completes work started in https://webrtc-review.googlesource.com/c/src/+/255602
Bug: webrtc:10335
Change-Id: I39f70890be0599c8ef46ff7982d2a229e10e67ff
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/255827
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Jonas Oreland <jonaso@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36231}
diff --git a/api/ice_transport_interface.h b/api/ice_transport_interface.h
index f202658..c82027a 100644
--- a/api/ice_transport_interface.h
+++ b/api/ice_transport_interface.h
@@ -27,6 +27,7 @@
} // namespace cricket
namespace webrtc {
+class WebRtcKeyValueConfig;
// An ICE transport, as represented to the outside world.
// This object is refcounted, and is therefore alive until the
@@ -83,6 +84,11 @@
return ice_controller_factory_;
}
+ const WebRtcKeyValueConfig* field_trials() { return field_trials_; }
+ void set_field_trials(const WebRtcKeyValueConfig* field_trials) {
+ field_trials_ = field_trials;
+ }
+
private:
cricket::PortAllocator* port_allocator_ = nullptr;
AsyncDnsResolverFactoryInterface* async_dns_resolver_factory_ = nullptr;
@@ -90,6 +96,7 @@
AsyncResolverFactory* async_resolver_factory_ = nullptr;
RtcEventLog* event_log_ = nullptr;
cricket::IceControllerFactoryInterface* ice_controller_factory_ = nullptr;
+ const WebRtcKeyValueConfig* field_trials_ = nullptr;
// TODO(https://crbug.com/webrtc/12657): Redesign to have const members.
};