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

Unified Diff: printing/backend/cups_helper.h

Issue 10905006: Get semantic capabilities from Print Backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: printing/backend/cups_helper.h
===================================================================
--- printing/backend/cups_helper.h (revision 153539)
+++ printing/backend/cups_helper.h (working copy)
@@ -7,6 +7,8 @@
#include <cups/cups.h>
+#include <string>
+
#include "printing/printing_export.h"
class GURL;
@@ -14,6 +16,8 @@
// These are helper functions for dealing with CUPS.
namespace printing {
+struct PrinterSemanticCapsAndDefaults;
+
// Helper wrapper around http_t structure, with connection and cleanup
// functionality.
class PRINTING_EXPORT HttpConnectionCUPS {
@@ -30,6 +34,13 @@
http_t* http_;
};
+// Helper function to parse and convert PPD capabilitites to
+// semantic options.
+PRINTING_EXPORT bool parsePpdCapabilities(
+ const std::string& printer_name,
+ const std::string& printer_capabilities,
+ PrinterSemanticCapsAndDefaults* printer_info);
+
} // namespace printing
#endif // PRINTING_BACKEND_CUPS_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698