The absl::string_view versions can now be made pure virtual due to downstream client changes. The std::string versions in the base classes are still needed by downstream users, but will be removed eventually. Bug: webrtc:13579 Change-Id: Id757a07380f0518edf407ff5d0644511eb1e53d3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/265980 Reviewed-by: Jonas Oreland <jonaso@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37349}
28 lines
771 B
C++
28 lines
771 B
C++
/*
|
|
* Copyright 2017 The WebRTC Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "p2p/base/port_interface.h"
|
|
|
|
#include <string>
|
|
|
|
#include "absl/strings/string_view.h"
|
|
|
|
namespace cricket {
|
|
|
|
PortInterface::PortInterface() = default;
|
|
|
|
PortInterface::~PortInterface() = default;
|
|
|
|
bool PortInterface::SupportsProtocol(const std::string& protocol) const {
|
|
return SupportsProtocol(absl::string_view(protocol));
|
|
}
|
|
|
|
} // namespace cricket
|