diff options
Diffstat (limited to 'printing')
-rw-r--r-- | printing/printed_document.h | 5 | ||||
-rw-r--r-- | printing/printed_page.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/printing/printed_document.h b/printing/printed_document.h index 6e20d33..c7d806c 100644 --- a/printing/printed_document.h +++ b/printing/printed_document.h @@ -39,7 +39,6 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> { PrintedDocument(const PrintSettings& settings, PrintedPagesSource* source, int cookie); - ~PrintedDocument(); // Sets a page's data. 0-based. Takes metafile ownership. // Note: locks for a short amount of time. @@ -106,6 +105,10 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> { static const std::wstring& debug_dump_path(); private: + friend class base::RefCountedThreadSafe<PrintedDocument>; + + ~PrintedDocument(); + // Array of data for each print previewed page. typedef std::map<int, scoped_refptr<PrintedPage> > PrintedPages; diff --git a/printing/printed_page.h b/printing/printed_page.h index 3c954ac..101be9a 100644 --- a/printing/printed_page.h +++ b/printing/printed_page.h @@ -24,7 +24,6 @@ class PrintedPage : public base::RefCountedThreadSafe<PrintedPage> { PrintedPage(int page_number, NativeMetafile* native_metafile, const gfx::Size& page_size); - ~PrintedPage(); // Getters int page_number() const { return page_number_; } @@ -32,6 +31,10 @@ class PrintedPage : public base::RefCountedThreadSafe<PrintedPage> { const gfx::Size& page_size() const { return page_size_; } private: + friend class base::RefCountedThreadSafe<PrintedPage>; + + ~PrintedPage(); + // Page number inside the printed document. const int page_number_; |