summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authoryosin@chromium.org <yosin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 05:56:32 +0000
committeryosin@chromium.org <yosin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 05:56:32 +0000
commit83deae27106077366e8ae894798dd440e514d809 (patch)
tree1bb290bb82cd92f464975e37c3bfd1e4cac3e1e0 /chrome/service
parent9e2a3137641bc104980e13388b6088d3f4a9b52f (diff)
downloadchromium_src-83deae27106077366e8ae894798dd440e514d809.zip
chromium_src-83deae27106077366e8ae894798dd440e514d809.tar.gz
chromium_src-83deae27106077366e8ae894798dd440e514d809.tar.bz2
* Rename ScopedHDC to ScopedCreateDC
* Use ScopedSelectObject for changed files BUG=99139 TEST=no user visible change Review URL: http://codereview.chromium.org/8139022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/cloud_print/print_system_win.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 9ea4d1f..43a8335 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -132,6 +132,7 @@ class PrintSystemWatcherWin : public base::win::ObjectWatcher::Delegate {
class Delegate {
public:
+ virtual ~Delegate() {}
virtual void OnPrinterAdded() = 0;
virtual void OnPrinterDeleted() = 0;
virtual void OnPrinterChanged() = 0;
@@ -364,6 +365,7 @@ class PrintSystemWin : public PrintSystem {
print_data_mime_type, printer_name, job_title,
delegate);
}
+
private:
// We use a Core class because we want a separate RefCountedThreadSafe
// implementation for ServiceUtilityProcessHost::Client.
@@ -633,7 +635,7 @@ class PrintSystemWin : public PrintSystem {
PlatformJobId job_id_;
PrintSystem::JobSpooler::Delegate* delegate_;
int saved_dc_;
- base::win::ScopedHDC printer_dc_;
+ base::win::ScopedCreateDC printer_dc_;
FilePath print_data_file_path_;
base::win::ScopedHandle job_progress_event_;
base::win::ObjectWatcher job_progress_watcher_;
@@ -681,6 +683,7 @@ class PrintSystemWin : public PrintSystem {
callback_.reset();
Release();
}
+
private:
// Called on the service process IO thread.
void GetPrinterCapsAndDefaultsImpl(