Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / local_discovery / device_description.h
blob1682e0de8e3394ef64314cad832b5fc1d90e906e
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.
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_
8 #include <string>
10 #include "base/time/time.h"
11 #include "net/base/host_port_pair.h"
12 #include "net/base/net_util.h"
14 namespace local_discovery {
16 struct ServiceDescription;
18 struct DeviceDescription {
19 DeviceDescription();
20 explicit DeviceDescription(const ServiceDescription& service_description);
21 ~DeviceDescription();
23 bool IsValid() const;
25 // Display attributes
26 std::string name;
27 std::string description;
29 // Functional attributes
30 std::string id;
31 std::string type;
32 int version;
34 // Attributes related to local HTTP
35 net::HostPortPair address;
38 } // namespace local_discovery
40 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_