Index: content/public/renderer/renderer_ppapi_host.h |
diff --git a/content/public/renderer/renderer_ppapi_host.h b/content/public/renderer/renderer_ppapi_host.h |
index 329961e93e0a138a918a3de845118273a15b33e5..2922ff369da57c6c7053406a9bd15cf9c7f4bb27 100644 |
--- a/content/public/renderer/renderer_ppapi_host.h |
+++ b/content/public/renderer/renderer_ppapi_host.h |
@@ -5,6 +5,8 @@ |
#ifndef CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
#define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
+#include <vector> |
+ |
#include "base/callback_forward.h" |
#include "base/memory/ref_counted.h" |
#include "base/platform_file.h" |
@@ -110,16 +112,16 @@ class RendererPpapiHost { |
virtual bool IsRunningInProcess() const = 0; |
// There are times when the renderer needs to create a ResourceHost in the |
- // browser. This function does so asynchronously. |nested_msg| is the |
- // resource host creation message and |instance| is the PP_Instance which |
+ // browser. This function does so asynchronously. |nested_msgs| is a list of |
+ // resource host creation messages and |instance| is the PP_Instance which |
// the resource will belong to. |callback| will be called with the pending |
- // host ID when the ResourceHost has been created. This can be passed back |
- // to the plugin to attach to the ResourceHost. A pending ID of 0 will be |
- // passed to the callback upon error. |
- virtual void CreateBrowserResourceHost( |
+ // host IDs when the ResourceHosts have been created. This can be passed back |
+ // to the plugin to attach to the ResourceHosts. Pending IDs of 0 will be |
+ // passed to the callback if a ResourceHost fails to be created. |
+ virtual void CreateBrowserResourceHosts( |
PP_Instance instance, |
- const IPC::Message& nested_msg, |
- const base::Callback<void(int)>& callback) const = 0; |
+ const std::vector<IPC::Message>& nested_msgs, |
+ const base::Callback<void(const std::vector<int>&)>& callback) const = 0; |
protected: |
virtual ~RendererPpapiHost() {} |