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

Unified Diff: app/gfx/font.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
« no previous file with comments | « no previous file | app/sql/connection.h » ('j') | base/field_trial.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/font.h
===================================================================
--- app/gfx/font.h (revision 30973)
+++ app/gfx/font.h (working copy)
@@ -169,7 +169,6 @@
int ave_char_width,
int style,
int dlu_base_x);
- ~HFontRef();
// Accessors
HFONT hfont() const { return hfont_; }
@@ -181,6 +180,10 @@
const std::wstring& font_name() const { return font_name_; }
private:
+ friend class base::RefCounted<HFontRef>;
+
+ ~HFontRef();
+
const HFONT hfont_;
const int height_;
const int baseline_;
« no previous file with comments | « no previous file | app/sql/connection.h » ('j') | base/field_trial.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698