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 "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 #if defined(_WIN32_WINNT) | 9 #if defined(_WIN32_WINNT) |
10 #undef _WIN32_WINNT | 10 #undef _WIN32_WINNT |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/service/service_utility_process_host.h" | 24 #include "chrome/service/service_utility_process_host.h" |
25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
26 #include "printing/backend/print_backend.h" | 26 #include "printing/backend/print_backend.h" |
27 #include "printing/backend/print_backend_consts.h" | 27 #include "printing/backend/print_backend_consts.h" |
28 #include "printing/backend/win_helper.h" | 28 #include "printing/backend/win_helper.h" |
29 #include "printing/emf_win.h" | 29 #include "printing/emf_win.h" |
30 #include "printing/page_range.h" | 30 #include "printing/page_range.h" |
31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
32 #include "ui/gfx/rect.h" | 32 #include "ui/gfx/rect.h" |
33 | 33 |
| 34 #pragma comment(lib, "rpcrt4.lib") // for UuidToString & Co. |
| 35 |
34 namespace { | 36 namespace { |
35 | 37 |
36 class DevMode { | 38 class DevMode { |
37 public: | 39 public: |
38 DevMode() : dm_(NULL) {} | 40 DevMode() : dm_(NULL) {} |
39 ~DevMode() { Free(); } | 41 ~DevMode() { Free(); } |
40 | 42 |
41 void Allocate(int size) { | 43 void Allocate(int size) { |
42 Free(); | 44 Free(); |
43 dm_ = reinterpret_cast<DEVMODE*>(new char[size]); | 45 dm_ = reinterpret_cast<DEVMODE*>(new char[size]); |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); | 862 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); |
861 return ret; | 863 return ret; |
862 } | 864 } |
863 | 865 |
864 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( | 866 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( |
865 const DictionaryValue* print_system_settings) { | 867 const DictionaryValue* print_system_settings) { |
866 return new PrintSystemWin; | 868 return new PrintSystemWin; |
867 } | 869 } |
868 | 870 |
869 } // namespace cloud_print | 871 } // namespace cloud_print |
OLD | NEW |