blob: 582435dd78d3f780803d610e76ca9180500dbde4 [file] [log] [blame]
Thieu Le3426c8f2012-01-11 17:35:11 -08001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Paul Stewart0af98bf2011-05-10 17:38:08 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Ben Chanc45688b2014-07-02 23:50:45 -07005#ifndef SHILL_DEVICE_INFO_H_
6#define SHILL_DEVICE_INFO_H_
Paul Stewart0af98bf2011-05-10 17:38:08 -07007
Darin Petkove6193c02011-08-11 12:42:40 -07008#include <map>
Ben Chancd477322014-10-17 14:19:30 -07009#include <memory>
mukesh agrawal8f317b62011-07-15 11:53:23 -070010#include <set>
11#include <string>
Paul Stewart9a908082011-08-31 12:18:48 -070012#include <vector>
mukesh agrawal8f317b62011-07-15 11:53:23 -070013
Eric Shienbrood3e20a232012-02-16 11:35:56 -050014#include <base/callback.h>
Paul Stewart050cfc02012-07-06 20:38:54 -070015#include <base/cancelable_callback.h>
Ben Chana0ddf462014-02-06 11:32:42 -080016#include <base/files/file_path.h>
Paul Stewartb50f0b92011-05-16 16:31:42 -070017#include <base/memory/ref_counted.h>
Darin Petkov5a850472012-06-06 15:44:24 +020018#include <base/memory/weak_ptr.h>
Darin Petkov0828f5f2011-08-11 10:18:52 -070019#include <gtest/gtest_prod.h> // for FRIEND_TEST
Paul Stewart0af98bf2011-05-10 17:38:08 -070020
Chris Masone9be4a9d2011-05-16 15:44:09 -070021#include "shill/device.h"
Peter Qiu8d6b5972014-10-28 15:33:34 -070022#include "shill/net/byte_string.h"
23#include "shill/net/ip_address.h"
24#include "shill/net/rtnl_listener.h"
25#include "shill/net/shill_time.h"
Paul Stewartcba0f7f2012-02-29 16:33:05 -080026#include "shill/technology.h"
Paul Stewart0af98bf2011-05-10 17:38:08 -070027
28namespace shill {
29
Paul Stewartb50f0b92011-05-16 16:31:42 -070030class Manager;
Thieu Le3426c8f2012-01-11 17:35:11 -080031class Metrics;
Paul Stewart2ddf2c62013-04-16 09:47:34 -070032class NetlinkManager;
Wade Guthrie7347bf22013-04-30 11:21:51 -070033class Nl80211Message;
Paul Stewart8c116a92012-05-02 18:30:03 -070034class RoutingTable;
Paul Stewart9a908082011-08-31 12:18:48 -070035class RTNLHandler;
Chris Masone2aa97072011-08-09 17:35:08 -070036class RTNLMessage;
Gary Morain41780232012-07-31 15:08:31 -070037class Sockets;
Paul Stewartb50f0b92011-05-16 16:31:42 -070038
Darin Petkov5a850472012-06-06 15:44:24 +020039class DeviceInfo : public base::SupportsWeakPtr<DeviceInfo> {
Paul Stewart0af98bf2011-05-10 17:38:08 -070040 public:
Paul Stewart9a908082011-08-31 12:18:48 -070041 struct AddressData {
42 AddressData()
Paul Stewart7355ce12011-09-02 10:47:01 -070043 : address(IPAddress::kFamilyUnknown), flags(0), scope(0) {}
Paul Stewart9a908082011-08-31 12:18:48 -070044 AddressData(const IPAddress &address_in,
45 unsigned char flags_in,
46 unsigned char scope_in)
47 : address(address_in), flags(flags_in), scope(scope_in) {}
48 IPAddress address;
49 unsigned char flags;
50 unsigned char scope;
51 };
52
Jason Glasgowabc54032012-04-20 16:08:32 -040053 // Device name prefix for modem pseudo devices used in testing.
54 static const char kModemPseudoDeviceNamePrefix[];
Christopher Wileye049cc52012-09-10 14:36:57 -070055 // Device name prefix for virtual ethernet devices used in testing.
56 static const char kEthernetPseudoDeviceNamePrefix[];
Paul Stewart83d62562015-02-09 19:57:47 -080057 // Device name prefix for virtual ethernet devices that should be ignored.
58 static const char kIgnoredDeviceNamePrefix[];
Ben Chanb061f892013-02-27 17:46:55 -080059 // Time interval for polling for link statistics.
60 static const int kRequestLinkStatisticsIntervalMilliseconds;
Jason Glasgowabc54032012-04-20 16:08:32 -040061
Paul Stewartb50f0b92011-05-16 16:31:42 -070062 DeviceInfo(ControlInterface *control_interface,
63 EventDispatcher *dispatcher,
Thieu Le3426c8f2012-01-11 17:35:11 -080064 Metrics *metrics,
Paul Stewartb50f0b92011-05-16 16:31:42 -070065 Manager *manager);
Darin Petkov5a850472012-06-06 15:44:24 +020066 virtual ~DeviceInfo();
Darin Petkov887f2982011-07-14 16:10:17 -070067
Peter Qiu7e8b8ee2014-11-25 13:55:57 -080068 virtual void AddDeviceToBlackList(const std::string &device_name);
69 virtual void RemoveDeviceFromBlackList(const std::string &device_name);
mukesh agrawal12533ad2013-08-01 15:43:23 -070070 virtual bool IsDeviceBlackListed(const std::string &device_name);
Paul Stewart0af98bf2011-05-10 17:38:08 -070071 void Start();
72 void Stop();
Darin Petkov887f2982011-07-14 16:10:17 -070073
Ben Chan5086b972013-01-15 21:51:38 -080074 std::vector<std::string> GetUninitializedTechnologies() const;
75
Darin Petkov6f9eaa32011-08-09 15:26:44 -070076 // Adds |device| to this DeviceInfo instance so that we can handle its link
77 // messages, and registers it with the manager.
David Rochbergfa1d31d2012-03-20 10:38:07 -040078 virtual void RegisterDevice(const DeviceRefPtr &device);
Darin Petkov6f9eaa32011-08-09 15:26:44 -070079
Jason Glasgowe9089492012-02-23 17:57:37 -050080 // Remove |device| from this DeviceInfo. This function should only
81 // be called for cellular devices because the lifetime of the
82 // cellular devices is controlled by the Modem object and its
83 // communication to modem manager, rather than by RTNL messages.
David Rochbergfa1d31d2012-03-20 10:38:07 -040084 virtual void DeregisterDevice(const DeviceRefPtr &device);
Jason Glasgowe9089492012-02-23 17:57:37 -050085
Paul Stewartc8f4bef2011-12-13 09:45:51 -080086 virtual DeviceRefPtr GetDevice(int interface_index) const;
Paul Stewart32852962011-08-30 14:06:53 -070087 virtual bool GetMACAddress(int interface_index, ByteString *address) const;
Gary Morainbf74a672012-07-30 16:27:19 -070088
89 // Queries the kernel for a MAC address for |interface_index|. Returns an
90 // empty ByteString on failure.
91 virtual ByteString GetMACAddressFromKernel(int interface_index) const;
Gary Morain41780232012-07-31 15:08:31 -070092
Paul Stewart6950ba52013-12-05 08:28:14 -080093 // Queries the kernel for the MAC address of |peer| on |interface_index|.
94 // Returns true and populates |mac_address| on success, otherwise returns
95 // false.
96 virtual bool GetMACAddressOfPeer(int interface_index,
97 const IPAddress &peer,
98 ByteString *mac_address) const;
99
Chris Masone626719f2011-08-18 16:58:48 -0700100 virtual bool GetFlags(int interface_index, unsigned int *flags) const;
Paul Stewart1ac4e842012-07-10 12:58:12 -0700101 virtual bool GetByteCounts(int interface_index,
Ben Chan7fab8972014-08-10 17:14:46 -0700102 uint64_t *rx_bytes, uint64_t *tx_bytes) const;
Paul Stewart9a908082011-08-31 12:18:48 -0700103 virtual bool GetAddresses(int interface_index,
104 std::vector<AddressData> *addresses) const;
Paul Stewarta0db0ff2013-12-09 09:48:47 -0800105
Paul Stewart05a42c22012-08-02 16:47:21 -0700106 // Flush all addresses associated with |interface_index|.
Paul Stewart9a908082011-08-31 12:18:48 -0700107 virtual void FlushAddresses(int interface_index) const;
Paul Stewart05a42c22012-08-02 16:47:21 -0700108 // Returns whether this interface does not have |this_address|
109 // but has another non-temporary address of the same family.
110 virtual bool HasOtherAddress(
111 int interface_index, const IPAddress &this_address) const;
Paul Stewartd55f6ae2014-04-24 16:34:21 -0700112
113 // Get the preferred globally scoped IPv6 address for |interface_index|.
114 // This method returns true and sets |address| if a primary IPv6 address
115 // exists. Otherwise it returns false and leaves |address| unmodified.
Paul Stewartd4f26482014-04-25 19:12:03 -0700116 virtual bool GetPrimaryIPv6Address(int interface_index, IPAddress *address);
Paul Stewartd55f6ae2014-04-24 16:34:21 -0700117
Peter Qiu98551702014-07-28 13:28:53 -0700118 // Get the IPv6 DNS server addresses for |interface_index|. This method
119 // returns true and sets |address_list| and |life_time_seconds| if the IPv6
120 // DNS server addresses exists. Otherwise, it returns false and leave
121 // |address_list| and |life_time_seconds| unmodified. |life_time_seconds|
122 // indicates the number of the seconds the DNS server is still valid for at
123 // the time of this function call. Value of 0 means the DNS server is not
124 // valid anymore, and value of 0xFFFFFFFF means the DNS server is valid
125 // forever.
126 virtual bool GetIPv6DnsServerAddresses(int interface_index,
127 std::vector<IPAddress> *address_list,
Ben Chan7fab8972014-08-10 17:14:46 -0700128 uint32_t *life_time_seconds);
Peter Qiu98551702014-07-28 13:28:53 -0700129
Paul Stewarta0db0ff2013-12-09 09:48:47 -0800130 // Returns true if any of the addresses on |interface_index| are on the
131 // same network prefix as |address|.
132 virtual bool HasDirectConnectivityTo(
133 int interface_index, const IPAddress &address) const;
134
Paul Stewartca6abd42012-03-01 15:45:29 -0800135 virtual bool CreateTunnelInterface(std::string *interface_name) const;
Prabhu Kaliamoorthi127b3412014-10-16 13:00:25 +0200136 virtual int OpenTunnelInterface(const std::string &interface_name) const;
Paul Stewartca6abd42012-03-01 15:45:29 -0800137 virtual bool DeleteInterface(int interface_index) const;
Paul Stewart0af98bf2011-05-10 17:38:08 -0700138
Darin Petkovf8046b82012-04-24 16:29:23 +0200139 // Returns the interface index for |interface_name| or -1 if unknown.
140 virtual int GetIndex(const std::string &interface_name) const;
141
Paul Stewart0af98bf2011-05-10 17:38:08 -0700142 private:
Paul Stewart050cfc02012-07-06 20:38:54 -0700143 friend class DeviceInfoDelayedCreationTest;
Paul Stewartca876ee2012-04-21 08:55:58 -0700144 friend class DeviceInfoTechnologyTest;
Darin Petkov887f2982011-07-14 16:10:17 -0700145 friend class DeviceInfoTest;
Darin Petkov0828f5f2011-08-11 10:18:52 -0700146 FRIEND_TEST(CellularTest, StartLinked);
Ben Chan4b285862012-10-10 22:52:16 -0700147 FRIEND_TEST(DeviceInfoTest, CreateDeviceWiMax);
Peter Qiu9f5159e2014-09-12 16:50:14 -0700148 FRIEND_TEST(DeviceInfoTest, DeviceRemovedEvent);
Ben Chan5086b972013-01-15 21:51:38 -0800149 FRIEND_TEST(DeviceInfoTest, GetUninitializedTechnologies);
Thieu Leb27beee2012-04-20 09:19:06 -0700150 FRIEND_TEST(DeviceInfoTest, HasSubdir); // For HasSubdir.
Paul Stewartd55f6ae2014-04-24 16:34:21 -0700151 FRIEND_TEST(DeviceInfoTest, IPv6AddressChanged); // For infos_.
Paul Stewart1ac4e842012-07-10 12:58:12 -0700152 FRIEND_TEST(DeviceInfoTest, RequestLinkStatistics);
Paul Stewart8c116a92012-05-02 18:30:03 -0700153 FRIEND_TEST(DeviceInfoTest, StartStop);
Peter Qiu98551702014-07-28 13:28:53 -0700154 FRIEND_TEST(DeviceInfoTest, IPv6DnsServerAddressesChanged); // For infos_.
Darin Petkov887f2982011-07-14 16:10:17 -0700155
Darin Petkove6193c02011-08-11 12:42:40 -0700156 struct Info {
Ben Chan5086b972013-01-15 21:51:38 -0800157 Info()
158 : flags(0),
159 rx_bytes(0),
160 tx_bytes(0),
161 has_addresses_only(false),
162 technology(Technology::kUnknown)
163 {}
Darin Petkove6193c02011-08-11 12:42:40 -0700164
165 DeviceRefPtr device;
Darin Petkovf8046b82012-04-24 16:29:23 +0200166 std::string name;
Paul Stewart32852962011-08-30 14:06:53 -0700167 ByteString mac_address;
Paul Stewart9a908082011-08-31 12:18:48 -0700168 std::vector<AddressData> ip_addresses;
Peter Qiu98551702014-07-28 13:28:53 -0700169 std::vector<IPAddress> ipv6_dns_server_addresses;
Ben Chan7fab8972014-08-10 17:14:46 -0700170 uint32_t ipv6_dns_server_lifetime_seconds;
Peter Qiu98551702014-07-28 13:28:53 -0700171 time_t ipv6_dns_server_received_time_seconds;
Darin Petkove6193c02011-08-11 12:42:40 -0700172 unsigned int flags;
Ben Chan7fab8972014-08-10 17:14:46 -0700173 uint64_t rx_bytes;
174 uint64_t tx_bytes;
Paul Stewart1ac4e842012-07-10 12:58:12 -0700175
Paul Stewart8c116a92012-05-02 18:30:03 -0700176 // This flag indicates that link information has not been retrieved yet;
177 // only the ip_addresses field is valid.
178 bool has_addresses_only;
Ben Chan5086b972013-01-15 21:51:38 -0800179
180 Technology::Identifier technology;
Darin Petkove6193c02011-08-11 12:42:40 -0700181 };
182
Paul Stewartca876ee2012-04-21 08:55:58 -0700183 // Root of the kernel sysfs directory holding network device info.
184 static const char kDeviceInfoRoot[];
Ben Chan4e64d2d2012-05-16 00:02:25 -0700185 // Name of the "cdc_ether" driver. This driver is not included in the
186 // kModemDrivers list because we need to do additional checking.
187 static const char kDriverCdcEther[];
Ben Chan4eb4ddf2013-06-20 22:16:56 -0700188 // Name of the "cdc_ncm" driver. This driver is not included in the
189 // kModemDrivers list because we need to do additional checking.
190 static const char kDriverCdcNcm[];
Ben Chan4e64d2d2012-05-16 00:02:25 -0700191 // Name of the GDM WiMAX driver.
192 static const char kDriverGdmWiMax[];
mukesh agrawal93a29ed2012-04-17 16:13:01 -0700193 // Name of the virtio network driver.
194 static const char kDriverVirtioNet[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700195 // Sysfs path to a device uevent file.
Paul Stewartbf1861b2011-08-23 15:45:35 -0700196 static const char kInterfaceUevent[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700197 // Content of a device uevent file that indicates it is a wifi device.
Paul Stewart9364c4c2011-12-06 17:12:42 -0800198 static const char kInterfaceUeventWifiSignature[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700199 // Sysfs path to a device via its interface name.
200 static const char kInterfaceDevice[];
201 // Sysfs path to the driver of a device via its interface name.
Paul Stewartbf1861b2011-08-23 15:45:35 -0700202 static const char kInterfaceDriver[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700203 // Sysfs path to the file that is used to determine if this is tun device.
Paul Stewartcba0f7f2012-02-29 16:33:05 -0800204 static const char kInterfaceTunFlags[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700205 // Sysfs path to the file that is used to determine if a wifi device is
206 // operating in monitor mode.
Paul Stewart2001a422011-12-15 10:20:09 -0800207 static const char kInterfaceType[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700208 // Modem drivers that we support.
Paul Stewartb50f0b92011-05-16 16:31:42 -0700209 static const char *kModemDrivers[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700210 // Path to the tun device.
Paul Stewartcba0f7f2012-02-29 16:33:05 -0800211 static const char kTunDeviceName[];
Paul Stewart050cfc02012-07-06 20:38:54 -0700212 // Time to wait before registering devices which need extra time to detect.
213 static const int kDelayedDeviceCreationSeconds;
Paul Stewartb50f0b92011-05-16 16:31:42 -0700214
Paul Stewart8c116a92012-05-02 18:30:03 -0700215 // Create a Device object for the interface named |linkname|, with a
216 // string-form MAC address |address|, whose kernel interface index
217 // is |interface_index| and detected technology is |technology|.
Paul Stewart050cfc02012-07-06 20:38:54 -0700218 virtual DeviceRefPtr CreateDevice(const std::string &link_name,
219 const std::string &address,
220 int interface_index,
221 Technology::Identifier technology);
Paul Stewart8c116a92012-05-02 18:30:03 -0700222
Paul Stewartca876ee2012-04-21 08:55:58 -0700223 // Return the FilePath for a given |path_name| in the device sysinfo for
224 // a specific interface |iface_name|.
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800225 base::FilePath GetDeviceInfoPath(const std::string &iface_name,
Paul Stewartca876ee2012-04-21 08:55:58 -0700226 const std::string &path_name);
227 // Return the contents of the device info file |path_name| for interface
228 // |iface_name| in output parameter |contents_out|. Returns true if file
229 // read succeeded, false otherwise.
230 bool GetDeviceInfoContents(const std::string &iface_name,
231 const std::string &path_name,
232 std::string *contents_out);
233
234 // Return the filepath for the target of the device info symbolic link
235 // |path_name| for interface |iface_name| in output parameter |path_out|.
236 // Returns true if symbolic link read succeeded, false otherwise.
237 bool GetDeviceInfoSymbolicLink(const std::string &iface_name,
238 const std::string &path_name,
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800239 base::FilePath *path_out);
Paul Stewartca876ee2012-04-21 08:55:58 -0700240 // Classify the device named |iface_name|, and return an identifier
241 // indicating its type.
Paul Stewart050cfc02012-07-06 20:38:54 -0700242 virtual Technology::Identifier GetDeviceTechnology(
243 const std::string &iface_name);
Thieu Le8f1c8352012-04-16 11:02:12 -0700244 // Checks the device specified by |iface_name| to see if it's a modem device.
245 // This method assumes that |iface_name| has already been determined to be
Ben Chan4eb4ddf2013-06-20 22:16:56 -0700246 // using the cdc_ether / cdc_ncm driver.
247 bool IsCdcEthernetModemDevice(const std::string &iface_name);
Thieu Leb27beee2012-04-20 09:19:06 -0700248 // Returns true if |base_dir| has a subdirectory named |subdir|.
249 // |subdir| can be an immediate subdirectory of |base_dir| or can be
250 // several levels deep.
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800251 static bool HasSubdir(const base::FilePath &base_dir,
252 const base::FilePath &subdir);
Darin Petkov6f9eaa32011-08-09 15:26:44 -0700253
Chris Masone2aa97072011-08-09 17:35:08 -0700254 void AddLinkMsgHandler(const RTNLMessage &msg);
255 void DelLinkMsgHandler(const RTNLMessage &msg);
256 void LinkMsgHandler(const RTNLMessage &msg);
Paul Stewart9a908082011-08-31 12:18:48 -0700257 void AddressMsgHandler(const RTNLMessage &msg);
Peter Qiu98551702014-07-28 13:28:53 -0700258 void RdnssMsgHandler(const RTNLMessage &msg);
Paul Stewart0af98bf2011-05-10 17:38:08 -0700259
Darin Petkove3e1cfa2011-08-11 13:41:17 -0700260 const Info *GetInfo(int interface_index) const;
Darin Petkove6193c02011-08-11 12:42:40 -0700261 void RemoveInfo(int interface_index);
Paul Stewart050cfc02012-07-06 20:38:54 -0700262 void DelayDeviceCreation(int interface_index);
263 void DelayedDeviceCreationTask();
Paul Stewart1ac4e842012-07-10 12:58:12 -0700264 void RetrieveLinkStatistics(int interface_index, const RTNLMessage &msg);
265 void RequestLinkStatistics();
Darin Petkov67d8ecf2011-07-26 16:03:30 -0700266
Paul Stewart2ddf2c62013-04-16 09:47:34 -0700267 // Use nl80211 to get information on |interface_index|.
268 void GetWiFiInterfaceInfo(int interface_index);
Wade Guthrie7347bf22013-04-30 11:21:51 -0700269 void OnWiFiInterfaceInfoReceived(const Nl80211Message &message);
Paul Stewart2ddf2c62013-04-16 09:47:34 -0700270
Gary Morain41780232012-07-31 15:08:31 -0700271 void set_sockets(Sockets* sockets) { sockets_.reset(sockets); }
272
Paul Stewartb50f0b92011-05-16 16:31:42 -0700273 ControlInterface *control_interface_;
Paul Stewart0af98bf2011-05-10 17:38:08 -0700274 EventDispatcher *dispatcher_;
Thieu Le3426c8f2012-01-11 17:35:11 -0800275 Metrics *metrics_;
Paul Stewartb50f0b92011-05-16 16:31:42 -0700276 Manager *manager_;
Darin Petkovf8046b82012-04-24 16:29:23 +0200277
278 std::map<int, Info> infos_; // Maps interface index to Info.
279 std::map<std::string, int> indices_; // Maps interface name to index.
280
Eric Shienbrood3e20a232012-02-16 11:35:56 -0500281 base::Callback<void(const RTNLMessage &)> link_callback_;
282 base::Callback<void(const RTNLMessage &)> address_callback_;
Peter Qiu98551702014-07-28 13:28:53 -0700283 base::Callback<void(const RTNLMessage &)> rdnss_callback_;
Ben Chancd477322014-10-17 14:19:30 -0700284 std::unique_ptr<RTNLListener> link_listener_;
285 std::unique_ptr<RTNLListener> address_listener_;
286 std::unique_ptr<RTNLListener> rdnss_listener_;
mukesh agrawal8f317b62011-07-15 11:53:23 -0700287 std::set<std::string> black_list_;
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800288 base::FilePath device_info_root_;
Darin Petkove6193c02011-08-11 12:42:40 -0700289
Paul Stewart1ac4e842012-07-10 12:58:12 -0700290 // Keep track of devices that require a delayed call to CreateDevice().
Paul Stewart050cfc02012-07-06 20:38:54 -0700291 base::CancelableClosure delayed_devices_callback_;
292 std::set<int> delayed_devices_;
293
Paul Stewart1ac4e842012-07-10 12:58:12 -0700294 // Maintain a callback for the periodic link statistics poll task.
295 base::CancelableClosure request_link_statistics_callback_;
296
Paul Stewart8c116a92012-05-02 18:30:03 -0700297 // Cache copy of singleton pointers.
298 RoutingTable *routing_table_;
Paul Stewart9a908082011-08-31 12:18:48 -0700299 RTNLHandler *rtnl_handler_;
Paul Stewart2ddf2c62013-04-16 09:47:34 -0700300 NetlinkManager *netlink_manager_;
Paul Stewart9a908082011-08-31 12:18:48 -0700301
Gary Morain41780232012-07-31 15:08:31 -0700302 // A member of the class so that a mock can be injected for testing.
Ben Chancd477322014-10-17 14:19:30 -0700303 std::unique_ptr<Sockets> sockets_;
Gary Morain41780232012-07-31 15:08:31 -0700304
Peter Qiu98551702014-07-28 13:28:53 -0700305 Time *time_;
306
Darin Petkove6193c02011-08-11 12:42:40 -0700307 DISALLOW_COPY_AND_ASSIGN(DeviceInfo);
Paul Stewart0af98bf2011-05-10 17:38:08 -0700308};
309
Paul Stewart0af98bf2011-05-10 17:38:08 -0700310} // namespace shill
311
Ben Chanc45688b2014-07-02 23:50:45 -0700312#endif // SHILL_DEVICE_INFO_H_