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 <objidl.h> | 7 #include <objidl.h> |
8 #include <winspool.h> | 8 #include <winspool.h> |
9 #include <xpsprint.h> | 9 #include <xpsprint.h> |
10 | 10 |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 PlatformJobId job_id_; | 653 PlatformJobId job_id_; |
654 PrintSystem::JobSpooler::Delegate* delegate_; | 654 PrintSystem::JobSpooler::Delegate* delegate_; |
655 int saved_dc_; | 655 int saved_dc_; |
656 base::win::ScopedCreateDC printer_dc_; | 656 base::win::ScopedCreateDC printer_dc_; |
657 FilePath print_data_file_path_; | 657 FilePath print_data_file_path_; |
658 base::win::ScopedHandle job_progress_event_; | 658 base::win::ScopedHandle job_progress_event_; |
659 base::win::ObjectWatcher job_progress_watcher_; | 659 base::win::ObjectWatcher job_progress_watcher_; |
660 base::win::ScopedComPtr<IXpsPrintJob> xps_print_job_; | 660 base::win::ScopedComPtr<IXpsPrintJob> xps_print_job_; |
661 bool should_couninit_; | 661 bool should_couninit_; |
662 | 662 |
663 DISALLOW_COPY_AND_ASSIGN(JobSpoolerWin::Core); | 663 DISALLOW_COPY_AND_ASSIGN(Core); |
664 }; | 664 }; |
665 scoped_refptr<Core> core_; | 665 scoped_refptr<Core> core_; |
666 | 666 |
667 DISALLOW_COPY_AND_ASSIGN(JobSpoolerWin); | 667 DISALLOW_COPY_AND_ASSIGN(JobSpoolerWin); |
668 }; | 668 }; |
669 | 669 |
670 // A helper class to handle the response from the utility process to the | 670 // A helper class to handle the response from the utility process to the |
671 // request to fetch printer capabilities and defaults. | 671 // request to fetch printer capabilities and defaults. |
672 class PrinterCapsHandler : public ServiceUtilityProcessHost::Client { | 672 class PrinterCapsHandler : public ServiceUtilityProcessHost::Client { |
673 public: | 673 public: |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); | 898 RpcStringFree(reinterpret_cast<RPC_WSTR *>(&proxy_id_as_string)); |
899 return ret; | 899 return ret; |
900 } | 900 } |
901 | 901 |
902 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( | 902 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( |
903 const base::DictionaryValue* print_system_settings) { | 903 const base::DictionaryValue* print_system_settings) { |
904 return new PrintSystemWin; | 904 return new PrintSystemWin; |
905 } | 905 } |
906 | 906 |
907 } // namespace cloud_print | 907 } // namespace cloud_print |
OLD | NEW |