summaryrefslogtreecommitdiffstats
path: root/printing/backend/win_helper.cc
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup: Remove unneeded scoped_ptr.h includes from ppapi, printing, ↵thestig@chromium.org2012-05-161-25/+26
| | | | | | | | | | | | remoting, and sync. BUG=none TEST=none TBR=brettw,hclam,akalin,abodenha Review URL: https://chromiumcodereview.appspot.com/10387107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137376 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed null pointer exception.vitalybuka@chromium.org2012-03-231-3/+5
| | | | | | | | | | TBR=gene@chromium.org BUG=119852 TEST=none Review URL: https://chromiumcodereview.appspot.com/9839077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128606 0039d316-1c4b-4281-b951-d872f2087c98
* Removed trailing ;vitalybuka@chromium.org2012-03-231-1/+2
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9842003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128392 0039d316-1c4b-4281-b951-d872f2087c98
* Driver related info would be included into PrinterBasicInfo::options so it ↵vitalybuka@chromium.org2012-03-221-1/+113
| | | | | | | | | | | would be uploaded to cloud print backend. BUG=118797 TEST=none Review URL: http://codereview.chromium.org/9812002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128141 0039d316-1c4b-4281-b951-d872f2087c98
* Added support to the Windows cloud print proxy to print XPS documents ↵sanjeevr@chromium.org2011-02-171-0/+53
| | | | | | | | | | | directly without any conversion (only works on Windows 7). The proxy uses the Accept: header to specify what data types it can accept. BUG=None. TEST=When the cloud print service supports this, submitting an XPS document should go through to the Win 7 proxy without any conversions. Review URL: http://codereview.chromium.org/6523040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75286 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed a crash with some HP printer drivers (when invoking ↵sanjeevr@chromium.org2011-01-071-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | PTGetPrintCapabilities on them). Detailed story: Calls to XPS APIs typically require the XPS provider to be opened with PTOpenProvider. PTOpenProvider calls CoInitializeEx with COINIT_MULTITHREADED. We have seen certain buggy HP printer driver DLLs that call CoInitializeEx with COINIT_APARTMENTTHREADED in the context of PTGetPrintCapabilities. This call fails but the printer driver calls CoUninitialize anyway. This results in the apartment being torn down too early and the msxml DLL being unloaded which in turn causes code in unidrvui.dll to have a dangling pointer to an XML document which causes a crash. To protect ourselves from such drivers we make sure we always have an extra CoInitialize (calls to CoInitialize/CoUninitialize are refcounted). BUG=None TEST=Test Cloud Print Proxy on Windows with HP Photosmart 7960 series printers. Review URL: http://codereview.chromium.org/6037019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70754 0039d316-1c4b-4281-b951-d872f2087c98
* Used GetProcAddress to load exported functions from prntvpt.dll instead of ↵sanjeevr@chromium.org2010-11-101-3/+164
| | | | | | | | | | | using DELAYLOAD. BUG=62421 TEST=ui_tests on XP without the XPS Framework installed should run. Review URL: http://codereview.chromium.org/4637004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65678 0039d316-1c4b-4281-b951-d872f2087c98
* Move useful printing backend code from chrome/service/cloud_print to ↵thestig@chromium.org2010-10-251-0/+17
printing/backend. BUG=none TEST=none Review URL: http://codereview.chromium.org/3945003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63772 0039d316-1c4b-4281-b951-d872f2087c98