summaryrefslogtreecommitdiffstats
path: root/printing/backend/print_backend.h
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-05 23:17:25 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-05 23:17:25 +0000
commitde6ac3294417e61248aa0574365c2782b68f89c9 (patch)
treeeec71bfb59ac16c2ef92bf59d2c0ff40b9328e9f /printing/backend/print_backend.h
parentdfe14730bc4052cad2329088f827404570c1d9f8 (diff)
downloadchromium_src-de6ac3294417e61248aa0574365c2782b68f89c9.zip
chromium_src-de6ac3294417e61248aa0574365c2782b68f89c9.tar.gz
chromium_src-de6ac3294417e61248aa0574365c2782b68f89c9.tar.bz2
Added PrinterDriverInfo and PrintBackend::GetPrinterDriverInfo for windows.
BUG=108194 TEST=none Review URL: http://codereview.chromium.org/9516010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/backend/print_backend.h')
-rw-r--r--printing/backend/print_backend.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/printing/backend/print_backend.h b/printing/backend/print_backend.h
index c788499..878bb25 100644
--- a/printing/backend/print_backend.h
+++ b/printing/backend/print_backend.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -43,6 +43,16 @@ struct PRINTING_EXPORT PrinterCapsAndDefaults {
std::string defaults_mime_type;
};
+struct PRINTING_EXPORT PrinterDriverInfo {
+ PrinterDriverInfo();
+ ~PrinterDriverInfo();
+
+ std::string driver_name;
+ std::string driver_version;
+ std::string product_name;
+ std::string product_version;
+};
+
// PrintBackend class will provide interface for different print backends
// (Windows, CUPS) to implement. User will call CreateInstance() to
// obtain available print backend.
@@ -66,6 +76,11 @@ class PRINTING_EXPORT PrintBackend
const std::string& printer_name,
PrinterCapsAndDefaults* printer_info) = 0;
+ // Gets the information about driver for a specific printer.
+ virtual bool GetPrinterDriverInfo(
+ const std::string& printer_name,
+ PrinterDriverInfo* driver_info) = 0;
+
// Returns true if printer_name points to a valid printer.
virtual bool IsValidPrinter(const std::string& printer_name) = 0;