summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/print_system_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/service/cloud_print/print_system_win.cc')
-rw-r--r--chrome/service/cloud_print/print_system_win.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 229f2794..6b1d5df 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -35,9 +35,22 @@ namespace {
class PrinterChangeHandleTraits {
public:
+ typedef HANDLE Handle;
+
static bool CloseHandle(HANDLE handle) {
return ::FindClosePrinterChangeNotification(handle) != FALSE;
}
+
+ static bool IsHandleValid(HANDLE handle) {
+ return handle != NULL;
+ }
+
+ static HANDLE NullHandle() {
+ return NULL;
+ }
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(PrinterChangeHandleTraits);
};
typedef base::win::GenericScopedHandle<PrinterChangeHandleTraits>