Chromium Code Reviews| Index: chrome/browser/media/router/discovery/discovery_network_list.h |
| diff --git a/chrome/browser/media/router/discovery/discovery_network_list.h b/chrome/browser/media/router/discovery/discovery_network_list.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a3d69a854e812ccbb598ca2dadec8e86c003b084 |
| --- /dev/null |
| +++ b/chrome/browser/media/router/discovery/discovery_network_list.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 2017 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 CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_LIST_H_ |
| +#define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_LIST_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +struct DiscoveryNetworkId { |
| + // e.g. eth0, wlan0 |
| + std::string interface_name; |
| + // Some form of identifier for the network to which this interface is |
| + // connected. For WiFi, we assume the associated SSID identifies the |
| + // connected network. For Ethernet, we assume that the network remains the |
| + // same for each device, so we use the device's MAC address to identify the |
|
mark a. foltz
2017/05/04 23:16:38
s/for each device/for the interface (until disconn
btolsch
2017/05/23 08:55:02
Done.
|
| + // network. |
| + std::string network_id; |
| +}; |
| + |
| +std::vector<DiscoveryNetworkId> GetDiscoveryNetworkIdList(); |
| + |
| +#endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_LIST_H_ |