Index: chrome/browser/local_discovery/device_description.h |
diff --git a/chrome/browser/local_discovery/device_description.h b/chrome/browser/local_discovery/device_description.h |
index 2710b7bc1b9a31e633b99a3a1d03a6abb631bf40..1682e0de8e3394ef64314cad832b5fc1d90e906e 100644 |
--- a/chrome/browser/local_discovery/device_description.h |
+++ b/chrome/browser/local_discovery/device_description.h |
@@ -16,35 +16,23 @@ namespace local_discovery { |
struct ServiceDescription; |
struct DeviceDescription { |
- enum ConnectionState { |
- ONLINE, |
- OFFLINE, |
- CONNECTING, |
- NOT_CONFIGURED, |
- UNKNOWN |
- }; |
- |
DeviceDescription(); |
+ explicit DeviceDescription(const ServiceDescription& service_description); |
~DeviceDescription(); |
- void FillFromServiceDescription( |
- const ServiceDescription& service_description); |
+ bool IsValid() const; |
// Display attributes |
std::string name; |
std::string description; |
// Functional attributes |
- std::string url; |
std::string id; |
std::string type; |
int version; |
- ConnectionState connection_state; |
// Attributes related to local HTTP |
net::HostPortPair address; |
- net::IPAddressNumber ip_address; |
- base::Time last_seen; |
}; |
} // namespace local_discovery |