summaryrefslogtreecommitdiffstats
path: root/ppapi
Commit message (Collapse)AuthorAgeFilesLines
* Base: Adjust dependencies to build with base.dllrvargas@google.com2011-04-281-0/+1
| | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6883205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83269 0039d316-1c4b-4281-b951-d872f2087c98
* Add version-specific defines for each C interface.brettw@chromium.org2011-04-2740-40/+86
| | | | | | | | | | | This explicitly does not change any of the version numbers, and just makes the name of the define string match the current version number. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6893022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83176 0039d316-1c4b-4281-b951-d872f2087c98
* Trailing commas in PPB_PDF enums cause compile errors in Native Client ↵bbudge@google.com2011-04-271-2/+2
| | | | | | | | | | toolchain. BUG=none TEST=none Review URL: http://codereview.chromium.org/6905038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83174 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Adjust dependencies to build with base.dllrvargas@google.com2011-04-261-1/+4
| | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6894040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83082 0039d316-1c4b-4281-b951-d872f2087c98
* IDL Cleanup - add logger, and nodenoelallen@google.com2011-04-264-134/+248
| | | | | | | | | | | Cleanup parser by splitting out logging function and an AST node object. Cleanup use of 'lineno' by starting the lexer on line 1 instead of line 0. BUG= 77551 TEST= python idl_parser.py --test test_parser/*.idl Review URL: http://codereview.chromium.org/6905006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83049 0039d316-1c4b-4281-b951-d872f2087c98
* Revert Pepper Key event "USB code" CL.wez@chromium.org2011-04-263-36/+4
| | | | | | | | | | | | | | Revert "Expose scancodes to PP_InputEvent_Key events that are independent of the input language/layout in effect, i.e. that represent the physical key pressed, independent of its meaning in the current context." This reverts commit 35b9f7f01686f51142d8d5b16a88d04575113029. BUG= TEST= Review URL: http://codereview.chromium.org/6902020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83034 0039d316-1c4b-4281-b951-d872f2087c98
* Fix uninitialized variable.piman@google.com2011-04-261-1/+2
| | | | | | | | | BUG=chromium-os:14517 TEST=myspace.com with pepper flash. Click on login. Observe no plugin crash. Review URL: http://codereview.chromium.org/6904012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82954 0039d316-1c4b-4281-b951-d872f2087c98
* Delete a few unused functions.thakis@chromium.org2011-04-252-14/+0
| | | | | | | | | BUG=none TEST=Compiles. Review URL: http://codereview.chromium.org/6880164 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82884 0039d316-1c4b-4281-b951-d872f2087c98
* Delay release of object Varspiman@google.com2011-04-222-6/+37
| | | | | | | | | BUG=chromium-os:14397 TEST=grooveshark Review URL: http://codereview.chromium.org/6900009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82667 0039d316-1c4b-4281-b951-d872f2087c98
* Actually hook up the Pepper time message.brettw@chromium.org2011-04-221-0/+2
| | | | | | | TEST=manual Review URL: http://codereview.chromium.org/6898006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82650 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy time zone requests to the browser. This is because the current codebrettw@chromium.org2011-04-214-17/+31
| | | | | | | | | | can't run in the sandbox on Linux. TEST=manual BUG=80176 Review URL: http://codereview.chromium.org/6891001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82575 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Enable custom content-transfer-encoding header to be set in URL ↵viettrungluu@chromium.org2011-04-212-23/+45
| | | | | | | | | | | | | requests. Such URL requests can be made by a trusted loader. BUG=none TEST=manual Review URL: http://codereview.chromium.org/6882125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82541 0039d316-1c4b-4281-b951-d872f2087c98
* Properly serialize FileRef_CreateInfo vectors. This has the same serializationbrettw@chromium.org2011-04-212-35/+89
| | | | | | | | | | problem as vectors of SerializedVars. TEST=manual BUG=none Review URL: http://codereview.chromium.org/6879101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82507 0039d316-1c4b-4281-b951-d872f2087c98
* Convert PP_rect to use new IPC generation.tsepez@chromium.org2011-04-203-84/+18
| | | | | | Review URL: http://codereview.chromium.org/6882088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82350 0039d316-1c4b-4281-b951-d872f2087c98
* IDL AST cleanupnoelallen@google.com2011-04-201-54/+106
| | | | | | | | | | | | Remove TestNode and replace with a IDLNode and IDLAttribute. This change more directly maps the parse phase into a tree of dictionaries to make processing the AST easier. TEST= python idl_parse.py --test test_parser/*.idl BUG= 77551 Review URL: http://codereview.chromium.org/6878062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82328 0039d316-1c4b-4281-b951-d872f2087c98
* Wrap the p2p transport API in a compile time flag.satish@chromium.org2011-04-202-6/+20
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6882021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82295 0039d316-1c4b-4281-b951-d872f2087c98
* Add an initial crypto interface to fill a given buffer with random data. Thisbrettw@chromium.org2011-04-209-0/+164
| | | | | | | | | | has the same implementation as the WebKit one on ChromeOS. TEST=none BUG=none Review URL: http://codereview.chromium.org/6880053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82291 0039d316-1c4b-4281-b951-d872f2087c98
* Make AddRefObject a sync message to avoid a race condition between (1)brettw@chromium.org2011-04-196-4/+123
| | | | | | | | | | | | returning to the browser from a sync function that passes a var, and (2) the AddRef if the plugin wants to take a reference to it while handling the sync function. TEST=none BUG=79813 Review URL: http://codereview.chromium.org/6882027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82187 0039d316-1c4b-4281-b951-d872f2087c98
* Add a function to the Flash interface to get the current time zone offset.brettw@chromium.org2011-04-192-1/+23
| | | | | | | | TEST=manual BUG=none Review URL: http://codereview.chromium.org/6881059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82184 0039d316-1c4b-4281-b951-d872f2087c98
* Added/modified documentation for Doxygenjond@google.com2011-04-193-129/+327
| | | | | | Review URL: http://codereview.chromium.org/6532065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82116 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Instance_Trusted to Instance_Private, wire it up in Chrome.dmichael@chromium.org2011-04-1910-28/+167
| | | | | | | | | | | Add C++ InstancePrivate. BUG=None TEST=PPAPI tests Review URL: http://codereview.chromium.org/6871040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82104 0039d316-1c4b-4281-b951-d872f2087c98
* Fix two bugs in proxying of Broker Connect callback and shutdown Broker when ↵ddorwin@chromium.org2011-04-186-7/+45
| | | | | | | | | | | renderer exits. BUG=none TEST=none Review URL: http://codereview.chromium.org/6882020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82017 0039d316-1c4b-4281-b951-d872f2087c98
* Keep the module in scope when executing scripts. This prevents a crash when thebrettw@chromium.org2011-04-187-0/+149
| | | | | | | | | | | | | | | | | | | | script deletes the plugin object synchronously. This in turn deletes the dispatcher which will make the code returning the out param and exception to the plugin crash. To prevent the crash, this patch adds a way for the proxy to manipulate the refcount of the plugin object so that it's still alive when as long as the scripting message is being processed. A manual test is included. This is not automatically run now. I tried to fit it into the current test infrastructure and found it very challenging, We need to revisit this to allow custom tests to more easily be written. TEST=manual with included plugin and html BUG=none Review URL: http://codereview.chromium.org/6881012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81993 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented broker dispatcher, pipe creation, and handle distribution.ddorwin@chromium.org2011-04-184-15/+72
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6865045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81951 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented PPB_Broker_Proxy.ddorwin@chromium.org2011-04-178-2/+371
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81888 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored ppapi Dispatcher to share common code between the plugin and ↵ddorwin@chromium.org2011-04-1611-164/+325
| | | | | | | | | | | | | broker dispatchers. Common code is in DispatcherBase. The base of the dispatcher for plugins remains Dispatcher. The base of the dispatcher for Brokers is BrokerDispatcher. BUG=none TEST=ppapi out-of-process plugins Review URL: http://codereview.chromium.org/6859003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81883 0039d316-1c4b-4281-b951-d872f2087c98
* Pre-buffer data from the host to the plugin in the PPAPI proxy to reduce thebrettw@chromium.org2011-04-152-11/+84
| | | | | | | | | | | impact of IPC latency on streaming data. This allows most resource requests to be returned synchronously from the URLLoader in the plugin. TEST=manual BUG=none Review URL: http://codereview.chromium.org/6870018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81833 0039d316-1c4b-4281-b951-d872f2087c98
* Added functionality to use "SaveAs..." from PDF plugin.gene@chromium.org2011-04-151-3/+12
| | | | | | | | | | | | | | | It is exactly the same experience as user right-click and select "SaveAs..." from pop-up menu. No disk access allowed for plugin. DIscussed it with Chris Evans and he is ok with this solution from the security stand point. Also added PDF resources for new UI. BUG=56072,75235 TEST=none, will send PDF cl separately. Review URL: http://codereview.chromium.org/6871020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81822 0039d316-1c4b-4281-b951-d872f2087c98
* Support PPB_Flash_ModileLocal blocking calls from background threads. This isbrettw@chromium.org2011-04-154-35/+413
| | | | | | | | | | | | | | | | | | | | | a temporary stopgap to allow these specific functions to be used until the entire proxy can support threading. There are two functions that set up and clean up the routing information in the interface. These are necessary because the global dispatcher routing information is not threadsafe. When used from the main thread, the code works the same as before. When used from a background thread, we create a sync message, send it to the I/O thread, and block the sending thread until the reply is received. There is no handling of other incoming blocking messages (which are impossible), and no other Pepper functions are supported from the background thread. TEST=manual BUG=none Review URL: http://codereview.chromium.org/6875009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81814 0039d316-1c4b-4281-b951-d872f2087c98
* Add trusted Instance C interfaces with scripting-related functions.dmichael@chromium.org2011-04-154-0/+132
| | | | | | | | | | | | | | | | | | Added to all_c_includes.h for C compilation test. TODO: -Wire these up in Chrome w/tests. -Add an InstanceTrusted C++ class. -Coordinate the move to these interfaces. -Remove the scripting functions from PPB_Instance and PPP_Instance. BUG=None TEST=it compiles Review URL: http://codereview.chromium.org/6850033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81760 0039d316-1c4b-4281-b951-d872f2087c98
* Draft version of the HW video decode tester and few other changes.scherkus@chromium.org2011-04-144-6/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Intention is that this tester can be used to decouple HW decode accelerator integration from running the whole Chrome browser. Features: - Independent GUnit executable, which should be possible to use in autotests. - Mimics Renderer process from Gpu video pipeline perspective. * Test bench contains implementation of FakeClient which essentially mimics Renderer process from the GpuVideoDecodeAccelerator's point of view. * FakeClient runs on it's own thread and will communicate with using the IPC messages that are used also within the real use case. * FakeClient will allocate memories using same SharedMemory stuff as the real Renderer code. * Currently reads H.264 Annex B bitstream from file and parses it to NAL units before feeding to the decoder * TODO: Polish and improving the features and configurability. * TODO: GLES texture allocation for textures. - Allows building various test cases and error behaviour as well both on AcceleratedVideoDecoder interface as well as erroneous behaviour from the client. - Allows also checking expected order of calls if we want to enforce certain behaviour across various implementations. Patch by vmr@chromium.org: http://codereview.chromium.org/6720040/ BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81663 0039d316-1c4b-4281-b951-d872f2087c98
* Added documentation for the point.h file as an example for engineers to follow.jond@google.com2011-04-141-8/+69
| | | | | | Review URL: http://codereview.chromium.org/6825050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81640 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the ref-count issue related to the url_loader parameter of ↵yzshen@chromium.org2011-04-141-0/+24
| | | | | | | | | | | PPP_Instance.HandleDocumentLoad(). BUG=None TEST=None Review URL: http://codereview.chromium.org/6835002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81618 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the webkit::ppapi::URLLoader to use the underlying ↵bbudge@chromium.org2011-04-142-0/+22
| | | | | | | | | | AssociatedURLLoader for security checks, and convert URLRequest properties into the configuration for the AssociatedURLLoader. This Issue depends on http://codereview.chromium.org/6755015/ BUG=47354 TEST=ppapi_tests Review URL: http://codereview.chromium.org/6765040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81605 0039d316-1c4b-4281-b951-d872f2087c98
* Add CORS options to URL requests. This information will be used by the ↵bbudge@chromium.org2011-04-142-4/+25
| | | | | | | | | | | URLLoader to create the AssociatedURLLoader that sends the request. The CORS options are simplified to fit with what is already in PPAPI. For example, since we already have a trusted interface with universal access, setting the PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS property TRUE corresponds to using access control to check the request. If we want to remove the trusted interface, then we should modify this CL so that we can specify Allow, Deny, or UseAccessControl. Also, I chose not to expose the SniffContent option from WebKit's loader. BUG=47354 TEST=test_shell_tests Review URL: http://codereview.chromium.org/6755015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81604 0039d316-1c4b-4281-b951-d872f2087c98
* Wire up the extension API for registering NaCl modules to an actual registry ↵abarth@chromium.org2011-04-145-9/+9
| | | | | | | | of NaCl modules. Review URL: http://codereview.chromium.org/6821038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81545 0039d316-1c4b-4281-b951-d872f2087c98
* Asynchronously create the ppapi broker.ddorwin@chromium.org2011-04-141-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6822012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81525 0039d316-1c4b-4281-b951-d872f2087c98
* Added ppp_broker.h and parameterized PpapiThread to support the broker process.ddorwin@chromium.org2011-04-144-4/+93
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6813071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81524 0039d316-1c4b-4281-b951-d872f2087c98
* Implement P2P Transport Dev using P2PTransportImpl.sergeyu@chromium.org2011-04-125-26/+201
| | | | | | | | | BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/6823021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81331 0039d316-1c4b-4281-b951-d872f2087c98
* implemented latch support in renderer process. this corresponds with a ↵jbates@chromium.org2011-04-121-5/+7
| | | | | | | | | | | | | webkit patch. https://bugs.webkit.org/show_bug.cgi?id=58003 BUG=72671 TEST=see attachment in bug for test. only green should be seen. Review URL: http://codereview.chromium.org/6810009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81295 0039d316-1c4b-4281-b951-d872f2087c98
* Add proxy for PPP_Graphics_3D_Devpiman@google.com2011-04-126-0/+118
| | | | | | | | | BUG=none TEST=run OOP Flash, kill the GPU process, check that Flash got the message. Review URL: http://codereview.chromium.org/6823069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81294 0039d316-1c4b-4281-b951-d872f2087c98
* Fix r79718 (and brettw's ignoring of my review comments).viettrungluu@chromium.org2011-04-111-1/+2
| | | | | | | | | BUG=http://crosbug.com/11878 TEST=See bug -- grooveshark shouldn't crash. Review URL: http://codereview.chromium.org/6822039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81174 0039d316-1c4b-4281-b951-d872f2087c98
* 1;2cReplace PP_ERROR_WOULDBLOCK with PP_OK_COMPLETIONPENDING. Improve error ↵polina@google.com2011-04-1124-177/+188
| | | | | | | | | | code comments. Update all code that uses this error code. Keep the old code for now flagging it as deprecated. Update copyrights. BUG=none TEST=bots Review URL: http://codereview.chromium.org/6814033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81168 0039d316-1c4b-4281-b951-d872f2087c98
* Create a super-simple PPAPI demo plugin exercising GLES2 functionality.fischman@chromium.org2011-04-113-1/+169
| | | | | | | | | | | | Hopefully useful to future plugin authors who need to use GL as a rendering engine. BUG=none TEST=manual Review URL: http://codereview.chromium.org/6825003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81166 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the issue that context menu doesn't show on fullscreen Pepper Flash.yzshen@chromium.org2011-04-111-3/+3
| | | | | | | | | | | | | - generate WebInputEvent::ContextMenu events. - calculate the context menu position correctly. - monitor mouse down events on fullscreen render widget, so that we can pass correct timestamp to gtk_menu_popup. BUG=None. TEST=Open a fullscreen Youtube video, and right click on it to see whether context menu shows up or not. Review URL: http://codereview.chromium.org/6760019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81135 0039d316-1c4b-4281-b951-d872f2087c98
* The mime type list can be NULL to allow all files. Handle this case whenbrettw@chromium.org2011-04-111-1/+3
| | | | | | | | converting to a std::string for serialization (the backend treats empty string the same as NULL). Review URL: http://codereview.chromium.org/6824045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81134 0039d316-1c4b-4281-b951-d872f2087c98
* Create a VarPrivate interface to contain the scripting helper functions of Var.brettw@chromium.org2011-04-119-24/+385
| | | | | | | | | | | | Currently, the old functions are left in Var. When people have a chance to move to this new API, we can delete them from Var. This also adds new enums for ARRAY and DICTIONARY vars, and makes the var C++ wrapper forward-compatible with them by refcounting any enums that it doesn't know about. Review URL: http://codereview.chromium.org/6823016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81068 0039d316-1c4b-4281-b951-d872f2087c98
* Don't close the client file descriptor, it's owned by the channelpiman@google.com2011-04-082-28/+3
| | | | | | | | | BUG=chromium-os:13861 TEST=With pepper flash, go to a flash site. close the tab. shouldn't see any "close failed" message. Review URL: http://codereview.chromium.org/6825013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81001 0039d316-1c4b-4281-b951-d872f2087c98
* Reupload of http://codereview.chromium.org/6801053/dmichael@chromium.org2011-04-088-149/+29
| | | | | | | | | | My repo got messed up. BUG=None TEST=src/ppapi/tests/test_post_message.cc Review URL: http://codereview.chromium.org/6801053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80992 0039d316-1c4b-4281-b951-d872f2087c98
* Add parser and test filesnoelallen@google.com2011-04-087-22/+1068
| | | | | | | | | | | | | | | | This CL adds the PLY based parser, parser test files, and makes some additional cleanup to the lexer. The parser is part of a generator which is still under development. The parser can be run standalone which works as a test mode verifying success and failure tags it find in the sources embedded as comments. Adding the switch --output will print the AST. R=sehr@google.com BUG=77551 TEST=python idl_parser.py test_parser/*.idl Review URL: http://codereview.chromium.org/6754001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80933 0039d316-1c4b-4281-b951-d872f2087c98