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

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

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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_PRINTING_CLOUD_PRINT_DEVICE_DESCRIPTION_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_DEVICE_DESCRIPTION_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_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; 14 struct ServiceDescription;
15 } 15 }
16 16
17 namespace cloud_print { 17 namespace cloud_print {
18 18
19 struct DeviceDescription { 19 struct DeviceDescription {
20 DeviceDescription(); 20 DeviceDescription();
21 explicit DeviceDescription( 21 explicit DeviceDescription(
22 const local_discovery::ServiceDescription& service_description); 22 const local_discovery::ServiceDescription& service_description);
23 DeviceDescription(const DeviceDescription& other);
23 ~DeviceDescription(); 24 ~DeviceDescription();
24 25
25 bool IsValid() const; 26 bool IsValid() const;
26 27
27 // Display attributes 28 // Display attributes
28 std::string name; 29 std::string name;
29 std::string description; 30 std::string description;
30 31
31 // Functional attributes 32 // Functional attributes
32 std::string id; 33 std::string id;
33 std::string type; 34 std::string type;
34 int version; 35 int version;
35 36
36 // Attributes related to local HTTP 37 // Attributes related to local HTTP
37 net::HostPortPair address; 38 net::HostPortPair address;
38 }; 39 };
39 40
40 } // namespace cloud_print 41 } // namespace cloud_print
41 42
42 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_DEVICE_DESCRIPTION_H_ 43 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_DEVICE_DESCRIPTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698