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

Unified Diff: ppapi/proxy/truetype_font_resource.cc

Issue 337203003: Move PPB_TrueTypeFont_Dev host from renderer to browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698