Create separate WebRtc Platform.

PiperOrigin-RevId: 919258148
This commit is contained in:
Francis Tsui
2026-05-21 14:32:04 -07:00
committed by Copybara-Service
parent 97ea469006
commit 6fa56d81af
2 changed files with 51 additions and 0 deletions
+20
View File
@@ -87,6 +87,26 @@ cc_library(
],
)
cc_library(
name = "webrtc_platform",
hdrs = [
"webrtc_platform.h",
],
compatible_with = ["//buildenv/target:non_prod"],
visibility = [
"//:__subpackages__",
],
deps = [
":comm",
"//connections/implementation/proto:offline_wire_formats_cc_proto",
"//internal/platform:base",
# "//third_party/webrtc/files/stable/webrtc/api:libjingle_peerconnection_api",
# "//third_party/webrtc/files/stable/webrtc/api:scoped_refptr",
"@com_google_absl//absl/functional:any_invocable",
"@com_google_absl//absl/strings:string_view",
],
)
cc_library(
name = "comm",
hdrs = [
@@ -0,0 +1,31 @@
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef PLATFORM_API_WEBRTC_PLATFORM_H_
#define PLATFORM_API_WEBRTC_PLATFORM_H_
#include <memory>
#include "internal/platform/implementation/webrtc.h"
namespace nearby::api {
class WebRtcImplementationPlatform {
public:
static std::unique_ptr<WebRtcMedium> CreateWebRtcMedium();
};
} // namespace nearby::api
#endif // PLATFORM_API_WEBRTC_PLATFORM_H_