Chromium Code Reviews| Index: printing/backend/win_helper.h |
| diff --git a/printing/backend/win_helper.h b/printing/backend/win_helper.h |
| index 11b34ee88d444f1c03bcf9625dcfa05491e064ca..667609d584c0b5fb6b09812647de3c7d2faba823 100644 |
| --- a/printing/backend/win_helper.h |
| +++ b/printing/backend/win_helper.h |
| @@ -20,9 +20,22 @@ namespace printing { |
| class PrinterHandleTraits { |
|
Vitaly Buka (NO REVIEWS)
2012/03/05 18:52:14
PrinterHandleTraits : public HandleTraits {
Clos
alexeypa (please no reviews)
2012/03/05 18:56:58
The same thing, trait classes are unrelated in thi
|
| public: |
| + typedef HANDLE Handle; |
| + |
| static bool CloseHandle(HANDLE handle) { |
| return ::ClosePrinter(handle) != FALSE; |
| } |
| + |
| + static bool IsHandleValid(HANDLE handle) { |
| + return handle != NULL; |
| + } |
| + |
| + static HANDLE NullHandle() { |
| + return NULL; |
| + } |
| + |
| + private: |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(PrinterHandleTraits); |
| }; |
| typedef base::win::GenericScopedHandle<PrinterHandleTraits> ScopedPrinterHandle; |