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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 7044012: Support getting the font list in Pepper. This currently only works out of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « content/browser/renderer_host/pepper_message_filter.cc ('k') | content/common/font_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
===================================================================
--- content/browser/renderer_host/render_message_filter.cc (revision 85766)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -166,8 +166,10 @@
public PpapiPluginProcessHost::Client {
public:
OpenChannelToPpapiPluginCallback(RenderMessageFilter* filter,
+ const content::ResourceContext* context,
IPC::Message* reply_msg)
- : RenderMessageCompletionCallback(filter, reply_msg) {
+ : RenderMessageCompletionCallback(filter, reply_msg),
+ context_(context) {
}
virtual void GetChannelInfo(base::ProcessHandle* renderer_handle,
@@ -182,6 +184,13 @@
reply_msg(), plugin_process_handle, channel_handle);
SendReplyAndDeleteThis();
}
+
+ virtual const content::ResourceContext* GetResourceContext() {
+ return context_;
+ }
+
+ private:
+ const content::ResourceContext* context_;
};
class OpenChannelToPpapiBrokerCallback : public PpapiBrokerProcessHost::Client {
@@ -606,7 +615,9 @@
const FilePath& path,
IPC::Message* reply_msg) {
plugin_service_->OpenChannelToPpapiPlugin(
- path, new OpenChannelToPpapiPluginCallback(this, reply_msg));
+ path,
+ new OpenChannelToPpapiPluginCallback(
+ this, &resource_context_, reply_msg));
}
void RenderMessageFilter::OnOpenChannelToPpapiBroker(int routing_id,
« no previous file with comments | « content/browser/renderer_host/pepper_message_filter.cc ('k') | content/common/font_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698