| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "printing/backend/print_backend.h" | 5 #include "printing/backend/print_backend.h" |
| 6 | 6 |
| 7 #include <objidl.h> | 7 #include <objidl.h> |
| 8 #include <winspool.h> | 8 #include <winspool.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 NULL); | 179 NULL); |
| 180 bool ret = false; | 180 bool ret = false; |
| 181 if (printer_handle) { | 181 if (printer_handle) { |
| 182 ret = true; | 182 ret = true; |
| 183 ClosePrinter(printer_handle); | 183 ClosePrinter(printer_handle); |
| 184 } | 184 } |
| 185 return ret; | 185 return ret; |
| 186 } | 186 } |
| 187 | 187 |
| 188 scoped_refptr<PrintBackend> PrintBackend::CreateInstance( | 188 scoped_refptr<PrintBackend> PrintBackend::CreateInstance( |
| 189 const DictionaryValue* print_backend_settings) { | 189 const base::DictionaryValue* print_backend_settings) { |
| 190 return new PrintBackendWin; | 190 return new PrintBackendWin; |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace printing | 193 } // namespace printing |
| OLD | NEW |