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

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

Issue 2545663002: Hookup the PpdProvider in the printer setup flow. (Closed)
Patch Set: address dpadpad@ comment Created 4 years 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 const std::string& uri() const { return uri_; } 79 const std::string& uri() const { return uri_; }
80 void set_uri(const std::string& uri) { uri_ = uri; } 80 void set_uri(const std::string& uri) { uri_ = uri; }
81 81
82 const PpdReference& ppd_reference() const { return ppd_reference_; } 82 const PpdReference& ppd_reference() const { return ppd_reference_; }
83 PpdReference* mutable_ppd_reference() { return &ppd_reference_; } 83 PpdReference* mutable_ppd_reference() { return &ppd_reference_; }
84 84
85 const std::string& uuid() const { return uuid_; } 85 const std::string& uuid() const { return uuid_; }
86 void set_uuid(const std::string& uuid) { uuid_ = uuid; } 86 void set_uuid(const std::string& uuid) { uuid_ = uuid; }
87 87
88 // Returns true if the printer should be automatically configured using
89 // IPP Everywhere. Computed using information from |ppd_reference_| and
90 // |uri_|.
91 bool IsIppEverywhere() const;
92
88 private: 93 private:
89 // Globally unique identifier. Empty indicates a new printer. 94 // Globally unique identifier. Empty indicates a new printer.
90 std::string id_; 95 std::string id_;
91 96
92 // User defined string for printer identification. 97 // User defined string for printer identification.
93 std::string display_name_; 98 std::string display_name_;
94 99
95 // User defined string for additional printer information. 100 // User defined string for additional printer information.
96 std::string description_; 101 std::string description_;
97 102
(...skipping 10 matching lines...) Expand all
108 // How to find the associated postscript printer description. 113 // How to find the associated postscript printer description.
109 PpdReference ppd_reference_; 114 PpdReference ppd_reference_;
110 115
111 // The UUID from an autoconf protocol for deduplication. Could be empty. 116 // The UUID from an autoconf protocol for deduplication. Could be empty.
112 std::string uuid_; 117 std::string uuid_;
113 }; 118 };
114 119
115 } // namespace chromeos 120 } // namespace chromeos
116 121
117 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ 122 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc ('k') | chromeos/printing/printer_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698