| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" |
| 11 #include "base/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "base/win/scoped_bstr.h" | 13 #include "base/win/scoped_bstr.h" |
| 14 #include "base/win/scoped_comptr.h" | 14 #include "base/win/scoped_comptr.h" |
| 15 #include "base/win/scoped_hglobal.h" | 15 #include "base/win/scoped_hglobal.h" |
| 16 #include "printing/backend/print_backend_consts.h" | 16 #include "printing/backend/print_backend_consts.h" |
| 17 #include "printing/backend/printing_info_win.h" | 17 #include "printing/backend/printing_info_win.h" |
| 18 #include "printing/backend/win_helper.h" | 18 #include "printing/backend/win_helper.h" |
| 19 | 19 |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 printer_handle.Receive(), NULL); | 255 printer_handle.Receive(), NULL); |
| 256 return printer_handle.IsValid(); | 256 return printer_handle.IsValid(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 scoped_refptr<PrintBackend> PrintBackend::CreateInstance( | 259 scoped_refptr<PrintBackend> PrintBackend::CreateInstance( |
| 260 const base::DictionaryValue* print_backend_settings) { | 260 const base::DictionaryValue* print_backend_settings) { |
| 261 return new PrintBackendWin; | 261 return new PrintBackendWin; |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace printing | 264 } // namespace printing |
| OLD | NEW |