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 "chrome/service/cloud_print/print_system.h" | 5 #include "chrome/service/cloud_print/print_system.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/win/object_watcher.h" | 12 #include "base/win/object_watcher.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_hdc.h" | 15 #include "base/win/scoped_hdc.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/cloud_print/cloud_print_cdd_conversion.h" | 17 #include "chrome/common/cloud_print/cloud_print_cdd_conversion.h" |
18 #include "chrome/common/cloud_print/cloud_print_constants.h" | 18 #include "chrome/common/cloud_print/cloud_print_constants.h" |
19 #include "chrome/common/crash_keys.h" | 19 #include "chrome/common/crash_keys.h" |
20 #include "chrome/service/cloud_print/cdd_conversion_win.h" | 20 #include "chrome/service/cloud_print/cdd_conversion_win.h" |
21 #include "chrome/service/service_process.h" | 21 #include "chrome/service/service_process.h" |
22 #include "chrome/service/service_utility_process_host.h" | 22 #include "chrome/service/service_utility_process_host.h" |
23 #include "grit/generated_resources.h" | |
24 #include "printing/backend/win_helper.h" | 23 #include "printing/backend/win_helper.h" |
25 #include "printing/emf_win.h" | 24 #include "printing/emf_win.h" |
26 #include "printing/page_range.h" | 25 #include "printing/page_range.h" |
27 #include "printing/printing_utils.h" | 26 #include "printing/printing_utils.h" |
28 #include "ui/base/l10n/l10n_util.h" | |
29 | 27 |
30 namespace cloud_print { | 28 namespace cloud_print { |
31 | 29 |
32 namespace { | 30 namespace { |
33 | 31 |
34 class PrintSystemWatcherWin : public base::win::ObjectWatcher::Delegate { | 32 class PrintSystemWatcherWin : public base::win::ObjectWatcher::Delegate { |
35 public: | 33 public: |
36 PrintSystemWatcherWin() | 34 PrintSystemWatcherWin() |
37 : delegate_(NULL), | 35 : delegate_(NULL), |
38 did_signal_(false) { | 36 did_signal_(false) { |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 } | 840 } |
843 | 841 |
844 } // namespace | 842 } // namespace |
845 | 843 |
846 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( | 844 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( |
847 const base::DictionaryValue* print_system_settings) { | 845 const base::DictionaryValue* print_system_settings) { |
848 return new PrintSystemWin; | 846 return new PrintSystemWin; |
849 } | 847 } |
850 | 848 |
851 } // namespace cloud_print | 849 } // namespace cloud_print |
OLD | NEW |