Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Unified Diff: printing/printed_page.h

Issue 360042: First patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: printing/printed_page.h
===================================================================
--- printing/printed_page.h (revision 30973)
+++ printing/printed_page.h (working copy)
@@ -24,7 +24,6 @@
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 @@
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_;

Powered by Google App Engine
This is Rietveld 408576698