summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Pepper WebSocket API: Implement new design Chrome IPC.toyoshim@chromium.org2012-10-0918-21/+963
| | | | | | | | | | | | This change implements new Chrome IPC for PPB_WebSocket. After this change, all mode including out of process will work with new design. It doesn't depend on old SRPC design any more. BUG=87310,116317 Review URL: https://chromiumcodereview.appspot.com/10944005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160783 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate last references to disable_dynamic_plugin_loading in Chrome repo.ncbray@chromium.org2012-10-093-17/+3
| | | | | | | | | BUG= http://code.google.com/p/chromium/issues/detail?id=154400 Review URL: https://chromiumcodereview.appspot.com/11028082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160770 0039d316-1c4b-4281-b951-d872f2087c98
* Use local strcmp in pnacl IRT shim.dschuff@chromium.org2012-10-091-1/+7
| | | | | | | | | | | | | This code cannot depend on libc. Gcc apparently inlines strcmp, but LLVM/clang does not, so this is needed to compile the shim with clang R=jvoung@chromium.org BUG= http://code.google.com/p/nativeclient/issues/detail?id=3063 Review URL: https://chromiumcodereview.appspot.com/11087015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160761 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up NaCl's SCons build.ncbray@chromium.org2012-10-0913-748/+15
| | | | | | | | | | | | | The change involved deleting several dead *.scons files, eliminating a dead dependancy on a script that downloaded Chrome binaries, and unwinding a nonstandard use of Sconscript to include a file. BUG= http://code.google.com/p/chromium/issues/detail?id=154400 Review URL: https://chromiumcodereview.appspot.com/11079003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160748 0039d316-1c4b-4281-b951-d872f2087c98
* Convert PPB_Instance_Private interface to IDLraymes@chromium.org2012-10-083-6/+111
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/11065044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160742 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Pepper threading, but only for the untrusted side of the NaCl IPC proxy.bbudge@chromium.org2012-10-083-0/+9
| | | | | | | | | BUG=116317 TEST=manual for now Review URL: https://chromiumcodereview.appspot.com/11013053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160723 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused PPB_Flash_UDPSocket interfaceraymes@chromium.org2012-10-084-203/+1
| | | | | | | | | | NOTRY=true BUG=none Review URL: https://chromiumcodereview.appspot.com/11079005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160683 0039d316-1c4b-4281-b951-d872f2087c98
* Add some 'Private' and 'Dev' interfaces to the NaCl IPC PPAPI Proxy.bbudge@chromium.org2012-10-083-33/+37
| | | | | | | | BUG=116317 TEST=SSH extension can get interfaces. Review URL: https://codereview.chromium.org/11078006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160673 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused PPP_CursorControl_Devraymes@chromium.org2012-10-083-21/+0
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/11032053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160665 0039d316-1c4b-4281-b951-d872f2087c98
* Copy PP_Vars in ppapi test PluginVectorReceiveInput so we can test their ↵raymes@chromium.org2012-10-061-5/+11
| | | | | | | | | | | | | | | | refcount. Previously when |SerializedVarVectorReceiveInput| objects went out of scope, their associated arrays were destroyed which led to use-after-frees when testing refcounts. This corrects the problem by making a copy of the array. BUG=152298 TEST=valgrinded the test Review URL: https://chromiumcodereview.appspot.com/11040051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160545 0039d316-1c4b-4281-b951-d872f2087c98
* Convert UMA interface to IDL.brettw@chromium.org2012-10-055-11/+119
| | | | | | | | | | | This renames the interface strings to be consistent. Since this is only used by the PDF plugin which is built alongside Chrome, this should be OK. BUG= Review URL: https://codereview.chromium.org/11048006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160506 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PP_FileInfo_Dev which appears to be unused.raymes@chromium.org2012-10-052-16/+1
| | | | | | | | | | | All of the structs inside the file are type-def'ed to the non-dev equivalents and there is no usage in the codebase. BUG= Review URL: https://codereview.chromium.org/11065038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160504 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 160454 - Port three nacl_integration tests to browser_tests.sky@chromium.org2012-10-0517-0/+1374
| | | | | | | | | | | | | | | | * ppapi_geturl * ppapi_ppb_dev * ppapi_ppp_instance BUG= http://code.google.com/p/nativeclient/issues/detail?id=2959 Review URL: https://chromiumcodereview.appspot.com/11035048 TBR=ncbray@chromium.org Review URL: https://codereview.chromium.org/11026079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160484 0039d316-1c4b-4281-b951-d872f2087c98
* Port three nacl_integration tests to browser_tests.ncbray@chromium.org2012-10-0517-1374/+0
| | | | | | | | | | | | | * ppapi_geturl * ppapi_ppb_dev * ppapi_ppp_instance BUG= http://code.google.com/p/nativeclient/issues/detail?id=2959 Review URL: https://chromiumcodereview.appspot.com/11035048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160454 0039d316-1c4b-4281-b951-d872f2087c98
* Allow pepper plugins to request the integrated GPU.jbauman@chromium.org2012-10-052-4/+32
| | | | | | | | | | | This will allow Flash (or others) to reduce power consumption. BUG=153643 Review URL: https://chromiumcodereview.appspot.com/11044026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160318 0039d316-1c4b-4281-b951-d872f2087c98
* [Coverity] Fix uninitialized scalar field.kmadhusu@chromium.org2012-10-041-2/+2
| | | | | | | | | | | | | Initialized |next_plugin_dispatcher_id_| in PpapiDispatcher constructor. CID=105977 BUG=none TEST=none TBR=piman@chromium.org Review URL: https://chromiumcodereview.appspot.com/11051025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160204 0039d316-1c4b-4281-b951-d872f2087c98
* Convert InstancePrivate to IDL.brettw@chromium.org2012-10-044-12/+78
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/11013014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160190 0039d316-1c4b-4281-b951-d872f2087c98
* Update PPP side of Pepper CDM API to support video decoding.tomfinegan@chromium.org2012-10-0410-119/+212
| | | | | | | | | | | | | | | | | | | This adds the PPP half of the video decoding support changes. Adds the following pepper types: - PP_VideoCodec - PP_DecryptedFrameFormat - PP_EncryptedVideoFrameInfo Replaces PPP_ContentDecryptor_Private::DecryptAndDecode with DecryptAndDecodeFrame. BUG=141780 TEST= Review URL: https://chromiumcodereview.appspot.com/11023004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160078 0039d316-1c4b-4281-b951-d872f2087c98
* Converted PluginResource reply message handling to use base::Callbackraymes@chromium.org2012-10-0412-120/+239
| | | | | | | | | | | | | | | | | | | | Previously each PluginResource had to write a reply handler (|OnReplyReceived|) for any replies to resource messages. This approach had several problems including the fact that the PluginResource had to track the state of any outstanding calls. This change allows you to register a base::Callback when calling CallToBrowser/CallToRenderer. The callback will be run when a reply message is received with a sequence number matching the call. The parameters of the reply will be passed to the callback. An example of usage: CallBrowser<PpapiPluginMsg_MyResourceType_MyReplyMessage>( PpapiHostMsg_MyResourceType_MyRequestMessage(), base::Bind(&MyPluginResource::ReplyHandler, this)); If a reply message to this call is received whose type does not match the expected reply message (for example, in the case of an error), the callback will still be invoked but with the default values of the message parameters. BUG= Review URL: https://chromiumcodereview.appspot.com/11022005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160015 0039d316-1c4b-4281-b951-d872f2087c98
* Update PPB side of Pepper CDM API to support video decoding.tomfinegan@chromium.org2012-10-0313-68/+211
| | | | | | | | | | | This adds the PPB half of the video decoding support changes. BUG=141780 TEST= Review URL: https://chromiumcodereview.appspot.com/10989069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159999 0039d316-1c4b-4281-b951-d872f2087c98
* PNaCl: Use the PPAPI shims library on all architecturesmseaborn@chromium.org2012-10-031-7/+3
| | | | | | | | | | | | | | In NaCl-side changes, the sandboxed translator has been changed to link the shims library on all architectures. (The shims library is defined on all architectures, if only as a dummy in some cases.) We need to change the translator extension to match. BUG=http://code.google.com/p/nativeclient/issues/detail?id=3018 TEST=PNaCl tests on *_naclmore trybots Review URL: https://codereview.chromium.org/11016031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159938 0039d316-1c4b-4281-b951-d872f2087c98
* Keep a module reference during all Pepper message handling.brettw@chromium.org2012-10-032-5/+7
| | | | | | | | | | | This prevents crashes in the case that a message causes the plugin to be deleted. BUG=153509 Review URL: https://codereview.chromium.org/11046010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159925 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land https://codereview.chromium.org/11034020/ -- Make ppapi_unittests ↵glider@chromium.org2012-10-031-0/+11
| | | | | | | | | depend on liballocator if linux_use_tcmalloc==1 TBR=viettrungluu Review URL: https://codereview.chromium.org/11036021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159871 0039d316-1c4b-4281-b951-d872f2087c98
* Added sync calls to resources.raymes@chromium.org2012-10-037-21/+147
| | | | | | | | | | | | | | | | | | | The resource (on the plugin side) provides an outgoing and a reply IPC message and the reply message will be set up synchronously. The nice thing about this change is that when writing new ResourceHosts, there is no difference between handling a sync message and a non-sync message. So, for example, you could have a single implementation of some function on the host side and the plugin could choose to call that implementation both synchronously and asynchronously. For example, for the function GetDefaultPrintSettings(), the plugin could call both: CallBrowser(PpapiHostMsg_Printing_GetDefaultPrintSettings()); AND CallBrowserSync(PpapiHostMsg_Printing_GetDefaultPrintSettings(), &reply); with only a single implementation of GetDefaultPrintSettings on the host side. This change also supports both synchronously and asynchronous handling sync messages on the host side (through IPC_MESSAGE_HANDLER_DELAY_REPLY). BUG=none Review URL: https://chromiumcodereview.appspot.com/10989042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159820 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb RequestorProcessID field through various layers to enable the Networkdarin@chromium.org2012-10-032-3/+12
| | | | | | | | | | column of Task Manager to show network usage by Pepper plugins. R=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/11026007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159805 0039d316-1c4b-4281-b951-d872f2087c98
* Fix IPC-based NaCl PPAPI proxy to send upload / download progress messages.bbudge@chromium.org2012-10-023-38/+34
| | | | | | | | | Some NaCl apps require this, and it's not really part of the trusted interface. BUG=116317 TEST=Mini Ninjas, From Dust work. Review URL: https://codereview.chromium.org/11045002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159778 0039d316-1c4b-4281-b951-d872f2087c98
* Remove VideoLayer and LayerCompositor APIs.brettw@chromium.org2012-10-0218-647/+4
| | | | | | | | | | These were never implemented. BUG= Review URL: https://codereview.chromium.org/11036012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159775 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up PpapiPermissions in more places.brettw@chromium.org2012-10-0221-63/+266
| | | | | | | | 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
* Revert 159661 - Make ppapi_unittests depend on liballocator if ↵dmikurube@chromium.org2012-10-021-7/+0
| | | | | | | | | | | | | | linux_use_tcmalloc==1 This is required to run these tests under the heap checker. TBR=viettrungluu Review URL: https://codereview.chromium.org/11034020 TBR=glider@chromium.org Review URL: https://codereview.chromium.org/11039017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159662 0039d316-1c4b-4281-b951-d872f2087c98
* Make ppapi_unittests depend on liballocator if linux_use_tcmalloc==1glider@chromium.org2012-10-021-0/+7
| | | | | | | | | This is required to run these tests under the heap checker. TBR=viettrungluu Review URL: https://codereview.chromium.org/11034020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159661 0039d316-1c4b-4281-b951-d872f2087c98
* Make ppapi idl generator work on windows.bradnelson@google.com2012-10-021-0/+1
| | | | | | | | | | | | | | | The pnacl idl generator previously was only run on linux. As it now is run everywhere, making sure it emits consistent slashes on windows. R=dschuff@chromium.org,yzshen@chromium.org BUG=153405 TEST=No diff on windows Review URL: https://chromiumcodereview.appspot.com/11036014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159622 0039d316-1c4b-4281-b951-d872f2087c98
* Add IDL file for PPP_VideoCapture_Dev.yzshen@chromium.org2012-10-026-12/+104
| | | | | | | | | | BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/11026010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159613 0039d316-1c4b-4281-b951-d872f2087c98
* Delete some unused code found by -Wunused-functionthakis@chromium.org2012-10-014-38/+0
| | | | | | | | BUG=none,100309 Review URL: https://chromiumcodereview.appspot.com/10977073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159592 0039d316-1c4b-4281-b951-d872f2087c98
* Implement browser side of PPB_Printing resource.raymes@chromium.org2012-09-279-17/+142
| | | | | | | | | | | | This adds the browser side implementation of PPB_Printing as well as a unittest for PepperPrintingHost and a PPAPI browser_test for PPB_Printing::GetDefaultPrintSettings. BUG=138333 TEST=content_unittests/browser_tests Review URL: https://chromiumcodereview.appspot.com/10826072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159150 0039d316-1c4b-4281-b951-d872f2087c98
* Fix cpu draining callback in Graphics2D::Flush.victorhsieh@chromium.org2012-09-272-1/+107
| | | | | | | | | | | | | | Graphics2D::Flush should delay callback when the update is invisible, while the plugin is visible on current tab. Contributed by victorhsieh@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/10933107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159112 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 157040 - Add some logging to debug PPAPI permissions.brettw@chromium.org2012-09-271-4/+0
| | | | | | | | | | | | | | | The permissions bug was fixed in r15908k so this logging isn't necessary anymore. Somehow these aren't getting set properly for the bundled Flash case. The code path we take to get them is pretty long, so this patch adds some temporary logging to try to see wher they're lost. BUG=147507 Review URL: https://codereview.chromium.org/10917160 TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/10981057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159091 0039d316-1c4b-4281-b951-d872f2087c98
* Render/pepper hang debugging: generate dumps for the browser and renderer ↵yzshen@chromium.org2012-09-265-107/+0
| | | | | | | | | | | | | | | | processes if users kill a hung pepper plugin. This CL collects information in order to diagnose inter-process pepper deadlocks. - We don't crash those renderers or the browser. - We only do this on the Windows Canary channel for 20% of pepper plugin hangs, if there are not too many renderers (<4). BUG=147593 TEST=None Review URL: https://chromiumcodereview.appspot.com/10983028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158717 0039d316-1c4b-4281-b951-d872f2087c98
* Port ppapi_ppb_core nacl_integration test to browser_tests.ncbray@chromium.org2012-09-264-355/+0
| | | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=2959 Review URL: https://chromiumcodereview.appspot.com/10958026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158714 0039d316-1c4b-4281-b951-d872f2087c98
* Disable PPAPI unittest PluginVectorReceiveInputraymes@chromium.org2012-09-251-1/+1
| | | | | | | | | | | | | | Currently breaking on ASAN builders: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_asan&number=2637 BUG=none TEST=none TBR=jam@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10979025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158672 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Removed space and extra line from audio_config.hjond@chromium.org2012-09-251-2/+1
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10735032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158575 0039d316-1c4b-4281-b951-d872f2087c98
* Updated pp_touch_point.h docs in preparation for fixing the C++ docs (which ↵jond@chromium.org2012-09-252-39/+41
| | | | | | | | are a bit lean). Review URL: https://codereview.chromium.org/10956037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158574 0039d316-1c4b-4281-b951-d872f2087c98
* [OSX] Forward Flapper GetLocalTimeZoneOffset() to browser on OSX.shess@chromium.org2012-09-251-1/+3
| | | | | | | | | | | | The local version is broken by the sandbox. AFAICT the sandbox warmup should allow this to work, but does not. BUG=149006 Review URL: https://chromiumcodereview.appspot.com/10991007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158514 0039d316-1c4b-4281-b951-d872f2087c98
* Use either 0.1 or 1.0 versions of PPBFlashFullscreen.jbauman@chromium.org2012-09-251-11/+27
| | | | | | | | | | | | This allows us to eventually remove the 0.1 version. BUG=147746 Review URL: https://chromiumcodereview.appspot.com/10985007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158511 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] build_sdk uses gyp to build, not scons. *binji@chromium.org2012-09-241-0/+5
| | | | | | | | | | | * For x86-32, x86-64. Not pnacl. BUG=none TBR=viettrungluu@chromium.org Review URL: https://chromiumcodereview.appspot.com/10915213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158417 0039d316-1c4b-4281-b951-d872f2087c98
* nacl: Fix a bunch of compiler warningsthakis@chromium.org2012-09-241-1/+1
| | | | | | | | | BUG=148648 TBR=dmichael Review URL: https://codereview.chromium.org/10959063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158232 0039d316-1c4b-4281-b951-d872f2087c98
* PNaCl: Build a PPAPI shims library on all architecturesmseaborn@chromium.org2012-09-217-12/+43
| | | | | | | | | | | | | | | | | | | | Before, the shims library was only built on x86-64. We change it to build on x86-32 and ARM too, where we define _pnacl_wrapper_start() to be a trivial wrapper which immediately calls the user code's _start() function. This will mean we won't need an conditional for x86-64 in the translators. Since Gyp doesn't allow files to be excluded per architecture, I've put #ifdefs into shim_ppapi.c and pnacl_shim.c. BUG=http://code.google.com/p/nativeclient/issues/detail?id=3018 TEST=I checked that libpnacl_irt_shim.a builds OK in Scons Review URL: https://codereview.chromium.org/10950042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158121 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI/NaCl: Sanitize CallOnMainThread delay parameterdmichael@chromium.org2012-09-211-0/+6
| | | | | | | | | | BUG=116317 TEST=Apps that failed with this don't crash Review URL: https://chromiumcodereview.appspot.com/10961045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158036 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI/NaCl: Add ncbray and bradnelson to OWNERS; remove polina & sangadmichael@chromium.org2012-09-212-4/+2
| | | | | | | | | | BUG=none TBR=ncbray@chromium.org Review URL: https://chromiumcodereview.appspot.com/10960036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158028 0039d316-1c4b-4281-b951-d872f2087c98
* Changed "Pepper Audio API" to "Audio chapter in the Developer's Guide..."jond@chromium.org2012-09-214-12/+14
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10749006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158001 0039d316-1c4b-4281-b951-d872f2087c98
* Changes to allow testing interface for new NaCl Proxynfullagar@google.com2012-09-204-2/+14
| | | | | | | | | BUG=none TEST=ppapi/tests Review URL: https://chromiumcodereview.appspot.com/10918083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157871 0039d316-1c4b-4281-b951-d872f2087c98