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

Side by Side Diff: printing/backend/win_helper.h

Issue 6037019: Fixed a crash with some HP printer drivers (when invoking PTGetPrintCapabilit... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/backend/win_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 PRINTING_BACKEND_WIN_HELPER_H_ 5 #ifndef PRINTING_BACKEND_WIN_HELPER_H_
6 #define PRINTING_BACKEND_WIN_HELPER_H_ 6 #define PRINTING_BACKEND_WIN_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <objidl.h> 9 #include <objidl.h>
10 #include <winspool.h> 10 #include <winspool.h>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 EPrintTicketScope scope, 51 EPrintTicketScope scope,
52 IStream* result_ticket, 52 IStream* result_ticket,
53 BSTR* error_message); 53 BSTR* error_message);
54 static HRESULT ReleaseMemory(PVOID buffer); 54 static HRESULT ReleaseMemory(PVOID buffer);
55 static HRESULT CloseProvider(HPTPROVIDER provider); 55 static HRESULT CloseProvider(HPTPROVIDER provider);
56 private: 56 private:
57 XPSModule() { } 57 XPSModule() { }
58 static bool InitImpl(); 58 static bool InitImpl();
59 }; 59 };
60 60
61 // See comments in cc file explaining why we need this.
62 class ScopedXPSInitializer {
63 public:
64 ScopedXPSInitializer();
65 ~ScopedXPSInitializer();
66
67 bool initialized() const { return initialized_; }
68
69 private:
70 bool initialized_;
71 };
72
61 } // namespace printing 73 } // namespace printing
62 74
63 #endif // PRINTING_BACKEND_WIN_HELPER_H_ 75 #endif // PRINTING_BACKEND_WIN_HELPER_H_
OLDNEW
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/backend/win_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698