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

Unified Diff: content/renderer/pepper/renderer_ppapi_host_impl.cc

Issue 23011018: Modify Pepper CreateResourceHostFromHost to create multiple hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/renderer/pepper/renderer_ppapi_host_impl.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/renderer_ppapi_host_impl.cc
diff --git a/content/renderer/pepper/renderer_ppapi_host_impl.cc b/content/renderer/pepper/renderer_ppapi_host_impl.cc
index dd78352cb0dc1f0be8fe8058ccf6230b8bf70770..b94eac734e66381b9dc05e27b54957b7388abf6c 100644
--- a/content/renderer/pepper/renderer_ppapi_host_impl.cc
+++ b/content/renderer/pepper/renderer_ppapi_host_impl.cc
@@ -225,19 +225,19 @@ bool RendererPpapiHostImpl::IsRunningInProcess() const {
return is_running_in_process_;
}
-void RendererPpapiHostImpl::CreateBrowserResourceHost(
+void RendererPpapiHostImpl::CreateBrowserResourceHosts(
PP_Instance instance,
- const IPC::Message& nested_msg,
- const base::Callback<void(int)>& callback) const {
+ const std::vector<IPC::Message>& nested_msgs,
+ const base::Callback<void(const std::vector<int>&)>& callback) const {
RenderView* render_view = GetRenderViewForInstance(instance);
PepperBrowserConnection* browser_connection =
PepperBrowserConnection::Get(render_view);
if (!browser_connection) {
- callback.Run(0);
+ callback.Run(std::vector<int>(nested_msgs.size(), 0));
} else {
browser_connection->SendBrowserCreate(module_->GetPluginChildId(),
instance,
- nested_msg,
+ nested_msgs,
callback);
}
}
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698