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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 10912062: Implement the gamepad API in the IPC proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 7da9abdbcfb039afbbeb982705f6a6945b1b354a..c80ceee9a735a9a2eb566c3d99365876464f6be9 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -141,6 +141,9 @@ PpapiPluginProcessHost::PpapiPluginProcessHost()
: is_broker_(true) {
process_.reset(new BrowserChildProcessHostImpl(
content::PROCESS_TYPE_PPAPI_BROKER, this));
+
+ ppapi::PpapiPermissions permissions; // No permissions.
+ host_impl_ = new content::BrowserPpapiHostImpl(this, permissions);
}
bool PpapiPluginProcessHost::Init(const content::PepperPluginInfo& info) {
@@ -243,6 +246,7 @@ void PpapiPluginProcessHost::RequestPluginChannel(Client* client) {
}
void PpapiPluginProcessHost::OnProcessLaunched() {
+ host_impl_->set_plugin_process_handle(process_->GetHandle());
}
bool PpapiPluginProcessHost::OnMessageReceived(const IPC::Message& msg) {
« no previous file with comments | « content/browser/gamepad/platform_data_fetcher_win.cc ('k') | content/browser/renderer_host/gamepad_browser_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698