Migrate most of rtc_base/ to webrtc namespace
Files moved,
- boringssl_certificate.h
- buffer_queue.h
- byte_buffer.h
- data_rate_limiter.h
- recursive_critical_section.h
- dscp.h
- file_rotating_stream.h
- ifaddrs_converter.h
- log_sinks.h
- fifo_buffer.h
- memory_stream.h
- message_digest.h
- win32.h
- rate_tracker.h
- openssl_digest.h
- openssl_key_pair.h
- memory_usage.h
- ssl_certificate.h
- ssl_adapter.h
- platform_thread_types.h
- ssl_fingerprint.h
- cpu_time.h
- proxy_server.h
- boringssl_identity.h
- string_utils.h
- default_socket_server.h
- openssl_session_cache.h
- net_helpers.h
- network.h
- network_monitor_factory.h
- network_route.h
- sent_packet.h
- openssl_adapter.h
- openssl_stream_adapter.h
- operations_chain.h
- net_helper.h
No-Iwyu: ssl and socket related files don't play well it include cleaner
Bug: webrtc:42232595
Change-Id: I949cf4e8be6dab99ce170d8c7388c84fdcdd6447
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/382520
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44274}
diff --git a/rtc_base/ssl_stream_adapter.cc b/rtc_base/ssl_stream_adapter.cc
index 1e57759..70f5ceb 100644
--- a/rtc_base/ssl_stream_adapter.cc
+++ b/rtc_base/ssl_stream_adapter.cc
@@ -19,6 +19,7 @@
#include "absl/functional/any_invocable.h"
#include "absl/strings/string_view.h"
#include "api/array_view.h"
+#include "api/field_trials_view.h"
#include "rtc_base/openssl_stream_adapter.h"
#include "rtc_base/ssl_identity.h"
#include "rtc_base/stream.h"
@@ -84,19 +85,19 @@
std::unique_ptr<StreamInterface> stream,
absl::AnyInvocable<void(webrtc::SSLHandshakeError)> handshake_error,
const FieldTrialsView* field_trials) {
- return std::make_unique<rtc::OpenSSLStreamAdapter>(
+ return std::make_unique<OpenSSLStreamAdapter>(
std::move(stream), std::move(handshake_error), field_trials);
}
bool SSLStreamAdapter::IsBoringSsl() {
- return rtc::OpenSSLStreamAdapter::IsBoringSsl();
+ return OpenSSLStreamAdapter::IsBoringSsl();
}
bool SSLStreamAdapter::IsAcceptableCipher(int cipher, rtc::KeyType key_type) {
- return rtc::OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type);
+ return OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type);
}
bool SSLStreamAdapter::IsAcceptableCipher(absl::string_view cipher,
rtc::KeyType key_type) {
- return rtc::OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type);
+ return OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type);
}
// Default shim for backward compat.
@@ -118,11 +119,11 @@
///////////////////////////////////////////////////////////////////////////////
void SSLStreamAdapter::EnableTimeCallbackForTesting() {
- rtc::OpenSSLStreamAdapter::EnableTimeCallbackForTesting();
+ OpenSSLStreamAdapter::EnableTimeCallbackForTesting();
}
SSLProtocolVersion SSLStreamAdapter::GetMaxSupportedDTLSProtocolVersion() {
- return rtc::OpenSSLStreamAdapter::GetMaxSupportedDTLSProtocolVersion();
+ return OpenSSLStreamAdapter::GetMaxSupportedDTLSProtocolVersion();
}
///////////////////////////////////////////////////////////////////////////////