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

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

Issue 107293012: Refactor device description out of PrivetDeviceLister (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/local_discovery/privet_device_lister.h
diff --git a/chrome/browser/local_discovery/privet_device_lister.h b/chrome/browser/local_discovery/privet_device_lister.h
index ee1553f5522f430947f6d896561ad714f5f3204a..a9797d6b776326ff2537aacbd471bfe1767d095a 100644
--- a/chrome/browser/local_discovery/privet_device_lister.h
+++ b/chrome/browser/local_discovery/privet_device_lister.h
@@ -9,39 +9,12 @@
#include "base/callback.h"
#include "base/time/time.h"
+#include "chrome/browser/local_discovery/device_description.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_util.h"
namespace local_discovery {
-struct DeviceDescription {
- enum ConnectionState {
- ONLINE,
- OFFLINE,
- CONNECTING,
- NOT_CONFIGURED,
- UNKNOWN
- };
-
- DeviceDescription();
- ~DeviceDescription();
-
- // Display attributes
- std::string name;
- std::string description;
-
- // Functional attributes
- std::string url;
- std::string id;
- std::string type;
- ConnectionState connection_state;
-
- // Attributes related to local HTTP
- net::HostPortPair address;
- net::IPAddressNumber ip_address;
- base::Time last_seen;
-};
-
class PrivetDeviceLister {
public:
class Delegate {
@@ -53,7 +26,6 @@ class PrivetDeviceLister {
virtual void DeviceCacheFlushed() = 0;
};
-
virtual ~PrivetDeviceLister() {}
// Start the PrivetServiceLister.

Powered by Google App Engine
This is Rietveld 408576698