summaryrefslogtreecommitdiffstats
path: root/printing/printed_document.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 21:53:08 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 21:53:08 +0000
commit877d55dcd3e01d1db858f154a1f369e76b2ebaf2 (patch)
treeee2364ca767826deed3d541603d6c92ca2f0062e /printing/printed_document.h
parentaaa47ee9d83f773d37aa4fd4a04097425ce62063 (diff)
downloadchromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.zip
chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.tar.gz
chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.tar.bz2
First patch in making destructors of refcounted objects private.
BUG=26749 Review URL: http://codereview.chromium.org/360042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31136 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document.h')
-rw-r--r--printing/printed_document.h5
1 files changed, 4 insertions, 1 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;