summaryrefslogtreecommitdiffstats
path: root/ppapi/ppapi_host.gypi
Commit message (Collapse)AuthorAgeFilesLines
* Remove InstanceMessageFilterraymes@chromium.org2013-01-031-2/+0
| | | | | | | | | | | This was previously used for handling PPB_Flash_Print IPCs which has now been moved to the pepper singleton-style resource model. The use of this class has largely been replaced by singleton-style resources and I don't forsee new uses of it in the near future. It can be added back in the future if needed. BUG= Review URL: https://chromiumcodereview.appspot.com/11645039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174905 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce MessageFilterHost for Pepper ResourceHosts.raymes@google.com2012-12-181-0/+2
| | | | | | | | | | | | This introduces a MessageFilterHost which is a generic Pepper ResourceHost which can be used when all the ResourceHost does is forward messages to a message filter. It seems good to keep the logic for handling resource messages on a background thread separate in the ResourceMessageFilter class. However, currently when writing a ResourceHost that uses a ResourceMessageFilter, the host ends up being empty. Also, we've been putting the code for the host and the message filter in the same file which is bad for code readability. MessageFilterHost can be used as a generic host in this case such that only the ResourceMessageFilter needs to be written. This reduces the amount of boilerplate needed in cases like this. BUG= Review URL: https://codereview.chromium.org/11601004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173619 0039d316-1c4b-4281-b951-d872f2087c98
* Added a ResourceMessageFilter for handling resource messages on another thread.raymes@chromium.org2012-11-201-0/+4
| | | | | | | | | | | ResourceHosts make it difficult to handle messages on background threads. This adds a ResourceMessageFilter class which can be subclassed to easily handle resource messages on another thread. It should be added to a ResourceHost using |AddFilter|. BUG=None TEST=Added a unittest Review URL: https://chromiumcodereview.appspot.com/11410029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168729 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the gamepad API in the IPC proxybrettw@chromium.org2012-09-101-0/+1
| | | | | | | | | | | | | | This does some reworking of the gamepad system to make it possible to hook in (previously it assumed that it was only talking to renderers) and I did some cleanup. Gamepad files were renamed to match the classes, and I did a bunch of test infrastructure work. IMPORTANT BEHAVIOR CHANGE: This changes the Web gamepad API to report all gamepad data as soon as any of them are interacted with. This is what we need to do for Pepper anyway (since it gets all or none of the share memory) and I think makes more sense for most consumers anyway. I separated out the user gesture detection code into a place where it can be used in the browser process as well, and exposed functionality in the gamepad provider to be notified when a user gesture happens. The existing gamepad test was disabled and had bitrotted. This fixes it. Review URL: https://chromiumcodereview.appspot.com/10912062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155676 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generallydmichael@chromium.org2012-08-271-0/+1
| | | | | | | | | | | | | | | | | This does a couple of things: - It defines a new wrapper for passing any kind of handle through the PPAPI proxy (SerializedHandle). - It updates nacl_ipc_adapter to have a more general way to pick apart messages based on their static types (which include the types of all the params). - It adds support for PPB_Graphics2D and PPB_Graphics3D to the NaCl IPC proxy (e.g., NaCl SDK examples pi_generator and tumbler work in the new proxy with this patch). The downside is it requires pulling parts of ppapi/shared_impl and ppapi/proxy in to the NaCl Win64 build. BUG=116317 TEST= Review URL: https://chromiumcodereview.appspot.com/10828023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153531 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce shared_memory_support media target for PPAPI.dalecurtis@chromium.org2012-08-241-0/+1
| | | | | | | | | | | | | | | | | | Allows PPAPI to directly utilize shared memory utility code instead of duplicating it and CHECK'ing for equivalency. Required to eventually convert PPAPI to using an AudioBus and floats in PPB_Audio_Shared::Run(). http://crbug.com/114700 BUG=123203 TEST=unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152406 Review URL: https://chromiumcodereview.appspot.com/10826296 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153262 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 152406 - Introduce shared_memory_support media target for PPAPI.dalecurtis@google.com2012-08-201-1/+0
| | | | | | | | | | | | | | | | | | | Allows PPAPI to directly utilize shared memory utility code instead of duplicating it and CHECK'ing for equivalency. Required to eventually convert PPAPI to using an AudioBus and floats in PPB_Audio_Shared::Run(). http://crbug.com/114700 BUG=123203 TEST=unittests Review URL: https://chromiumcodereview.appspot.com/10826296 TBR=dalecurtis@chromium.org Review URL: https://chromiumcodereview.appspot.com/10837350 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152431 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce shared_memory_support media target for PPAPI.dalecurtis@chromium.org2012-08-201-0/+1
| | | | | | | | | | | | | | | | Allows PPAPI to directly utilize shared memory utility code instead of duplicating it and CHECK'ing for equivalency. Required to eventually convert PPAPI to using an AudioBus and floats in PPB_Audio_Shared::Run(). http://crbug.com/114700 BUG=123203 TEST=unittests Review URL: https://chromiumcodereview.appspot.com/10826296 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152406 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the PPB_Flash_Print interface to new host system.brettw@chromium.org2012-07-271-0/+2
| | | | | | | | | | | | | | | | | This adds the ability to implement "instance" messages (as opposed to resource messages) to PpapiHost via a message filter interface. The ownership model for these filters works just like RenderViewObserver. All non-resource messages are sent through this list of filters. This adds the ability to add such filters in the Chrome layer (as opposed to just content) by plumbing through some notifications. This patch responds to the trivial "Flash print" interface by calling the existing function in the renderer. This doesn't change the in-process case. Making this code path work in process will require that the "core" instance interface be done first or at the same time. As a result, the old in-process implementation is kept (it forwards to the same function in the end). This patch adds a HostResourceFactory for Chrome but doesn't hook it up yet. There is a TODO for this. I need to conver the host factories to a filter-like system to allow dynamic adding of filters from the Chrome layer. I'll do this in a follow-up patch. TEST=manual BUG=none Review URL: https://chromiumcodereview.appspot.com/10803050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148840 0039d316-1c4b-4281-b951-d872f2087c98
* This implements the PPB_FileChooser resource as a new-style IPC-only resource.brettw@chromium.org2012-07-141-0/+1
| | | | | | | | Note that the new file name is file_chooser_resource in the proxy. I decided to drop the ppb_ prefix for the "new-style" files to help differentiate them, and also because it's technically wrong. PPB is an interface, and a resource "object" may support multiple interfaces. I think FooResource is easier to type and read. Review URL: https://chromiumcodereview.appspot.com/10544089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146737 0039d316-1c4b-4281-b951-d872f2087c98
* Create a PPAPI host for new resource message routing.brettw@chromium.org2012-06-301-0/+32
This infrastructure will be used in the renderer and in the browser as the backing for new resources. The PpapiHost object doues the routing for the resource messages, and also has hooks for the embedder (the renderer or the browser) to create resources. This adds a content_renderer factory which currently does nothing (we'll add most of the resources here). BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10572040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145059 0039d316-1c4b-4281-b951-d872f2087c98