summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
Diffstat (limited to 'printing')
-rw-r--r--printing/print_settings.cc3
-rw-r--r--printing/print_settings.h1
-rw-r--r--printing/printed_document.cc6
-rw-r--r--printing/printed_document.h4
4 files changed, 13 insertions, 1 deletions
diff --git a/printing/print_settings.cc b/printing/print_settings.cc
index 98a9ebf..0950d63 100644
--- a/printing/print_settings.cc
+++ b/printing/print_settings.cc
@@ -31,6 +31,9 @@ PrintSettings::PrintSettings()
landscape_(false) {
}
+PrintSettings::~PrintSettings() {
+}
+
void PrintSettings::Clear() {
ranges.clear();
min_shrink = 1.25;
diff --git a/printing/print_settings.h b/printing/print_settings.h
index bdea485..8cde1ca 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -25,6 +25,7 @@ namespace printing {
class PrintSettings {
public:
PrintSettings();
+ ~PrintSettings();
// Reinitialize the settings to the default values.
void Clear();
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 560f95b..f5989f6 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -303,6 +303,9 @@ PrintedDocument::Mutable::Mutable(PrintedPagesSource* source)
shrink_factor(0) {
}
+PrintedDocument::Mutable::~Mutable() {
+}
+
PrintedDocument::Immutable::Immutable(const PrintSettings& settings,
PrintedPagesSource* source,
int cookie)
@@ -327,4 +330,7 @@ PrintedDocument::Immutable::Immutable(const PrintSettings& settings,
#endif // OS_WIN
}
+PrintedDocument::Immutable::~Immutable() {
+}
+
} // namespace printing
diff --git a/printing/printed_document.h b/printing/printed_document.h
index e4a3280..dfab7a5 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -111,7 +111,7 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
private:
friend class base::RefCountedThreadSafe<PrintedDocument>;
- ~PrintedDocument();
+ virtual ~PrintedDocument();
// Array of data for each print previewed page.
typedef std::map<int, scoped_refptr<PrintedPage> > PrintedPages;
@@ -120,6 +120,7 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
// lock held.
struct Mutable {
explicit Mutable(PrintedPagesSource* source);
+ ~Mutable();
// Source that generates the PrintedPage's (i.e. a TabContents). It will be
// set back to NULL if the source is deleted before this object.
@@ -146,6 +147,7 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
struct Immutable {
Immutable(const PrintSettings& settings, PrintedPagesSource* source,
int cookie);
+ ~Immutable();
// Print settings used to generate this document. Immutable.
PrintSettings settings_;