summaryrefslogtreecommitdiffstats
path: root/content/browser/ppapi_plugin_process_host.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert string16 to base::string16 in content.brettw@chromium.org2013-12-031-1/+1
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/102593002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238447 0039d316-1c4b-4281-b951-d872f2087c98
* TCPSockets are switched to the new Pepper proxy.ygorshenin@chromium.org2013-08-281-8/+2
| | | | | | | | | BUG=230784 TEST=browser_tests:*TCPSocket*, *TCPServerSocket* Review URL: https://chromiumcodereview.appspot.com/22923014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220073 0039d316-1c4b-4281-b951-d872f2087c98
* Update include paths in content/browser for base/process changes.rsesek@chromium.org2013-07-231-1/+1
| | | | | | | | | BUG=242290 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/19495006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213225 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in content/browser/, part 2.avi@chromium.org2013-06-111-1/+1
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/16625010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205435 0039d316-1c4b-4281-b951-d872f2087c98
* Allow renderer to create pepper ResourceHosts in the browserraymes@chromium.org2013-06-071-0/+2
| | | | | | | | | | This CL allows pending ResourceHosts to be created in the browser from the renderer. The functionality is currently exposed through the RendererPpapiHost. The creation call is asynchronous - a callback will be called in the renderer with a pending host ID when the host has been created. BUG=246396 Review URL: https://chromiumcodereview.appspot.com/15947004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204954 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Use base namespace for FilePath in content/browserbrettw@chromium.org2013-02-071-6/+6
| | | | | | Review URL: https://codereview.chromium.org/12213066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181349 0039d316-1c4b-4281-b951-d872f2087c98
* Add two new debug URLs for Pepper Flash:yzshen@chromium.org2013-01-221-1/+7
| | | | | | | | | | | | | - chrome://ppapiflashcrash - chrome://ppapiflashhang TEST=none BUG=169915 Review URL: https://chromiumcodereview.appspot.com/11883026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177983 0039d316-1c4b-4281-b951-d872f2087c98
* Use an explicit PID for duplicating Pepper handles rather than the Channel's.brettw@chromium.org2013-01-041-0/+2
| | | | | | | | | | | | When the browser process launches the plugin, it explicitly tells each side the PID of the other side, and we now use this PID for sharing handles. Previously we'd use the PID from the IPC channel. Using the PID from the IPC channel creates a race condition because the PID isn't set until the "hello" message from the opposite side is processed, which isn't guaranteed at any particular time. BUG=168222 Review URL: https://codereview.chromium.org/11722017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175190 0039d316-1c4b-4281-b951-d872f2087c98
* Implement an IsAllowed function in the pepper PPB_Broker_Trusted APIraymes@chromium.org2012-12-101-8/+9
| | | | | | | | | | | | | Flash sometimes needs to synchronously know if it can launch the broker, otherwise it will try to launch the broker when it shouldn't, and end up popping an infobar. This adds an IsAllowed function to synchronously test whether the broker is allowed to launch without popping the infobar. Note that the document URL of the plugin instance is needed in order to check the broker permissions in the browser process. This is only available in the renderer process. In order to avoid an extra hop to the renderer process just to get this URL, it is sent to the browser (with the render view ID) upon initialization of the instance when the instance is registered with the browser process. BUG=163248 Review URL: https://chromiumcodereview.appspot.com/11316316 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172104 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource ↵raymes@chromium.org2012-12-081-4/+0
| | | | | | | | | | model The refactors PPB_Flash_File_ModuleLocal/FileRef to the new resource model. Calls for both these interfaces are now made directly to the browser. This removes the in-process implementation for these interfaces also (as they are flash-only). Tests are added for PPB_Flash_File_ModuleLocal. Review URL: https://codereview.chromium.org/11359097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171902 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 171408raymes@chromium.org2012-12-061-0/+4
| | | | | | | | | | | | > The refactors PPB_Flash_File_ModuleLocal/FileRef to the new resource model. Calls for both these interfaces are now made directly to the browser. This removes the in-process implementation for these interfaces also (as they are flash-only). Tests are added for PPB_Flash_File_ModuleLocal. > > Review URL: https://codereview.chromium.org/11359097 TBR=raymes@chromium.org Review URL: https://codereview.chromium.org/11437038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171562 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 171389raymes@chromium.org2012-12-061-4/+0
| | | | | | | | | | | | | | | | | | | | The revert is causing browser tests to fail. Reverting the revert. > Revert 171080 > > > The refactors PPB_Flash_File_ModuleLocal/FileRef to the new resource model. Calls for both these interfaces are now made directly to the browser. This removes the in-process implementation for these interfaces also (as they are flash-only). Tests are added for PPB_Flash_File_ModuleLocal. > > > > Review URL: https://codereview.chromium.org/11359097 > > TBR=raymes@chromium.org > > Review URL: https://codereview.chromium.org/11437038 TBR=raymes@chromium.org Review URL: https://codereview.chromium.org/11450025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171408 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 171080raymes@chromium.org2012-12-061-0/+4
| | | | | | | | | | | | > The refactors PPB_Flash_File_ModuleLocal/FileRef to the new resource model. Calls for both these interfaces are now made directly to the browser. This removes the in-process implementation for these interfaces also (as they are flash-only). Tests are added for PPB_Flash_File_ModuleLocal. > > Review URL: https://codereview.chromium.org/11359097 TBR=raymes@chromium.org Review URL: https://codereview.chromium.org/11437038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171389 0039d316-1c4b-4281-b951-d872f2087c98
* The refactors PPB_Flash_File_ModuleLocal/FileRef to the new resource model. ↵raymes@chromium.org2012-12-041-4/+0
| | | | | | | | Calls for both these interfaces are now made directly to the browser. This removes the in-process implementation for these interfaces also (as they are flash-only). Tests are added for PPB_Flash_File_ModuleLocal. Review URL: https://codereview.chromium.org/11359097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171080 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for external out-of-process PPAPI plugins in the browser.bbudge@chromium.org2012-11-071-1/+1
| | | | | | | | | | | | | | | | - Modifies content::BrowserPpapiHostImpl so it's not ref-counted. - Adds a public content API method, BrowserPpapiHost::CreateExternalPluginProcess which allows the embedder to associate a browser ppapi host with a plugin process. - Adds a public content API method, ContentBrowserClient::GetExternalBrowserPpapiHost, so content can track instance creation and deletion for external plugins (e.g. NaCl) - Removes the content API method EnablePepperSupportForChannel. This is now done when creating the BrowserPpapiHost. BUG=116317 TEST=none Review URL: https://chromiumcodereview.appspot.com/11368019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166480 0039d316-1c4b-4281-b951-d872f2087c98
* Move the remaning files in content\common to the content namespace.jam@chromium.org2012-10-241-20/+20
| | | | | | Review URL: https://codereview.chromium.org/11235068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163732 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up PpapiPermissions in more places.brettw@chromium.org2012-10-021-0/+2
| | | | | | | | This doesn't actually do much more checking of the permissions, but it should wire it up everywhere we'll need it. It will also at least only return public interfaces via GetInterface in the proxy now unless other bits are supplied. Review URL: https://codereview.chromium.org/10984094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159729 0039d316-1c4b-4281-b951-d872f2087c98
* Handle crashing Pepper plug-ins the same as crashing NPAPI plug-ins.cevans@chromium.org2012-09-241-0/+1
| | | | | | | | BUG=151895 Review URL: https://chromiumcodereview.appspot.com/10956065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158364 0039d316-1c4b-4281-b951-d872f2087c98
* Convert the async device ID getter to a chrome resource hostbrettw@chromium.org2012-09-151-0/+13
| | | | | | Review URL: https://codereview.chromium.org/10909138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156989 0039d316-1c4b-4281-b951-d872f2087c98
* Add a skeleton gamepad resource.brettw@chromium.org2012-08-241-1/+1
| | | | | | | | | | | | This implements the skeleton of the gamepad resource for the IPC proxy. It is not actually hooked up. Hooking it up will require moving some gamepad lock code to a shared location. This also hooks up the browser message routing for implementing resource hosts in the browser process. BUG= Review URL: https://chromiumcodereview.appspot.com/10824272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153265 0039d316-1c4b-4281-b951-d872f2087c98
* Bluetooth API: improve discoverybrettw@chromium.org2012-08-101-0/+3
| | | | | | | | | | | | | | | | This CL: - eliminates unnecessary dispatches - correctly handles devices that are discovered before interest is registered TEST=ran api test BUG=133179 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150898 Review URL: https://chromiumcodereview.appspot.com/10815072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151138 0039d316-1c4b-4281-b951-d872f2087c98
* Wire up a PPAPI host in content/browser.brettw@chromium.org2012-07-161-1/+1
| | | | | | | | | | | Nothing actually uses this yet. I plumbed through a PpapiHost and the permissions through the message filter. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10696132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146816 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #pragma once from contentajwong@chromium.org2012-07-111-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10696166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146071 0039d316-1c4b-4281-b951-d872f2087c98
* Move Pepper files in renderer_host to new subdir.brettw@chromium.org2012-07-031-2/+2
| | | | | | | | | | | | I'm going to be adding more stuff here and refactoring this existing stuff. This will mirror content/renderer/pepper. TEST=none BUG=none Review URL: https://chromiumcodereview.appspot.com/10699043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145360 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, delegate cleanuprsleevi@chromium.org2012-06-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | For Delegate/Observer-type classes that specify an interface but do not have any particular lifetime requirements, make their destructors protected. This is to allow their interfaces to be implemented safely by RefCounted types. With public destructors, it's possible to do "scoped_ptr<Delegate> foo", and then assign a RefCountedDelegateImpl, which would lead to a double free. As none of these Delegates actually need public destructors (ownership of the Delegate* is not transferred during a function call / class constructor), mark the destructors protected so that it becomes a compile warning to try to delete them via the Delegate*. BUG=123295 TEST=it compiles Review URL: https://chromiumcodereview.appspot.com/10383262 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144086 0039d316-1c4b-4281-b951-d872f2087c98
* Use IPC::Sender and IPC::Listener in content.brettw@chromium.org2012-06-251-3/+3
| | | | | | | | | | | | | This replaces uses of IPC::Message::Sender with IPC::Sender and IPC::Channel::Listener with IPC::Listener. I also fixed up header files where it was obvious. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10662005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143920 0039d316-1c4b-4281-b951-d872f2087c98
* Open pepper files directly in browser.tsepez@chromium.org2012-06-051-3/+10
| | | | | | | | | | This CL merges in the changes for the per-profile plugin process from the previously retired CL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140093 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140399 Review URL: https://chromiumcodereview.appspot.com/10387195 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140602 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 140399 - Open pepper files directly in browser.tsepez@chromium.org2012-06-041-10/+3
| | | | | | | | | | | | This CL merges in the changes for the per-profile plugin process from the previously retired CL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140093 Review URL: https://chromiumcodereview.appspot.com/10387195 TBR=tsepez@chromium.org Review URL: https://chromiumcodereview.appspot.com/10521012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140402 0039d316-1c4b-4281-b951-d872f2087c98
* Open pepper files directly in browser.tsepez@chromium.org2012-06-041-3/+10
| | | | | | | | | This CL merges in the changes for the per-profile plugin process from the previously retired CL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140093 Review URL: https://chromiumcodereview.appspot.com/10387195 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140399 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 140093 - Open pepper files directly in browser.tsepez@chromium.org2012-06-011-10/+3
| | | | | | | | | | | This CL merges in the changes for the per-profile plugin process from the previously retired CL. Review URL: https://chromiumcodereview.appspot.com/10387195 TBR=tsepez@chromium.org Review URL: https://chromiumcodereview.appspot.com/10477006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140094 0039d316-1c4b-4281-b951-d872f2087c98
* Open pepper files directly in browser.tsepez@chromium.org2012-06-011-3/+10
| | | | | | | | This CL merges in the changes for the per-profile plugin process from the previously retired CL. Review URL: https://chromiumcodereview.appspot.com/10387195 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140093 0039d316-1c4b-4281-b951-d872f2087c98
* Run a ppapi process per (profile, plugin) pair.tsepez@chromium.org2012-05-311-1/+8
| | | | | | | | | | This prevents sharing a ppapi process across profiles. This is a good idea for the same reasons that we don't share renderers across profiles. This is also a prerequisite for fixing the associated bug. BUG=127624 Review URL: https://chromiumcodereview.appspot.com/10383202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139848 0039d316-1c4b-4281-b951-d872f2087c98
* Broker out PPAPI handle duplicationjschuh@chromium.org2012-05-111-2/+1
| | | | | | | BUG=127449 Review URL: https://chromiumcodereview.appspot.com/10378057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136686 0039d316-1c4b-4281-b951-d872f2087c98
* Add a way to query whether a given instance is off-the-recordbrettw@chromium.org2012-05-021-0/+3
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10278007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135010 0039d316-1c4b-4281-b951-d872f2087c98
* This adds a hang monitor for Pepper plugins. It monitors sync messages on ↵brettw@chromium.org2012-04-131-5/+4
| | | | | | | | | | | | the I/O thread of the renderer and sends a message to the browser if it's blocked for too long. The browser will show an infobar allowing you to terminate the plugin. BUG=122795 Review URL: https://chromiumcodereview.appspot.com/10014013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132245 0039d316-1c4b-4281-b951-d872f2087c98
* Add an interface for Flash to clear its data.brettw@chromium.org2012-04-121-4/+5
| | | | | | | | | | This mirrors NPP_ClearSiteData. I basically just hooked into the existing infrastructure in the browser process, and create a new plugin. I changed the NPAPI IPC message to take the max age rather than compute it from the time so I did not have to duplicate the time computation code. Review URL: https://chromiumcodereview.appspot.com/9981015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132067 0039d316-1c4b-4281-b951-d872f2087c98
* Make content::ResourceContext be a real interface like the rest of the ↵jam@chromium.org2012-02-091-1/+1
| | | | | | | | | Content API (i.e. don't have setters/getters on it, and make all the functions pure virtual). BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9369009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121287 0039d316-1c4b-4281-b951-d872f2087c98
* Rename BrowserChildProcessHost implementation class to ↵jam@chromium.org2012-01-231-2/+2
| | | | | | | | | BrowserChildProcessHostImpl. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9117006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118758 0039d316-1c4b-4281-b951-d872f2087c98
* Add a Content API around BrowserChildProcessHost, similar to what was done ↵jam@chromium.org2012-01-201-3/+30
| | | | | | | | | | | | with ChildProcessHost. Now classes like PluginProcessHost don't derive from it, but instead use composition. I've also moved the iterator class into its own file in the public directory. Since classes don't derive from BrowserChildProcessHost and so can't static_cast from it, I added a template helper that does this. BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118415 Review URL: https://chromiumcodereview.appspot.com/9150017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118516 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 118415 - Add a Content API around BrowserChildProcessHost, similar to ↵jam@chromium.org2012-01-201-30/+3
| | | | | | | | | | | | | what was done with ChildProcessHost. Now classes like PluginProcessHost don't derive from it, but instead use composition. I've also moved the iterator class into its own file in the public directory. Since classes don't derive from BrowserChildProcessHost and so can't static_cast from it, I added a template helper that does this. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9150017 TBR=jam@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118420 0039d316-1c4b-4281-b951-d872f2087c98
* Add a Content API around BrowserChildProcessHost, similar to what was done ↵jam@chromium.org2012-01-201-3/+30
| | | | | | | | | | | with ChildProcessHost. Now classes like PluginProcessHost don't derive from it, but instead use composition. I've also moved the iterator class into its own file in the public directory. Since classes don't derive from BrowserChildProcessHost and so can't static_cast from it, I added a template helper that does this. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9150017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118415 0039d316-1c4b-4281-b951-d872f2087c98
* Don't make classes derive from ChildProcessHost, and instead have them use ↵jam@chromium.org2011-12-021-1/+0
| | | | | | | | | it through composition. This cleans up the code and makes it easier to understand (as well as more closely conform to the Google C++ style guide). It also makes it possible to add an interface around ChildProcessHost in a future change. BUG=98716 Review URL: http://codereview.chromium.org/8774040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112769 0039d316-1c4b-4281-b951-d872f2087c98
* Dispatch the Windows font caching IPCs in one filter. This avoids having the ↵jam@chromium.org2011-12-011-7/+0
| | | | | | | | | code that calls those functions be duplicated and also makes the chrome service code not know about internal content IPCs. It also cleans up ChildProcessHost a bit, which will be useful when it gets an interface around it for the Content API. BUG=98716 Review URL: http://codereview.chromium.org/8759013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112492 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to content/.avi@chromium.org2011-11-171-2/+2
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8587009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110544 0039d316-1c4b-4281-b951-d872f2087c98
* Enable sending requests to pre-cache fonts from pepper plugin processes.yzshen@chromium.org2011-11-091-0/+10
| | | | | | | | | | BUG=None TEST=Pepper Flash should render the text on http://www.adventmedia.net/#/home correctly. Review URL: http://codereview.chromium.org/8479024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109189 0039d316-1c4b-4281-b951-d872f2087c98
* Move PepperPluginInfo to content/public/common and put it into the content ↵jam@chromium.org2011-10-211-5/+5
| | | | | | | | | namespace. BUG=98716 Review URL: http://codereview.chromium.org/8366027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106731 0039d316-1c4b-4281-b951-d872f2087c98
* Combine PpapiBrokerProcessHost into PpapiPluginProcessHost.ddorwin@chromium.org2011-09-301-16/+31
| | | | | | | | | | | The broker does not need the network observer, so I factored that out. Since the constructors for the broker and plugin are different, I made them private and added factories that also call Init(), which must be called before the object can be used. BUG=none TEST=none Review URL: http://codereview.chromium.org/7979028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103472 0039d316-1c4b-4281-b951-d872f2087c98
* Tag IPC::Channel::Listener implementations with OVERRIDEevan@chromium.org2011-08-161-3/+3
| | | | | | Review URL: http://codereview.chromium.org/7661031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97021 0039d316-1c4b-4281-b951-d872f2087c98
* Wire up the IP address change notification to the PPAPI network statebrettw@chromium.org2011-07-251-1/+5
| | | | | | | | | | | notification. This makes it possible for Flash content to receive network status change notifications in more-or-less the way it expects. I filed bug 90246 on sorting the rest of this out. TEST=manual Review URL: http://codereview.chromium.org/7491024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93885 0039d316-1c4b-4281-b951-d872f2087c98