| Index: ppapi/proxy/truetype_font_resource.cc
|
| diff --git a/ppapi/proxy/truetype_font_resource.cc b/ppapi/proxy/truetype_font_resource.cc
|
| index 1de32abb434a38752207fa5d3a31b6cf3ba77636..e7105944046c046e3220aa9be1566eaedcb9a257 100644
|
| --- a/ppapi/proxy/truetype_font_resource.cc
|
| +++ b/ppapi/proxy/truetype_font_resource.cc
|
| @@ -31,7 +31,7 @@ TrueTypeFontResource::TrueTypeFontResource(
|
| : PluginResource(connection, instance) {
|
| SerializedTrueTypeFontDesc serialized_desc;
|
| serialized_desc.SetFromPPTrueTypeFontDesc(desc);
|
| - SendCreate(RENDERER, PpapiHostMsg_TrueTypeFont_Create(serialized_desc));
|
| + SendCreate(BROWSER, PpapiHostMsg_TrueTypeFont_Create(serialized_desc));
|
| }
|
|
|
| TrueTypeFontResource::~TrueTypeFontResource() {
|
| @@ -44,20 +44,26 @@ PPB_TrueTypeFont_API* TrueTypeFontResource::AsPPB_TrueTypeFont_API() {
|
| int32_t TrueTypeFontResource::Describe(
|
| PP_TrueTypeFontDesc_Dev* desc,
|
| scoped_refptr<TrackedCallback> callback) {
|
| - Call<PpapiPluginMsg_TrueTypeFont_DescribeReply>(RENDERER,
|
| + Call<PpapiPluginMsg_TrueTypeFont_DescribeReply>(
|
| + BROWSER,
|
| PpapiHostMsg_TrueTypeFont_Describe(),
|
| - base::Bind(&TrueTypeFontResource::OnPluginMsgDescribeComplete, this,
|
| - callback, desc));
|
| + base::Bind(&TrueTypeFontResource::OnPluginMsgDescribeComplete,
|
| + this,
|
| + callback,
|
| + desc));
|
| return PP_OK_COMPLETIONPENDING;
|
| }
|
|
|
| int32_t TrueTypeFontResource::GetTableTags(
|
| const PP_ArrayOutput& output,
|
| scoped_refptr<TrackedCallback> callback) {
|
| - Call<PpapiPluginMsg_TrueTypeFont_GetTableTagsReply>(RENDERER,
|
| + Call<PpapiPluginMsg_TrueTypeFont_GetTableTagsReply>(
|
| + BROWSER,
|
| PpapiHostMsg_TrueTypeFont_GetTableTags(),
|
| - base::Bind(&TrueTypeFontResource::OnPluginMsgGetTableTagsComplete, this,
|
| - callback, output));
|
| + base::Bind(&TrueTypeFontResource::OnPluginMsgGetTableTagsComplete,
|
| + this,
|
| + callback,
|
| + output));
|
| return PP_OK_COMPLETIONPENDING;
|
| }
|
|
|
| @@ -67,10 +73,13 @@ int32_t TrueTypeFontResource::GetTable(
|
| int32_t max_data_length,
|
| const PP_ArrayOutput& output,
|
| scoped_refptr<TrackedCallback> callback) {
|
| - Call<PpapiPluginMsg_TrueTypeFont_GetTableReply>(RENDERER,
|
| + Call<PpapiPluginMsg_TrueTypeFont_GetTableReply>(
|
| + BROWSER,
|
| PpapiHostMsg_TrueTypeFont_GetTable(table, offset, max_data_length),
|
| - base::Bind(&TrueTypeFontResource::OnPluginMsgGetTableComplete, this,
|
| - callback, output));
|
| + base::Bind(&TrueTypeFontResource::OnPluginMsgGetTableComplete,
|
| + this,
|
| + callback,
|
| + output));
|
| return PP_OK_COMPLETIONPENDING;
|
| }
|
|
|
|
|