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

Unified Diff: chrome/browser/nacl_host/nacl_process_host.h

Issue 11368019: Add support for external out-of-process PPAPI plugins in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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: chrome/browser/nacl_host/nacl_process_host.h
===================================================================
--- chrome/browser/nacl_host/nacl_process_host.h (revision 166155)
+++ chrome/browser/nacl_host/nacl_process_host.h (working copy)
@@ -15,6 +15,7 @@
#include "base/process.h"
#include "chrome/common/nacl_types.h"
#include "content/public/browser/browser_child_process_host_delegate.h"
+#include "content/public/browser/browser_child_process_host_iterator.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_channel_handle.h"
#include "net/base/tcp_listen_socket.h"
@@ -26,6 +27,7 @@
namespace content {
class BrowserChildProcessHost;
+class BrowserPpapiHost;
}
namespace IPC {
@@ -70,6 +72,9 @@
bool Send(IPC::Message* msg);
+ content::BrowserChildProcessHost* process() { return process_.get(); }
+ content::BrowserPpapiHost* browser_ppapi_host() { return ppapi_host_.get(); }
+
private:
friend class PluginListener;
@@ -198,10 +203,20 @@
scoped_ptr<IPC::ChannelProxy> ipc_proxy_channel_;
// Plugin listener, to forward browser channel messages to us.
PluginListener ipc_plugin_listener_;
+ // Browser host for plugin process.
+ scoped_ptr<content::BrowserPpapiHost> ppapi_host_;
int render_view_id_;
DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
};
+class NaClProcessHostIterator
+ : public content::BrowserChildProcessHostTypeIterator<NaClProcessHost> {
+ public:
+ NaClProcessHostIterator()
+ : content::BrowserChildProcessHostTypeIterator<NaClProcessHost>(
+ content::PROCESS_TYPE_NACL_LOADER) {}
+};
+
#endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698