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

Unified Diff: content/public/browser/content_browser_client.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: content/public/browser/content_browser_client.h
===================================================================
--- content/public/browser/content_browser_client.h (revision 166155)
+++ content/public/browser/content_browser_client.h (working copy)
@@ -436,11 +436,26 @@
// else we should do with the file.
virtual std::string GetDefaultDownloadName();
- // Notifification that a pepper plugin has just been spawned. This allows the
+ // Notification that a pepper plugin has just been spawned. This allows the
// embedder to add filters onto the host to implement interfaces.
// This is called on the IO thread.
virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {}
+ // Gets the host for an external out-of-process plugin.
+ virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost(
+ int plugin_child_id);
+
+ // Notification that an instance has just been created for an external out of
+ // process pepper plugin (e.g. a NaCl plugin). Called on the IO thread.
+ virtual void DidCreatePpapiInstance(int plugin_child_id,
brettw 2012/11/07 00:18:11 I'm not sure these are used? Are they from a previ
bbudge 2012/11/07 00:51:46 Yep. Thanks.
+ int32 pp_instance,
+ int render_process_id,
+ int render_view_id) {}
+ // Notification that an instance has just been deleted for an external out of
+ // process pepper plugin (e.g. a NaCl plugin). Called on the IO thread.
+ virtual void DidDeletePpapiInstance(int plugin_child_id,
+ int32 pp_instance) {}
+
// Returns true if renderer processes can use Pepper TCP/UDP sockets from
// the given origin and connection type.
virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,

Powered by Google App Engine
This is Rietveld 408576698