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_; |