| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |