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

Side by Side Diff: chrome/browser/printing/cloud_print/device_description.h

Issue 1553333002: Move cloud print specific files out of local_discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveprn
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_DEVICE_DESCRIPTION_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_DEVICE_DESCRIPTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "net/base/host_port_pair.h" 11 #include "net/base/host_port_pair.h"
12 12
13 namespace local_discovery { 13 namespace local_discovery {
14 struct ServiceDescription;
15 }
14 16
15 struct ServiceDescription; 17 namespace cloud_print {
16 18
17 struct DeviceDescription { 19 struct DeviceDescription {
18 DeviceDescription(); 20 DeviceDescription();
19 explicit DeviceDescription(const ServiceDescription& service_description); 21 explicit DeviceDescription(
22 const local_discovery::ServiceDescription& service_description);
20 ~DeviceDescription(); 23 ~DeviceDescription();
21 24
22 bool IsValid() const; 25 bool IsValid() const;
23 26
24 // Display attributes 27 // Display attributes
25 std::string name; 28 std::string name;
26 std::string description; 29 std::string description;
27 30
28 // Functional attributes 31 // Functional attributes
29 std::string id; 32 std::string id;
30 std::string type; 33 std::string type;
31 int version; 34 int version;
32 35
33 // Attributes related to local HTTP 36 // Attributes related to local HTTP
34 net::HostPortPair address; 37 net::HostPortPair address;
35 }; 38 };
36 39
37 } // namespace local_discovery 40 } // namespace cloud_print
38 41
39 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_DEVICE_DESCRIPTION_H_ 42 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_DEVICE_DESCRIPTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698