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

Side by Side Diff: printing/backend/print_backend.h

Issue 1731423002: printing: 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
« no previous file with comments | « no previous file | printing/backend/print_backend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PRINTING_BACKEND_PRINT_BACKEND_H_ 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_
6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "printing/print_job_constants.h" 13 #include "printing/print_job_constants.h"
14 #include "printing/printing_export.h" 14 #include "printing/printing_export.h"
15 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
16 16
17 namespace base { 17 namespace base {
18 class DictionaryValue; 18 class DictionaryValue;
19 } 19 }
20 20
21 // This is the interface for platform-specific code for a print backend 21 // This is the interface for platform-specific code for a print backend
22 namespace printing { 22 namespace printing {
23 23
24 struct PRINTING_EXPORT PrinterBasicInfo { 24 struct PRINTING_EXPORT PrinterBasicInfo {
25 PrinterBasicInfo(); 25 PrinterBasicInfo();
26 PrinterBasicInfo(const PrinterBasicInfo& other);
26 ~PrinterBasicInfo(); 27 ~PrinterBasicInfo();
27 28
28 std::string printer_name; 29 std::string printer_name;
29 std::string printer_description; 30 std::string printer_description;
30 int printer_status; 31 int printer_status;
31 int is_default; 32 int is_default;
32 std::map<std::string, std::string> options; 33 std::map<std::string, std::string> options;
33 }; 34 };
34 35
35 typedef std::vector<PrinterBasicInfo> PrinterList; 36 typedef std::vector<PrinterBasicInfo> PrinterList;
(...skipping 22 matching lines...) Expand all
58 }; 59 };
59 std::vector<Paper> papers; 60 std::vector<Paper> papers;
60 Paper default_paper; 61 Paper default_paper;
61 62
62 std::vector<gfx::Size> dpis; 63 std::vector<gfx::Size> dpis;
63 gfx::Size default_dpi; 64 gfx::Size default_dpi;
64 }; 65 };
65 66
66 struct PRINTING_EXPORT PrinterCapsAndDefaults { 67 struct PRINTING_EXPORT PrinterCapsAndDefaults {
67 PrinterCapsAndDefaults(); 68 PrinterCapsAndDefaults();
69 PrinterCapsAndDefaults(const PrinterCapsAndDefaults& other);
68 ~PrinterCapsAndDefaults(); 70 ~PrinterCapsAndDefaults();
69 71
70 std::string printer_capabilities; 72 std::string printer_capabilities;
71 std::string caps_mime_type; 73 std::string caps_mime_type;
72 std::string printer_defaults; 74 std::string printer_defaults;
73 std::string defaults_mime_type; 75 std::string defaults_mime_type;
74 }; 76 };
75 77
76 // PrintBackend class will provide interface for different print backends 78 // PrintBackend class will provide interface for different print backends
77 // (Windows, CUPS) to implement. User will call CreateInstance() to 79 // (Windows, CUPS) to implement. User will call CreateInstance() to
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const base::DictionaryValue* print_backend_settings); 117 const base::DictionaryValue* print_backend_settings);
116 118
117 protected: 119 protected:
118 friend class base::RefCountedThreadSafe<PrintBackend>; 120 friend class base::RefCountedThreadSafe<PrintBackend>;
119 virtual ~PrintBackend(); 121 virtual ~PrintBackend();
120 }; 122 };
121 123
122 } // namespace printing 124 } // namespace printing
123 125
124 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ 126 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_
OLDNEW
« no previous file with comments | « no previous file | printing/backend/print_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698