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 #include "chrome/service/cloud_print/print_system.h" | 5 #include "chrome/service/cloud_print/print_system.h" |
6 | 6 |
7 #include <objidl.h> | 7 #include <objidl.h> |
8 #include <winspool.h> | 8 #include <winspool.h> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "base/win/object_watcher.h" | 13 #include "base/win/object_watcher.h" |
14 #include "base/win/scoped_bstr.h" | 14 #include "base/win/scoped_bstr.h" |
15 #include "base/win/scoped_comptr.h" | 15 #include "base/win/scoped_comptr.h" |
16 #include "base/win/scoped_hdc.h" | 16 #include "base/win/scoped_hdc.h" |
17 #include "chrome/service/cloud_print/cloud_print_consts.h" | 17 #include "chrome/service/cloud_print/cloud_print_consts.h" |
18 #include "chrome/service/service_process.h" | 18 #include "chrome/service/service_process.h" |
19 #include "chrome/service/service_utility_process_host.h" | 19 #include "chrome/service/service_utility_process_host.h" |
20 #include "gfx/rect.h" | |
21 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
22 #include "printing/backend/print_backend.h" | 21 #include "printing/backend/print_backend.h" |
23 #include "printing/backend/print_backend_consts.h" | 22 #include "printing/backend/print_backend_consts.h" |
24 #include "printing/backend/win_helper.h" | 23 #include "printing/backend/win_helper.h" |
25 #include "printing/native_metafile.h" | 24 #include "printing/native_metafile.h" |
26 #include "printing/page_range.h" | 25 #include "printing/page_range.h" |
27 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 #include "ui/gfx/rect.h" |
28 | 28 |
29 using base::win::ScopedBstr; | 29 using base::win::ScopedBstr; |
30 using base::win::ScopedComPtr; | 30 using base::win::ScopedComPtr; |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 class DevMode { | 34 class DevMode { |
35 public: | 35 public: |
36 DevMode() : dm_(NULL) {} | 36 DevMode() : dm_(NULL) {} |
37 ~DevMode() { Free(); } | 37 ~DevMode() { Free(); } |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); | 740 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); |
741 return ret; | 741 return ret; |
742 } | 742 } |
743 | 743 |
744 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( | 744 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( |
745 const DictionaryValue* print_system_settings) { | 745 const DictionaryValue* print_system_settings) { |
746 return new PrintSystemWin; | 746 return new PrintSystemWin; |
747 } | 747 } |
748 | 748 |
749 } // namespace cloud_print | 749 } // namespace cloud_print |
OLD | NEW |