summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Add ipc_channel_nacl to the untrusted build and fix all compile/link errors.bbudge@chromium.org2012-04-232-1/+8
| | | | | | | | | ppapi_proxy_untrusted.gyp should now build with a single link error for main. BUG=116317 TEST=builds with a single link error for main(). Review URL: https://chromiumcodereview.appspot.com/10167024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133519 0039d316-1c4b-4281-b951-d872f2087c98
* Add audio buffer size notification to NaCl proxy.nfullagar@google.com2012-04-231-6/+30
| | | | | | | | | | BUG=http://code.google.com/p/chromium/issues/detail?id=120837 TEST=variuos nacl audio samples Review URL: http://codereview.chromium.org/10165016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133502 0039d316-1c4b-4281-b951-d872f2087c98
* Restore ppapi_gles example NMF files so that they look morejvoung@google.com2012-04-238-3/+58
| | | | | | | | | | | | | | like a complete example (rather then autogenerate them). This reverts part of r133327. Bail out for PNaCl for now, until we turn on these tests. BUG= none TEST= trybots Review URL: https://chromiumcodereview.appspot.com/10191008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133487 0039d316-1c4b-4281-b951-d872f2087c98
* [Coverity] Fixed resource leak.groby@chromium.org2012-04-231-1/+2
| | | | | | | | | | | | | | | DeepCopy creates a ListValue*, which swap (correctly) doesn't free. CID=103840 R=brettw,raymes BUG= TEST= Review URL: http://codereview.chromium.org/10168015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133478 0039d316-1c4b-4281-b951-d872f2087c98
* Set svn:executable bit on scripts that are executable.maruel@chromium.org2012-04-233-8/+5
| | | | | | | | | | | R=viettrungluu@chromium.org TEST= BUG= Review URL: http://codereview.chromium.org/10162022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133474 0039d316-1c4b-4281-b951-d872f2087c98
* Convert a few more NMF files to be autogenerated and PNaCljvoung@google.com2012-04-219-53/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | compatible, even though they are currently marked broken for PNaCl. Bail out for partly_invalid, since: - that depends on a nexe built from a nacl.scons file in NaCl repo and - the nexe name doesn't follow the autogenerator's pattern - and the nacl repo's pyauto expects the .nmf Can untie those dependencies later... This will allow use to run ./scons bitcode=1 platform=${arch} again, without complaints about missing .nexe dependencies required by the checked-in NMF files, even though we are generating .pexes. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2609 TEST= trybots Review URL: http://codereview.chromium.org/10166018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133327 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up screensaver prevention on Windowsbrettw@chromium.org2012-04-202-1/+3
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10170010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133279 0039d316-1c4b-4281-b951-d872f2087c98
* Actually hook up the Pepper clear site data.brettw@chromium.org2012-04-201-3/+5
| | | | | | | | | | | This fixes the message routing. The message is sent over the "broker" channel in this case which normally connects to the renderer. Switching this over to be the main plugin <-> browser channel is extra work since we'd need a way to plumb through the response. Since we already do this weird routing for the NPAPI plugin, doing the same thing is the simplest here. I moved the code to the broker dispatcher which is the endpoint for the channel that's used. This removes the timeout for sending the clear message. This made it challenging to debug since if you load the plugin in the debugger, the message never gets sent. This could legitimately happen if the computer is swapping and is super slow to load the plugin. It seems if you want to clear your data, we shouldn't "forget" to clear it in certain cases. So I just left this code out. Review URL: https://chromiumcodereview.appspot.com/10155001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133277 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the DeviceID to the browser process.brettw@chromium.org2012-04-202-2/+6
| | | | | | | | | TEST=none BUG=none Review URL: https://chromiumcodereview.appspot.com/10130001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133236 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Remove code that attempts to kill the NaCl loader processmseaborn@chromium.org2012-04-192-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a later change, I will make KillChildProcess() not work on Windows, because the sandboxed renderer process will not get passed the process handle for the NaCl loader proces, so the renderer cannot kill the NaCl loader process directly. So I'm removing KillChildProcess() for consistency between OSes and to avoid confusion. Also, I suspect KillChildProcess() does not work in other sandboxes anyway: * In the Linux SUID sandbox, the renderers run in a different PID namespace, but the NaCl plugin is using a PID from the main PID namespace, which is wrong. * In the Linux seccomp sandbox (debug builds only), kill() is disabled. * I think kill() is disabled in the Mac sandbox too. Furthermore, on Unix, if the NaCl loader process dies and its PID is recycled, we could accidentally kill the wrong process. (Normally the PID cannot be recycled until the zombie process is reaped with waitpid(), but in Chromium the NaCl loader process is a child of the browser, not the renderer. The NaCl process gets reaped automatically and the NaCl plugin's call to waitpid() is useless.) Calling KillChildProcess() is unnecessary because the NaCl loader process is supposed to exit voluntarily when it receives EOF on its connection to the renderer process. Removing this call also removes the risk that we do kill(0, SIGKILL) (if using a dummy PID of 0 later on), which would kill all processes in the progress group and might bring down the browser. This will let me remove KillChildProcess() from the NaCl side. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2719 TEST=nacl_integration etc. Review URL: https://chromiumcodereview.appspot.com/10122002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133016 0039d316-1c4b-4281-b951-d872f2087c98
* Add string include to fix the build.brettw@chromium.org2012-04-191-0/+2
| | | | | | | | | | | TBR=viettrungluu@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10127006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132955 0039d316-1c4b-4281-b951-d872f2087c98
* Remove support for bitmap printing in pepperbrettw@chromium.org2012-04-193-35/+47
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10096001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132954 0039d316-1c4b-4281-b951-d872f2087c98
* Change the rest of old nacl ppapi tests to be compatible with pnacl.jvoung@google.com2012-04-185-5/+22
| | | | | | | | | | | | | | | | This allows us to remove the silly white-list of ported tests in "native_client/buildbot/buildbot_pnacl.sh" when pnacl_generate_pexe=1, and just say "chrome_browser_tests". This was split out of: http://codereview.chromium.org/9834030/ BUG= http://code.google.com/p/nativeclient/issues/detail?id=2609 TEST= chrome_browser_tests Review URL: https://chromiumcodereview.appspot.com/10115044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132886 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Remove all Chromium-side use of the handle_pass librarymseaborn@chromium.org2012-04-184-25/+0
| | | | | | | | | | | | | | | The handle_pass library is no longer needed because it is replaced by Chromium's BrokerDuplicateHandle() function. Removing the Chromium-side uses will let me delete the library on the NaCl side. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2719 TEST=nacl_integration etc. Review URL: https://chromiumcodereview.appspot.com/10083035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132868 0039d316-1c4b-4281-b951-d872f2087c98
* Add #ifdefs to separate NaCl and non-NaCl PPAPI Proxy code.bbudge@chromium.org2012-04-1812-548/+579
| | | | | | | | | | This CL moves non-NaCl interface proxies like Flash, and also temporarily moves unported interfaces such as Graphics3D. BUG=116317 TEST=builds without PPAPI link errors Review URL: https://chromiumcodereview.appspot.com/10116003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132817 0039d316-1c4b-4281-b951-d872f2087c98
* Notify audio host that audio rendering in Pepper plugin is done.raymond.liu@intel.com2012-04-181-1/+29
| | | | | | | | | | BUG=120837 TEST=See bug Review URL: http://codereview.chromium.org/9921006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132746 0039d316-1c4b-4281-b951-d872f2087c98
* Correct missing path files in Chromium GYPrsleevi@chromium.org2012-04-171-1/+0
| | | | | | | | | | BUG=none TEST=MSVS 2010 stops recompiling like mad TBR=brettw,oshima,ivankr Review URL: http://codereview.chromium.org/10108030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132631 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo.brettw@chromium.org2012-04-171-2/+2
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/10105036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132624 0039d316-1c4b-4281-b951-d872f2087c98
* Supply Windows handle-passing function to NaClmseaborn@chromium.org2012-04-173-35/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass BrokerDuplicateHandle() to the NaCl loader process in nacl_listener.cc. Pass BrokerDuplicateHandle() to the NaCl trusted plugin. We need to add this to PPB_NaCl_Private in order to pass it through. Remove the use of the "init_handle_passing" SRPC call. Otherwise the NaCl process will attempt to do an imc_connect() to the renderer, which involves sending a handle to it, which fails. Add a wrapper for AddTargetPeer() to 'content' so that nacl_process_host.cc can use it. Change the renderer's handle-passing policy to allow sending handles other than Sections. The NaCl trusted plugin sends other handle types to the NaCl loader process. This change will allow the sandbox to be tightened up, in the future, so that the NaCl loader process and the renderer process do not have handles to each other. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2719 TEST=nacl_integration etc. Review URL: https://chromiumcodereview.appspot.com/10039001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132496 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket Pepper API: synchronous completion support.toyoshim@chromium.org2012-04-169-27/+233
| | | | | | | | | | | | | Allow optional remote callback, then perform synchronous completion if receiving data is enough small for SRPC buffer. Otherwise invoke another callback for asynchronous completion from main thread. BUG=87310 TEST=browser_tests --gtest_filter=PPAPINaclTest.WebSocket_StressedSendReceive Review URL: https://chromiumcodereview.appspot.com/9802027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132413 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl PPAPI Proxy: Make browser Lookup* functions return 0 when the key is ↵dmichael@chromium.org2012-04-141-4/+18
| | | | | | | | | | | | not found. BUG=123184 TEST= Review URL: http://codereview.chromium.org/10082013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132327 0039d316-1c4b-4281-b951-d872f2087c98
* Add a way to implement GetInterface in the broker.brettw@chromium.org2012-04-1311-18/+82
| | | | | | | | | | | This also adds some cleanup in the Pepper API to provide typedefs for the three PPP_* functions. I removed some ad-hoc typedefes we had floating around and replaced them with these more "official" ones. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10069035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132285 0039d316-1c4b-4281-b951-d872f2087c98
* Add a Flash API to get the device ID.brettw@chromium.org2012-04-137-37/+169
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9960083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132269 0039d316-1c4b-4281-b951-d872f2087c98
* This adds a hang monitor for Pepper plugins. It monitors sync messages on ↵brettw@chromium.org2012-04-136-10/+57
| | | | | | | | | | | | 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 more NULL checks in proxy.nfullagar@google.com2012-04-132-14/+21
| | | | | | | | | BUG=http://code.google.com/p/chromium/issues/detail?id=123181 TEST=pyauto & browser tests Review URL: http://codereview.chromium.org/10069041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132243 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Compile out thread checks when pepper threading is turned on.dmichael@chromium.org2012-04-131-0/+6
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/10069032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132197 0039d316-1c4b-4281-b951-d872f2087c98
* Fix IsBaseOf in output_traits.h.yzshen@chromium.org2012-04-122-5/+8
| | | | | | | | | | | | Previously, it may be used with forward declarations unintentionally and does wrong things silently. BUG=None TEST=None Review URL: http://codereview.chromium.org/10068004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132088 0039d316-1c4b-4281-b951-d872f2087c98
* Add an interface for Flash to clear its data.brettw@chromium.org2012-04-123-1/+126
| | | | | | | | | | 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
* Updated flash_topmost example to better demonstrate corner cases of the feature.raymes@chromium.org2012-04-121-3/+32
| | | | | | | | | | | | | -Makes it easier to test the feature when the page is scrolled. -Places an invisible div above everything to test that it is not involved in the hit test. TEST=Ran the example and checked that it gives correct results. BUG=27086 NOTRY=true Review URL: http://codereview.chromium.org/10068018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132046 0039d316-1c4b-4281-b951-d872f2087c98
* Make the text input not require round-trips when the text is updated.brettw@chromium.org2012-04-125-14/+41
| | | | | | | | | | | In the proxied version, this requests the text in-process avoiding the round trip. This also makes the requesting not reenter the plugin for in-process plugins. TEST= BUG=123020 Review URL: https://chromiumcodereview.appspot.com/10053017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132027 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed some PP_X509Certificate_Private_Field enum values.raymes@chromium.org2012-04-124-9/+27
| | | | | | | | | | | | | | | | | | -Added PP_X509CERTIFICATE_PRIVATE_SUBJECT_DISTINGUISHED_NAME/PP_X509CERTIFICATE_PRIVATE_ISSUER_DISTINGUISHED_NAME which I had missed originally. -Renamed: PP_X509CERTIFICATE_PRIVATE_ALGORITHM_OID -> PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_OID PP_X509CERTIFICATE_PRIVATE_ALGORITHM_PARAMATERS_RAW -> PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_PARAMATERS_RAW To be in-line with the flash names. This also fixes a bug in the tcp socket shared implementation which allows a resource to be released in a callback, before it is finished cleaning up. BUG=114626 TEST=out/Debug/browser_tests --gtest_filter=*PPAPITest.*X509Certificate* Review URL: http://codereview.chromium.org/10006048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132013 0039d316-1c4b-4281-b951-d872f2087c98
* Only enable ppapi_browser/ppb_audio test for mac bots - other bots don'tnfullagar@google.com2012-04-121-1/+6
| | | | | | | | | | | reliably have audio subsystems. test=this is the test bug=http://code.google.com/p/nativeclient/issues/detail?id=2668 Review URL: http://codereview.chromium.org/10052032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131920 0039d316-1c4b-4281-b951-d872f2087c98
* This adds the following to functions to the ppapi TCPSocket interface:raymes@chromium.org2012-04-1224-99/+521
| | | | | | | | | | | | | 1) GetServer certificate, which returns the server X509Certificate if an SSL connection has been established. 2) AddChainBuilding certificate. This is currently unimplemented in Chrome but the interface and plumbing has been added so it can easily be hooked up. This should add a trusted/untrusted chain building certificate to be used by the client for a particular connection when performing the SSL handshake. BUG=114626 TEST=out/Release/browser_tests --gtest_filter=*PPAPITest.*TCP*Trusted* Review URL: http://codereview.chromium.org/9699100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131918 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate use of PPB_URLUtil_Dev in NaCl build of Proxy.bbudge@chromium.org2012-04-125-374/+68
| | | | | | | | BUG=116317 TEST=compiles and links without errors Review URL: https://chromiumcodereview.appspot.com/9561001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131877 0039d316-1c4b-4281-b951-d872f2087c98
* Fix line endings in ppapi. No code change.brettw@chromium.org2012-04-119-550/+550
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10052028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131869 0039d316-1c4b-4281-b951-d872f2087c98
* Fix line endings. No code change.brettw@chromium.org2012-04-113-6/+6
| | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10055004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131859 0039d316-1c4b-4281-b951-d872f2087c98
* Add a config file listing NaCl's scons files in the Chrome repo.ncbray@google.com2012-04-102-61/+69
| | | | | | | | | | | | | | This is the first part of a multistep change to make it easier to maintain the Chrome-side portion of NaCl's build. The config file is currently unused. Also removed a duplicated file: ppapi/native_client/tests/nacl.scons BUG= http://code.google.com/p/chromium/issues/detail?id=122714 TEST= none Review URL: https://chromiumcodereview.appspot.com/10024046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131624 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Clean up documentation for InstanceHandle and PASS_REFjond@google.com2012-04-102-27/+47
| | | | | | Review URL: http://codereview.chromium.org/9815025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131594 0039d316-1c4b-4281-b951-d872f2087c98
* Add a Pepper IME API 0.2 header to all_c_includes.h.kinaba@chromium.org2012-04-101-0/+1
| | | | | | | | | | BUG=chromium-os:22055 TEST=compile ppapi_tests Review URL: http://codereview.chromium.org/10026016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131519 0039d316-1c4b-4281-b951-d872f2087c98
* Don't set_unblock IPC messages that are repliesjhorwich@chromium.org2012-04-091-1/+5
| | | | | | | | | BUG=122443 TEST=Run video chat and watch for hung renderer Review URL: https://chromiumcodereview.appspot.com/9960053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131490 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the file chooser proxy 0.6brettw@chromium.org2012-04-096-31/+8
| | | | | | | | | | | | This also removes the "old" style registration for the 0.5 version. BUG=122440 TEST= Review URL: http://codereview.chromium.org/10008064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131384 0039d316-1c4b-4281-b951-d872f2087c98
* Add new MouseCursor interface for setting the mouse cursor.brettw@chromium.org2012-04-0852-892/+971
| | | | | | | | | | | Remove most of the old cursor control interface. This keeps backwards compat for CursorControl.SetCursor (which just redirects to the new function) to kepe existing users running. None of the other functions on cursor control were implemented, so I removed all the proxying and stuff for them. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9814015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131314 0039d316-1c4b-4281-b951-d872f2087c98
* Add the plugin to the SDKnoelallen@google.com2012-04-071-0/+5
| | | | | | | | | | Adds the standalone version of the PPAPI PlugIn to the SDK for use in debugging. BUG=122099 Review URL: https://chromiumcodereview.appspot.com/10023005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131291 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Refactor ppapi test callbacks to ease testing blocking callbacks.dmichael@chromium.org2012-04-0714-298/+423
| | | | | | | | | | | | | | | There are really 3 changes to test_utils: - Change "force_async_" to "callback_type_" so that we can represent REQUIRED, OPTIONAL, _and_ BLOCKING. (I left backwards compatibility with force_async_ and will follow up to change them all after this CL). - Add a new form of WaitForResult and a new CHECK_CALLBACK_BEHAVIOR macro. This simplifies checking that the callback ran as expected (i.e., asynchronous or not). test_url_loader.cc in this CL is a good example of the new form. (My intent is to remove the existing WaitForResult in the aforementioned follow-up CL). - Add TestCompletionCallback::GetCallback. This is a minor thing, but it means we can get rid of a bunch of ugly "static_cast<pp::CompletionCallback>" in the tests (see test_websocket.cc for an example of that). BUG=92909 TEST= Review URL: http://codereview.chromium.org/9937001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131215 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented the function which converts a Chrome X509Certificate into a ↵raymes@chromium.org2012-04-053-17/+128
| | | | | | | | | | | | | | | pepper X509 certificate. This also removes the un-implemented fields for now. It probably makes sense just to add them when we need them. BUG=114626 TEST=Ran X509 Certificate ppapi test. NOTRY=true Review URL: http://codereview.chromium.org/9836024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131018 0039d316-1c4b-4281-b951-d872f2087c98
* Instrument NaCl's plugin to generate a crash dump to help diagnose ↵ncbray@google.com2012-04-052-1/+20
| | | | | | | | | | | in-the-field failiures. BUG= http://code.google.com/p/chromium/issues/detail?id=122057 TEST= none Review URL: https://chromiumcodereview.appspot.com/9960029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130979 0039d316-1c4b-4281-b951-d872f2087c98
* Update PPB_AudioInput_Shared to work with the new format of the shared ↵yzshen@chromium.org2012-04-053-4/+19
| | | | | | | | | | | | memory buffer. BUG=None TEST=ppapi/examples/audio_input doesn't crash in debug build. Review URL: http://codereview.chromium.org/9963128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130965 0039d316-1c4b-4281-b951-d872f2087c98
* Change the cpp wrappers of audio input/video capture to use ↵yzshen@chromium.org2012-04-0512-263/+220
| | | | | | | | | | | | | | | | CompletionCallbackWithOutput. And also fix a few bugs in the PP_ArrayOutput and CallbackWithOutput code. - Make sure POD members of Dispatcher\.* are properly initialized. - Avoid leaking var/resource references in DispatcherWithOutput\.*::operator(). BUG=None TEST=None Review URL: http://codereview.chromium.org/9965080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130849 0039d316-1c4b-4281-b951-d872f2087c98
* Expose some ppapi structs/functions to other componentsfsamuel@chromium.org2012-04-051-13/+17
| | | | | | | | | BUG=117896 TEST=manually Review URL: http://codereview.chromium.org/9416049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130838 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure that scoped_ptr<> cannot be used with ref-counted objects.sergeyu@chromium.org2012-04-051-2/+2
| | | | | | | | | | | | | It's easy to type scoped_ptr<> instead of scoped_refptr<>. Such bugs are hard to debug sometimes. This change adds compile-time check to make sure that scoped_ptr<> is not used for ref-counted objects. Also fixed one (benign) instance of scoped_ptr<> being used for a ref-counted object. Review URL: http://codereview.chromium.org/9958150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130835 0039d316-1c4b-4281-b951-d872f2087c98