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

Unified Diff: content/browser/ppapi_plugin_process_host.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
Index: content/browser/ppapi_plugin_process_host.cc
===================================================================
--- content/browser/ppapi_plugin_process_host.cc (revision 85766)
+++ content/browser/ppapi_plugin_process_host.cc (working copy)
@@ -16,8 +16,10 @@
#include "ipc/ipc_switches.h"
#include "ppapi/proxy/ppapi_messages.h"
-PpapiPluginProcessHost::PpapiPluginProcessHost()
- : BrowserChildProcessHost(ChildProcessInfo::PPAPI_PLUGIN_PROCESS) {
+PpapiPluginProcessHost::PpapiPluginProcessHost(net::HostResolver* host_resolver)
+ : BrowserChildProcessHost(ChildProcessInfo::PPAPI_PLUGIN_PROCESS),
+ filter_(new PepperMessageFilter(host_resolver)) {
+ AddFilter(filter_.get());
}
PpapiPluginProcessHost::~PpapiPluginProcessHost() {
@@ -107,6 +109,13 @@
}
bool PpapiPluginProcessHost::OnMessageReceived(const IPC::Message& msg) {
+ // Some messages are handled by the filter.
+ /*
viettrungluu 2011/05/18 20:40:43 ?
+ bool message_was_ok = false;
+ if (filter_.OnMessageReceived(msg, &message_was_ok))
+ return true;
+ */
+
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(PpapiPluginProcessHost, msg)
IPC_MESSAGE_HANDLER(PpapiHostMsg_ChannelCreated,

Powered by Google App Engine
This is Rietveld 408576698