From 5ed4488cf51d5e9dee76c0e4202c48a052d17a36 Mon Sep 17 00:00:00 2001 From: Francis Tsui Date: Thu, 21 May 2026 16:20:55 -0700 Subject: [PATCH] internal PiperOrigin-RevId: 919310819 --- connections/implementation/mediums/BUILD | 2 -- connections/implementation/mediums/webrtc/BUILD | 3 ++- .../implementation/mediums/webrtc/webrtc_bwu_handler.cc | 4 ++-- .../mediums/{ => webrtc}/webrtc_endpoint_channel.cc | 2 +- .../mediums/{ => webrtc}/webrtc_endpoint_channel.h | 6 +++--- 5 files changed, 8 insertions(+), 9 deletions(-) rename connections/implementation/mediums/{ => webrtc}/webrtc_endpoint_channel.cc (94%) rename connections/implementation/mediums/{ => webrtc}/webrtc_endpoint_channel.h (86%) diff --git a/connections/implementation/mediums/BUILD b/connections/implementation/mediums/BUILD index f0af9ba8..2bb183de 100644 --- a/connections/implementation/mediums/BUILD +++ b/connections/implementation/mediums/BUILD @@ -31,7 +31,6 @@ cc_library( "bluetooth_endpoint_channel.cc", "bluetooth_radio.cc", "mediums.cc", - "webrtc_endpoint_channel.cc", "wifi_direct.cc", "wifi_direct_bwu_handler.cc", "wifi_direct_endpoint_channel.cc", @@ -54,7 +53,6 @@ cc_library( "bluetooth_endpoint_channel.h", "bluetooth_radio.h", "mediums.h", - "webrtc_endpoint_channel.h", "wifi.h", "wifi_direct.h", "wifi_direct_bwu_handler.h", diff --git a/connections/implementation/mediums/webrtc/BUILD b/connections/implementation/mediums/webrtc/BUILD index 916d5de8..435ed413 100644 --- a/connections/implementation/mediums/webrtc/BUILD +++ b/connections/implementation/mediums/webrtc/BUILD @@ -104,10 +104,12 @@ cc_library( name = "webrtc_impl", srcs = [ "webrtc_bwu_handler.cc", + "webrtc_endpoint_channel.cc", "webrtc_impl.cc", ], hdrs = [ "webrtc_bwu_handler.h", + "webrtc_endpoint_channel.h", "webrtc_impl.h", ], visibility = [ @@ -123,7 +125,6 @@ cc_library( "//connections/implementation:client_proxy", "//connections/implementation:endpoint_channel", "//connections/implementation:offline_frames", - "//connections/implementation/mediums", "//connections/implementation/mediums:webrtc", "//connections/implementation/mediums:webrtc_peer_id", "//connections/implementation/mediums:webrtc_socket", diff --git a/connections/implementation/mediums/webrtc/webrtc_bwu_handler.cc b/connections/implementation/mediums/webrtc/webrtc_bwu_handler.cc index 8b041220..33d898ec 100644 --- a/connections/implementation/mediums/webrtc/webrtc_bwu_handler.cc +++ b/connections/implementation/mediums/webrtc/webrtc_bwu_handler.cc @@ -18,13 +18,13 @@ #include #include +#include "absl/base/nullability.h" #include "absl/functional/bind_front.h" #include "connections/implementation/base_bwu_handler.h" #include "connections/implementation/client_proxy.h" #include "connections/implementation/endpoint_channel.h" -#include "absl/base/nullability.h" #include "connections/implementation/mediums/webrtc.h" -#include "connections/implementation/mediums/webrtc_endpoint_channel.h" +#include "connections/implementation/mediums/webrtc/webrtc_endpoint_channel.h" #include "connections/implementation/mediums/webrtc_peer_id.h" #include "connections/implementation/mediums/webrtc_socket.h" #include "connections/implementation/offline_frames.h" diff --git a/connections/implementation/mediums/webrtc_endpoint_channel.cc b/connections/implementation/mediums/webrtc/webrtc_endpoint_channel.cc similarity index 94% rename from connections/implementation/mediums/webrtc_endpoint_channel.cc rename to connections/implementation/mediums/webrtc/webrtc_endpoint_channel.cc index e054c416..bf939ea5 100644 --- a/connections/implementation/mediums/webrtc_endpoint_channel.cc +++ b/connections/implementation/mediums/webrtc/webrtc_endpoint_channel.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "connections/implementation/mediums/webrtc_endpoint_channel.h" +#include "connections/implementation/mediums/webrtc/webrtc_endpoint_channel.h" #include #include diff --git a/connections/implementation/mediums/webrtc_endpoint_channel.h b/connections/implementation/mediums/webrtc/webrtc_endpoint_channel.h similarity index 86% rename from connections/implementation/mediums/webrtc_endpoint_channel.h rename to connections/implementation/mediums/webrtc/webrtc_endpoint_channel.h index e7d396d5..6ceff1c6 100644 --- a/connections/implementation/mediums/webrtc_endpoint_channel.h +++ b/connections/implementation/mediums/webrtc/webrtc_endpoint_channel.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef CORE_INTERNAL_MEDIUMS_WEBRTC_ENDPOINT_CHANNEL_H_ -#define CORE_INTERNAL_MEDIUMS_WEBRTC_ENDPOINT_CHANNEL_H_ +#ifndef CORE_INTERNAL_MEDIUMS_WEBRTC_WEBRTC_ENDPOINT_CHANNEL_H_ +#define CORE_INTERNAL_MEDIUMS_WEBRTC_WEBRTC_ENDPOINT_CHANNEL_H_ #include #include @@ -41,4 +41,4 @@ class WebRtcEndpointChannel final : public BaseEndpointChannel { } // namespace connections } // namespace nearby -#endif // CORE_INTERNAL_MEDIUMS_WEBRTC_ENDPOINT_CHANNEL_H_ +#endif // CORE_INTERNAL_MEDIUMS_WEBRTC_WEBRTC_ENDPOINT_CHANNEL_H_