summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/printer_job_handler.h
diff options
context:
space:
mode:
authorziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 23:42:43 +0000
committerziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 23:42:43 +0000
commit8e4f010318e8ee028b22a2e8f5d4276a93054950 (patch)
treee0eee580f0f66dce4f55e45efdc0a76dcb1ac26b /chrome/service/cloud_print/printer_job_handler.h
parent9a9787ed17dce85531063d1fb2a07ce801c58de5 (diff)
downloadchromium_src-8e4f010318e8ee028b22a2e8f5d4276a93054950.zip
chromium_src-8e4f010318e8ee028b22a2e8f5d4276a93054950.tar.gz
chromium_src-8e4f010318e8ee028b22a2e8f5d4276a93054950.tar.bz2
Add undeclared virtual destructors part 4
Preventative maintenance for abstract classes that do not declare virtual destructors. Base classes that do not declare their destructors as virtual could potentially lead to memory leaks. These files were discovered using the -Wnon-virtual-dtor flag in g++. r=jar BUG=47469 Review URL: http://codereview.chromium.org/3032046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54408 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print/printer_job_handler.h')
-rw-r--r--chrome/service/cloud_print/printer_job_handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/service/cloud_print/printer_job_handler.h b/chrome/service/cloud_print/printer_job_handler.h
index f1c3ed4..08d4d76 100644
--- a/chrome/service/cloud_print/printer_job_handler.h
+++ b/chrome/service/cloud_print/printer_job_handler.h
@@ -91,6 +91,9 @@ class PrinterJobHandler : public base::RefCountedThreadSafe<PrinterJobHandler>,
public:
virtual void OnPrinterJobHandlerShutdown(
PrinterJobHandler* job_handler, const std::string& printer_id) = 0;
+
+ protected:
+ virtual ~Delegate() {}
};
// Begin public interface