diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:08 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:08 +0000 |
commit | 877d55dcd3e01d1db858f154a1f369e76b2ebaf2 (patch) | |
tree | ee2364ca767826deed3d541603d6c92ca2f0062e /printing/printed_page.h | |
parent | aaa47ee9d83f773d37aa4fd4a04097425ce62063 (diff) | |
download | chromium_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_page.h')
-rw-r--r-- | printing/printed_page.h | 5 |
1 files changed, 4 insertions, 1 deletions
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_; |