OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_ | |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/time/time.h" | |
11 #include "net/base/host_port_pair.h" | |
12 | |
13 namespace local_discovery { | |
14 | |
15 struct ServiceDescription; | |
16 | |
17 struct DeviceDescription { | |
18 DeviceDescription(); | |
19 explicit DeviceDescription(const ServiceDescription& service_description); | |
20 ~DeviceDescription(); | |
21 | |
22 bool IsValid() const; | |
23 | |
24 // Display attributes | |
25 std::string name; | |
26 std::string description; | |
27 | |
28 // Functional attributes | |
29 std::string id; | |
30 std::string type; | |
31 int version; | |
32 | |
33 // Attributes related to local HTTP | |
34 net::HostPortPair address; | |
35 }; | |
36 | |
37 } // namespace local_discovery | |
38 | |
39 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_ | |
OLD | NEW |