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

Unified Diff: printing/printed_document.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_document.h
===================================================================
--- printing/printed_document.h (revision 30973)
+++ printing/printed_document.h (working copy)
@@ -39,7 +39,6 @@
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 @@
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;

Powered by Google App Engine
This is Rietveld 408576698