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

Side by Side Diff: chromeos/printing/printer_configuration.h

Issue 2884863002: Add an autoconf field to printer objects. (Closed)
Patch Set: grammar Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ 5 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_
6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ 6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 struct PpdReference { 29 struct PpdReference {
30 // If non-empty, this is the url of a specific PPD the user has specified 30 // If non-empty, this is the url of a specific PPD the user has specified
31 // for use with this printer. The ppd can be gzipped or uncompressed. This 31 // for use with this printer. The ppd can be gzipped or uncompressed. This
32 // url must use a file:// scheme. 32 // url must use a file:// scheme.
33 std::string user_supplied_ppd_url; 33 std::string user_supplied_ppd_url;
34 34
35 // String that identifies which ppd to use from the ppd server. 35 // String that identifies which ppd to use from the ppd server.
36 // Where possible, this is the same as the ipp/ldap 36 // Where possible, this is the same as the ipp/ldap
37 // printer-make-and-model field. 37 // printer-make-and-model field.
38 std::string effective_make_and_model; 38 std::string effective_make_and_model;
39
40 // True if the printer should be auto-configured and a PPD is unnecessary.
41 bool autoconf = false;
39 }; 42 };
40 43
41 // The location where the printer is stored. 44 // The location where the printer is stored.
42 enum Source { 45 enum Source {
43 SRC_USER_PREFS, 46 SRC_USER_PREFS,
44 SRC_POLICY, 47 SRC_POLICY,
45 }; 48 };
46 49
47 // Constructs a printer object that is completely empty. 50 // Constructs a printer object that is completely empty.
48 Printer(); 51 Printer();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // The datastore which holds this printer. 130 // The datastore which holds this printer.
128 Source source_; 131 Source source_;
129 132
130 // Timestamp of most recent change. 133 // Timestamp of most recent change.
131 base::Time last_updated_; 134 base::Time last_updated_;
132 }; 135 };
133 136
134 } // namespace chromeos 137 } // namespace chromeos
135 138
136 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ 139 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/printing/specifics_translation_unittest.cc ('k') | chromeos/printing/printer_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698