aboutsummaryrefslogtreecommitdiff
path: root/osp/impl/mdns_platform_service.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-08-26 21:29:35 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-26 21:29:35 +0000
commit8c1d6562996fd78350510c66e282dcb50caa1655 (patch)
tree08f815bfcdaed1c2137de2d6966e42a8870dedb0 /osp/impl/mdns_platform_service.h
parent8beec73fbbcaaab6785c3f9cc5a9661afcbc7fa7 (diff)
parent6b563cff6fca9ffdd14a12d33795fef8e2562a26 (diff)
downloadopenscreen-8c1d6562996fd78350510c66e282dcb50caa1655.tar.gz
Upgrade openscreen to f54d92523c9f2c8c5afb99e05fed70e4b8772b1c am: 6b563cff6fandroid-s-v2-preview-2android-s-v2-preview-1android-s-v2-beta-2android-s-v2-preview-1
Original change: https://android-review.googlesource.com/c/platform/external/openscreen/+/1810936 Change-Id: I4af446c4bf4a92bc6fe1c6da2ac036a530aee809
Diffstat (limited to 'osp/impl/mdns_platform_service.h')
-rw-r--r--osp/impl/mdns_platform_service.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/osp/impl/mdns_platform_service.h b/osp/impl/mdns_platform_service.h
deleted file mode 100644
index aca4ffd7..00000000
--- a/osp/impl/mdns_platform_service.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2018 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef OSP_IMPL_MDNS_PLATFORM_SERVICE_H_
-#define OSP_IMPL_MDNS_PLATFORM_SERVICE_H_
-
-#include <vector>
-
-#include "platform/api/network_interface.h"
-#include "platform/api/udp_socket.h"
-
-namespace openscreen {
-namespace osp {
-
-class MdnsPlatformService {
- public:
- struct BoundInterface {
- BoundInterface(const InterfaceInfo& interface_info,
- const IPSubnet& subnet,
- UdpSocket* socket);
- ~BoundInterface();
-
- bool operator==(const BoundInterface& other) const;
- bool operator!=(const BoundInterface& other) const;
-
- InterfaceInfo interface_info;
- IPSubnet subnet;
- UdpSocket* socket;
- };
-
- virtual ~MdnsPlatformService() = default;
-
- virtual std::vector<BoundInterface> RegisterInterfaces(
- const std::vector<NetworkInterfaceIndex>& allowlist) = 0;
- virtual void DeregisterInterfaces(
- const std::vector<BoundInterface>& registered_interfaces) = 0;
-};
-
-} // namespace osp
-} // namespace openscreen
-
-#endif // OSP_IMPL_MDNS_PLATFORM_SERVICE_H_