summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Move tracing component to src/componentskaiwang@chromium.org2012-12-285-7/+7
| | | | | | | | | BUG=167317 COLLABORATOR=joi@chromium.org Review URL: https://chromiumcodereview.appspot.com/11624021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174716 0039d316-1c4b-4281-b951-d872f2087c98
* Make ppapi compile on Win64jschuh@chromium.org2012-12-281-0/+3
| | | | | | | | | BUG=166496 BUG=167187 TBR=yzshen Review URL: https://codereview.chromium.org/11688011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174713 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the old PPB_Flash proxy.raymes@chromium.org2012-12-2612-156/+0
| | | | | | | | | | | This removes the old, unused PPB_Flash proxy and related code. BUG= TBR=brettw Review URL: https://chromiumcodereview.appspot.com/11633034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174646 0039d316-1c4b-4281-b951-d872f2087c98
* Autogenerate thunk .cc files for PPB_Instance and PPB_Instance_Private.teravest@chromium.org2012-12-265-38/+72
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11662008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174624 0039d316-1c4b-4281-b951-d872f2087c98
* Ppapi: remove the code for closing pending user gesture.yzshen@chromium.org2012-12-226-47/+0
| | | | | | | | | | | | The code is a no-op currently. We set a timeout for user gesture at the renderer side, instead of relying on well-behaved plugins sending back messages to close user gesture. TEST=None BUG=None Review URL: https://chromiumcodereview.appspot.com/11664014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174501 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor Flash Print to the new pepper resource modelraymes@chromium.org2012-12-2110-73/+58
| | | | | | | | | | This refactors PPB_Flash_Print to the new pepper resource model. This is the last function from the ppb_flash_proxy to be refactored. The old proxy is still full of stale #includes and can now be removed entirely but this will be done in a separate CL. This was tested by printing from http://mycoloringbook.keasoftware.com/ Review URL: https://chromiumcodereview.appspot.com/11640033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174477 0039d316-1c4b-4281-b951-d872f2087c98
* Autogenerate thunk .cc file for PPB_Websocket.teravest@chromium.org2012-12-212-41/+60
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11662007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174452 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: modify FileIO.Open to return PP_ERROR_NOTAFILE when opening a directorynhiroki@chromium.org2012-12-215-1/+46
| | | | | | | | | | BUG=132201 TEST=browser_tests --gtest_filter=\*OpenDirectory\* Review URL: https://chromiumcodereview.appspot.com/11587008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174360 0039d316-1c4b-4281-b951-d872f2087c98
* Nit: fix directory name in ppb_console_thunk.ccteravest@chromium.org2012-12-211-1/+1
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11636052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174321 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that all resources are torn down before the routing.brettw@chromium.org2012-12-211-0/+4
| | | | | | | | | | | | | This force-deletes the resources before the various PpapiHosts are torn down. This ensures that all pointers are still valid at the time of resource destruction, allowing resources to do nontrivial things in their destructors. This part of the patch is forward-lookind and doesn't fix any current known bugs. Also force-unbind all the graphics from the instance destructor as well, which ensures that the Graphics2D host doesn't have a pointer to a bound instance that outlasts that instance (which fixes the below-mentioned bug). BUG=166353 Review URL: https://chromiumcodereview.appspot.com/11640030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174309 0039d316-1c4b-4281-b951-d872f2087c98
* Made the registration and deletion of transfer buffers async.apatrick@chromium.org2012-12-215-48/+31
| | | | | | | | | | | | | | Added a thread safe way to duplicate a shared memory handle for the GPU process. Removed synchronous IPC to set the command buffer shared state buffer. Removed CreateTransferBuffer IPC. Removed request_id arg from transfer buffer IPCs. It wasn't being used. BUG=166229 Review URL: https://chromiumcodereview.appspot.com/11640008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174303 0039d316-1c4b-4281-b951-d872f2087c98
* Convert pepper font list to new resource system.brettw@chromium.org2012-12-2011-30/+136
| | | | | | | | | | This converts the GetFontFamilies call to the new resource system using a singleton resource. BUG= Review URL: https://codereview.chromium.org/11578038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174241 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor 4 PPB_Flash functions to the new PPAPI resource model.raymes@chromium.org2012-12-1911-276/+161
| | | | | | | | | | | | | | | | | | | | | The functions being refactored are: -SetInstanceAlwaysOnTop -DrawGlyphs -GetProxyForURL -Navigate Each of these functions was manually tested with a Flash movie that uses it. Navigate() was tested on: -http://www.tjgames.com.br/jogos-online/169-Yan_Loong.htm -http://www.flonga.com/play/zombotron2.htm which were consistently causing instance deletion during a Navigate() call (causing https://code.google.com/p/chromium/issues/detail?id=165978). BUG=165978 Review URL: https://codereview.chromium.org/11510008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173980 0039d316-1c4b-4281-b951-d872f2087c98
* Update the comments for PPB_MouseLock.yzshen@chromium.org2012-12-193-7/+4
| | | | | | | | | | | It is not limited to tab fullscreen mode anymore. TEST=None BUG=None Review URL: https://codereview.chromium.org/11608004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173942 0039d316-1c4b-4281-b951-d872f2087c98
* idl_c_header: Use "/" as path separator in "From".teravest@chromium.org2012-12-191-1/+1
| | | | | | | | | | | | | Generating C headers on windows changes the direction of the slash, rewriting every C header when generator.py is run. This appears to be a regression in commit 6faeb209. BUG= Review URL: https://chromiumcodereview.appspot.com/11637004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173941 0039d316-1c4b-4281-b951-d872f2087c98
* CDM/PPAPI: Fix plugin-side ref-counting leakdmichael@chromium.org2012-12-193-45/+65
| | | | | | | | | | | | | This makes the reference counting such that we always pass a reference to the plugin (in-process and out-of-process). This also reverts https://src.chromium.org/viewvc/chrome?view=rev&revision=173626, since this is a more correct/complete fix. Now, if we end up trying to send the same HostResource more than once to the plugin, we should fail a DCHECK with this upcoming CL: https://codereview.chromium.org/11576024/ BUG=165717,166498,166341 Review URL: https://codereview.chromium.org/11593032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173855 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored PPB_Flash GetSettings to the new pepper resource modelraymes@chromium.org2012-12-1911-82/+94
| | | | | | | | | | | | This also removes unnecessary code from the PluginDelegate and PepperMessageFilter. BUG= Review URL: https://chromiumcodereview.appspot.com/11413200 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173850 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: DCHECK that a HostResource is added to Plugin tracker only oncedmichael@chromium.org2012-12-191-0/+5
| | | | | | | | | | | This makes bugs like 165717 much easier to detect. Without it, we only find out that something went wrong when we try to remove the non-unique HostResource from the host_resource_map_ the second time. BUG=165717 Review URL: https://chromiumcodereview.appspot.com/11576024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173836 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Use --strip-debug on pnacl_irt_shim archive to reduce size of chrome ↵jvoung@google.com2012-12-181-3/+3
| | | | | | | | | | | | | bundle." This reverts commit 420a648cde610bd200204dcc23fcc12bcdbfb5dc. BUG= red daisy TBR=mnissler Review URL: https://codereview.chromium.org/11614030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173739 0039d316-1c4b-4281-b951-d872f2087c98
* Use --strip-debug on pnacl_irt_shim archive to reduce size of chrome bundle.jvoung@google.com2012-12-181-3/+3
| | | | | | | | | | | | Debugging nexes from pexes, could be done offline anyway. Depends on: https://codereview.chromium.org/11576019/ to actually have an effect. Otherwise the flag is ignored. BUG=none Review URL: https://codereview.chromium.org/11566017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173737 0039d316-1c4b-4281-b951-d872f2087c98
* Add log message for swapbuffers in progress error.jbauman@chromium.org2012-12-181-0/+2
| | | | | | | | | | | | This bug seems to be really common, so log a message about it to the console. BUG= Review URL: https://chromiumcodereview.appspot.com/11620002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173676 0039d316-1c4b-4281-b951-d872f2087c98
* Add fullscreen functionality to gles2 examplepiman@chromium.org2012-12-181-6/+18
| | | | | | | | | | | Useful to check interaction between Graphics3D and Fullscreen. BUG=None Review URL: https://chromiumcodereview.appspot.com/11612004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173671 0039d316-1c4b-4281-b951-d872f2087c98
* Fix tracing for gpu/ directory in NaCljbauman@chromium.org2012-12-181-0/+3
| | | | | | | | | | | | NACL_PPAPI_IPC_PROXY isn't defined when compiling the .cc files for the IPC proxy, so instead make a NACL_PPAPI_SRPC_PROXY variable that's used only when compiling the SRPC proxy and use that to determine which trace macros to use. BUG=93839 Review URL: https://chromiumcodereview.appspot.com/11575050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173648 0039d316-1c4b-4281-b951-d872f2087c98
* CDM: Don't create a new plugin Resource when HostResource is sent twicedmichael@chromium.org2012-12-181-22/+25
| | | | | | | | | BUG=165717,166498 Review URL: https://chromiumcodereview.appspot.com/11568024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173626 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce MessageFilterHost for Pepper ResourceHosts.raymes@google.com2012-12-183-0/+66
| | | | | | | | | | | | 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
* This refactors PPB_Flash GetLocalTimeZoneOffset to the new PPAPI resource ↵raymes@chromium.org2012-12-1710-96/+106
| | | | | | | | | | | model. The in process implementation is removed. Associated plugin delegate code is also removed. BUG= Review URL: https://chromiumcodereview.appspot.com/11516020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173578 0039d316-1c4b-4281-b951-d872f2087c98
* Explicitly set actions in ppapi_untrusted as requiring cygwin (gyp only)iannucci@chromium.org2012-12-171-0/+1
| | | | | | | | TBR=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/11572025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173559 0039d316-1c4b-4281-b951-d872f2087c98
* Check for a malformed message more carefully. Also fix non-deterministiccevans@chromium.org2012-12-171-1/+3
| | | | | | | | | gfx::Size value if a message omits width and height attributes. BUG=165747 Review URL: https://codereview.chromium.org/11548038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173531 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PPAPI time conversion code to handle epoch times.raymes@chromium.org2012-12-173-0/+80
| | | | | | | | | | | | | This fixes the time conversion code to be able to correctly handle epoch times (e.g. when passing a PP_Time of 0). This eliminates the need to special-case for epoch time in other code. In practice the problem this fixes only manifests itself in test code. BUG= Review URL: https://codereview.chromium.org/11567013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173516 0039d316-1c4b-4281-b951-d872f2087c98
* Allow leading underscore on identifier names in IDL parserasargent@chromium.org2012-12-151-3/+7
| | | | | | | | | | | This lets us have identifiers that match reserved words. BUG=166268 Review URL: https://chromiumcodereview.appspot.com/11565053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173332 0039d316-1c4b-4281-b951-d872f2087c98
* Disable NaCl inbrowser_test_runner_parallel testdschuff@chromium.org2012-12-141-1/+4
| | | | | | | | | | | It's quite flaky on 32 bit windows TBR=ncbray@chromium.org,mseaborn@chromium.org BUG= http://code.google.com/p/chromium/issues/detail?id=162037 Review URL: https://codereview.chromium.org/11572048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173175 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper and IPC plumbing to display message to NaCl userdschuff@chromium.org2012-12-143-1/+35
| | | | | | | | | | | | | | | | | | | | | The goal is to display an infobar for the user when when the NaCl manifest does not have an entry for nexe usable on the user's architecture (e.g. if the user is on arm but only x86 nexes have been built). This CL is the plumbing from the NaCl plugin (which actually checks the manifest) into the browser process UI thread, which can actually do the UI. R= sehr@chromium.org/jvoung@chromium.org (plugin, nacl_host) brettw@chromium.org (ppapi/, chrome/renderer/pepper, chrome/browser/renderer_host) jschuh@chromium.org (chrome/common) BUG=154121 Review URL: https://chromiumcodereview.appspot.com/11446081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173139 0039d316-1c4b-4281-b951-d872f2087c98
* Improve NaCl startup error reporting in plugin and IPC proxy.bbudge@chromium.org2012-12-144-30/+16
| | | | | | | | | BUG=116317 TEST=nacl_integration Review URL: https://chromiumcodereview.appspot.com/11415142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173025 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 172805apatrick@google.com2012-12-145-31/+48
| | | | | | | | | | | | | | | | | > Made the registration and deletion of transfer buffers async. > > Added an IPC to request multiple transfer buffer IDs up front. > > Every renderer command buffer proxy gets some IPCs immediately after initialization. > > Removed request_id arg from CreateTransferBuffer. It wasn't being used. > > Review URL: https://chromiumcodereview.appspot.com/11308296 TBR=apatrick@chromium.org Review URL: https://codereview.chromium.org/11578020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173018 0039d316-1c4b-4281-b951-d872f2087c98
* Add permissions checking for Flash and network state.brettw@chromium.org2012-12-131-12/+0
| | | | | | | | | | | | Network state is a PPP interface available to native plugins only, but we'll check whether you have dev permissions before querying the plugin for it, just in case. Most of the flash permissions are already handled in ppapi/proxy/ppb_flash_proxy.cc Also removes some Flash DeviceID messages which were unused. Review URL: https://codereview.chromium.org/11517012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172987 0039d316-1c4b-4281-b951-d872f2087c98
* Use different UMA stat for a nacl manifest which is missing the user's archdschuff@chromium.org2012-12-135-36/+38
| | | | | | | | | | | | This CL changes the json manifest validation such that if the manifest lacks the user's architecture in the program or file keys, we use a different error code enum, so that we can tell the difference between the developer creating a bad manifiest and the developer failing to support the user's architecture. R=jvoung@chromium.org,ncbray@chromium.org BUG=154121 Review URL: https://chromiumcodereview.appspot.com/11474034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172938 0039d316-1c4b-4281-b951-d872f2087c98
* Add idl version of ppb_flash_menu.idlnoelallen@chromium.org2012-12-136-41/+179
| | | | | | | | | | | | | | See CR=11013017 Convert .h to .idl R=yzshen@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/11446066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172932 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 172806raymes@chromium.org2012-12-139-161/+271
| | | | | | | | | | | | | | | | | | | > Refactor 4 PPB_Flash functions to the new PPAPI resource model. > > The functions being refactored are: > -SetInstanceAlwaysOnTop > -DrawGlyphs > -GetProxyForURL > -Navigate > > Each of these functions was manually tested with a Flash movie that uses it. > > Review URL: https://chromiumcodereview.appspot.com/11510008 TBR=raymes@chromium.org Review URL: https://codereview.chromium.org/11576016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172927 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor 4 PPB_Flash functions to the new PPAPI resource model.raymes@chromium.org2012-12-139-271/+161
| | | | | | | | | | | | | | The functions being refactored are: -SetInstanceAlwaysOnTop -DrawGlyphs -GetProxyForURL -Navigate Each of these functions was manually tested with a Flash movie that uses it. Review URL: https://chromiumcodereview.appspot.com/11510008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172806 0039d316-1c4b-4281-b951-d872f2087c98
* Made the registration and deletion of transfer buffers async.apatrick@chromium.org2012-12-135-48/+31
| | | | | | | | | | | | Added an IPC to request multiple transfer buffer IDs up front. Every renderer command buffer proxy gets some IPCs immediately after initialization. Removed request_id arg from CreateTransferBuffer. It wasn't being used. Review URL: https://chromiumcodereview.appspot.com/11308296 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172805 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Move PPB_Console out of dev.ncbray@chromium.org2012-12-1334-136/+216
| | | | | | | | | | | PPB_Console was not added to the SRPC proxy because this proxy is deprecated. BUG= none Review URL: https://chromiumcodereview.appspot.com/11416214 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172762 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Check permissions for VarDeprecated and PPP_Classdmichael@chromium.org2012-12-124-3/+36
| | | | | | | | BUG=159690 Review URL: https://codereview.chromium.org/11504003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172672 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: change PRESUBMIT.py to not complain about TODOs in .cc files.ncbray@chromium.org2012-12-121-1/+1
| | | | | | | | | | | This restriction doesn't make a lot of sense for .cc files, and there are in fact already TODOs in the .cc files and this can choke the CQ. BUG= none Review URL: https://codereview.chromium.org/11555028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172671 0039d316-1c4b-4281-b951-d872f2087c98
* Change PPB_ContentDecryptor_Private::KeyMessage to pass the message as a ↵tomfinegan@chromium.org2012-12-1210-34/+26
| | | | | | | | | | | PP_Var instead of a PP_Resource. BUG=164498 TEST=EME decrypt and decode continues to work. Review URL: https://chromiumcodereview.appspot.com/11442029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172534 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some types at the IPC layer. Sizes should be unsigned.cevans@chromium.org2012-12-127-9/+9
| | | | | | | BUG=164958 Review URL: https://codereview.chromium.org/11474040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172474 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Re-enable the "inbrowser_test_runner" test suitemseaborn@chromium.org2012-12-111-1/+3
| | | | | | | | | | | | | | | This suite runs a number of important tests, including for dynamic code loading and untrusted fault/exception handling. inbrowser_test_runner was accidentally disabled in NaCl revision r9589. BUG=162037 TEST=nacl_integration Review URL: https://codereview.chromium.org/11414250 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172416 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 172261battre@chromium.org2012-12-116-472/+714
| | | | | | | | | | | | | | | | | > PPAPI: Convert FileIO tests to new style & test background threads > > BUG=92909 > > > Review URL: https://chromiumcodereview.appspot.com/11421137 This fails consistently on the Linux debug test bot (see bug 92909 for details). TBR=dmichael@chromium.org BUG=92909 Review URL: https://codereview.chromium.org/11458005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172286 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Convert FileIO tests to new style & test background threadsdmichael@chromium.org2012-12-116-714/+472
| | | | | | | | | BUG=92909 Review URL: https://chromiumcodereview.appspot.com/11421137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172261 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI/NaCl: Make NaClIPCAdapter pass handles for Resource Messagesdmichael@chromium.org2012-12-112-9/+58
| | | | | | | | | | | This fixes Gamepad for NaCl. BUG=163021,159689 TBR=brettw Review URL: https://chromiumcodereview.appspot.com/11411365 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172248 0039d316-1c4b-4281-b951-d872f2087c98
* Autogenerate thunk .cc file for PPB_Flash_DeviceIDteravest@chromium.org2012-12-112-8/+15
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11511010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172240 0039d316-1c4b-4281-b951-d872f2087c98