Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: chrome/service/cloud_print/print_system_win.cc

Issue 10332002: win: Fix a few minor issues found by clang. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | crypto/rsa_private_key_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | crypto/rsa_private_key_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698