Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/media/router/discovery/discovery_network_info.h

Issue 2750453002: Add DiscoveryNetworkMonitor implementation (Closed)
Patch Set: Respond to mfoltz' comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_INFO_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_INFO_H_
mark a. foltz 2017/05/26 21:38:54 The main purpose of this file seems to be to suppo
btolsch 2017/05/26 23:38:10 Well discovery_network_monitor.h needs this struct
7
8 #include <string>
9
10 // Represents a single network interface that can be used for local discovery.
11 struct DiscoveryNetworkInfo {
12 public:
13 DiscoveryNetworkInfo();
14 DiscoveryNetworkInfo(std::string name, std::string network_id);
imcheng 2017/05/26 23:49:00 const std::string& for both parameters.
btolsch 2017/05/30 09:54:30 Done.
15 ~DiscoveryNetworkInfo() = default;
mark a. foltz 2017/05/26 21:38:54 If you're declaring the default ctor in the .cc yo
btolsch 2017/05/26 23:38:10 Done.
16
17 DiscoveryNetworkInfo(const DiscoveryNetworkInfo&);
18 DiscoveryNetworkInfo& operator=(const DiscoveryNetworkInfo&);
19
20 bool operator==(const DiscoveryNetworkInfo&) const;
21 bool operator!=(const DiscoveryNetworkInfo&) const;
22
23 // The name of the network interface. e.g. eth0, wlan0
24 std::string name;
25 // Some form of identifier for the network to which this interface is
26 // connected. For WiFi, we assume the associated SSID identifies the
27 // connected network. For Ethernet, we assume that the network remains the
28 // same for the interface (until disconnected), so we use the interface's MAC
29 // address to identify the network.
30 std::string network_id;
31 };
32
33 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DISCOVERY_NETWORK_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698