Replace rtc::Optional with absl::optional
This is a no-op change because rtc::Optional is an alias to absl::optional
This CL generated by running script from modules with parameters
'pacing video_coding congestion_controller remote_bitrate_estimator':
find $@ -type f \( -name \*.h -o -name \*.cc \) \
-exec sed -i 's|rtc::Optional|absl::optional|g' {} \+ \
-exec sed -i 's|rtc::nullopt|absl::nullopt|g' {} \+ \
-exec sed -i 's|#include "api/optional.h"|#include "absl/types/optional.h"|' {} \+
find $@ -type f -name BUILD.gn \
-exec sed -r -i 's|"(../)*api:optional"|"//third_party/abseil-cpp/absl/types:optional"|' {} \+;
git cl format
Bug: webrtc:9078
Change-Id: I8ea501d7f1ee36e8d8cd3ed37e6b763c7fe29118
Reviewed-on: https://webrtc-review.googlesource.com/83900
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23640}
This commit is contained in:
committed by
Commit Bot
parent
ae1888629a
commit
0040b66ad3
@ -26,7 +26,7 @@
|
||||
#include "modules/congestion_controller/bbr/rtt_stats.h"
|
||||
#include "modules/congestion_controller/bbr/windowed_filter.h"
|
||||
|
||||
#include "api/optional.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "rtc_base/random.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -217,7 +217,7 @@ class BbrNetworkController : public NetworkControllerInterface {
|
||||
webrtc::Random random_;
|
||||
LossRateFilter loss_rate_;
|
||||
|
||||
rtc::Optional<TargetRateConstraints> constraints_;
|
||||
absl::optional<TargetRateConstraints> constraints_;
|
||||
|
||||
Mode mode_;
|
||||
|
||||
@ -244,7 +244,7 @@ class BbrNetworkController : public NetworkControllerInterface {
|
||||
MaxAckHeightFilter max_ack_height_;
|
||||
|
||||
// The time this aggregation started and the number of bytes acked during it.
|
||||
rtc::Optional<Timestamp> aggregation_epoch_start_time_;
|
||||
absl::optional<Timestamp> aggregation_epoch_start_time_;
|
||||
DataSize aggregation_epoch_bytes_;
|
||||
|
||||
// The number of bytes acknowledged since the last time bytes in flight
|
||||
@ -308,7 +308,7 @@ class BbrNetworkController : public NetworkControllerInterface {
|
||||
// Time at which PROBE_RTT has to be exited. Setting it to zero indicates
|
||||
// that the time is yet unknown as the number of packets in flight has not
|
||||
// reached the required value.
|
||||
rtc::Optional<Timestamp> exit_probe_rtt_at_;
|
||||
absl::optional<Timestamp> exit_probe_rtt_at_;
|
||||
// Indicates whether a round-trip has passed since PROBE_RTT became active.
|
||||
bool probe_rtt_round_passed_;
|
||||
|
||||
@ -321,7 +321,7 @@ class BbrNetworkController : public NetworkControllerInterface {
|
||||
// Receiving acknowledgement of a packet after |end_recovery_at_| will cause
|
||||
// BBR to exit the recovery mode. A set value indicates at least one
|
||||
// loss has been detected, so it must not be reset.
|
||||
rtc::Optional<int64_t> end_recovery_at_;
|
||||
absl::optional<int64_t> end_recovery_at_;
|
||||
// A window used to limit the number of bytes in flight during loss recovery.
|
||||
DataSize recovery_window_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user