Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_LIST_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_LIST_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 struct DiscoveryNetworkId { | |
| 12 // e.g. eth0, wlan0 | |
| 13 std::string interface_name; | |
| 14 // Some form of identifier for the network to which this interface is | |
| 15 // connected. For WiFi, we assume the associated SSID identifies the | |
| 16 // connected network. For Ethernet, we assume that the network remains the | |
| 17 // 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.
| |
| 18 // network. | |
| 19 std::string network_id; | |
| 20 }; | |
| 21 | |
| 22 std::vector<DiscoveryNetworkId> GetDiscoveryNetworkIdList(); | |
| 23 | |
| 24 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_LIST_H_ | |
| OLD | NEW |