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

Unified Diff: content/public/renderer/renderer_ppapi_host.h

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
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() {}
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_renderer_connection.cc ('k') | content/renderer/pepper/mock_renderer_ppapi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698