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

Unified Diff: ppapi/shared_impl/private/ppb_font_shared.h

Issue 9317100: Use the correct Resource constructor for PPB_Font_Shared in the plugin process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 months 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 | ppapi/shared_impl/private/ppb_font_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/private/ppb_font_shared.h
diff --git a/ppapi/shared_impl/private/ppb_font_shared.h b/ppapi/shared_impl/private/ppb_font_shared.h
index 3b852bf28e33e48b2f73212cc5d71ce7e3020ede..87152d6319f630c2b97318b8b1b7173861a7eba0 100644
--- a/ppapi/shared_impl/private/ppb_font_shared.h
+++ b/ppapi/shared_impl/private/ppb_font_shared.h
@@ -59,7 +59,21 @@ class PPAPI_SHARED_EXPORT PPB_Font_Shared
uint32_t char_offset) OVERRIDE;
private:
- PPB_Font_Shared(PP_Instance instance, const PP_FontDescription_Dev& desc,
+ struct InitAsImpl {};
+ struct InitAsProxy {};
+
+ // The dummy arguments control which version of Resource's constructor is
+ // called for this base class.
+ PPB_Font_Shared(const InitAsImpl&,
+ PP_Instance instance,
+ const PP_FontDescription_Dev& desc,
+ const ::ppapi::Preferences& prefs);
+ PPB_Font_Shared(const InitAsProxy&,
+ PP_Instance instance,
+ const PP_FontDescription_Dev& desc,
+ const ::ppapi::Preferences& prefs);
+
+ void Initialize(const PP_FontDescription_Dev& desc,
const ::ppapi::Preferences& prefs);
scoped_ptr< ::ppapi::WebKitForwarding::Font> font_impl_;
« no previous file with comments | « no previous file | ppapi/shared_impl/private/ppb_font_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698