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

Unified Diff: chrome/browser/local_discovery/device_description.h

Issue 861523002: Updated parsing of PrivetV3 mDns record. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Jan 26 13:26:30 PST 2015 Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/local_discovery/device_description.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/local_discovery/device_description.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698