summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy
Commit message (Collapse)AuthorAgeFilesLines
* Allow the plugin to set an empty tickmarks array to clear tickmarksraymes@chromium.org2014-04-161-3/+2
| | | | | | | | | | | Fix a bug which prevented empty tickmarks from being set to an empty array (which clears them). BUG=303491 Review URL: https://codereview.chromium.org/236733002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264094 0039d316-1c4b-4281-b951-d872f2087c98
* More removal of GTK code.erg@chromium.org2014-04-152-20/+0
| | | | | | | | BUG=297026 Review URL: https://codereview.chromium.org/232773008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263757 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Make it possible to pass external file systems to NaCl modules.thestig@chromium.org2014-04-113-16/+25
| | | | | | | | BUG=327171 Review URL: https://codereview.chromium.org/210593003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263166 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor around start up of the plugin.hidehiko@chromium.org2014-04-094-465/+0
| | | | | | | | | | | | | | | | | | | | | | This CL has some refactoring to prepare implementation of EmbedderService. 1) Moves irt_ppapi.c, plugin_main_irt.cc and plugin_main_irt.h to ppapi/nacl_irt. 2) Introduces irt_start.cc to handle startup of the plugin in SFI-mode. The file is extracted from irt_ppapi.cc. The main purpose of this separation is to avoid conflicting unistd.h. irt_ppapi.cc needs to include native_client/src/trusted/service_runtime/include/sys/unistd.h. However, start up code needs to include base/at_exit.h which indirectly include unistd.h. As a result they conflict, and NACL_ABI__SC_NACL_PNACL_MODE sometimes can be used, but sometimes not. 3) Moves AtExitManager, IOThread creation and global FD setting to irt_start.cc and plugin_startup.cc. TEST=Ran trybots BUG=358431 Review URL: https://codereview.chromium.org/225093006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262649 0039d316-1c4b-4281-b951-d872f2087c98
* Moves ppapi/nacl_irt/{README,irt_ppapi.h} to ppapi/nacl_irt/public.hidehiko@chromium.org2014-04-042-2/+2
| | | | | | | | | | | | | This is preparation to add open_resource() irt for non-SFI mode. Some codes will be under ppapi/nacl_irt/src, so this CL moves the files directly under ppapi/nacl_irt to its public directory. TEST=Build the binary. Run trybot. BUG=358431 Review URL: https://codereview.chromium.org/214883007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261656 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Dev permission check from TextInputController.nona@chromium.org2014-04-031-8/+0
| | | | | | | | | | | The API is already moved to stable. No need to check dev permission any more. BUG=343625 TEST=trybots Review URL: https://codereview.chromium.org/220583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261293 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused PPB_Graphics2D_Dev interfaceraymes@google.com2014-04-034-35/+4
| | | | | | | | | | | This may be revived later to implement fast PDF scrolling but that's too far out so get rid of it for the time being. BUG=303491 R=jschuh@chromium.org, piman@chromium.org, teravest@chromium.org Review URL: https://codereview.chromium.org/216213002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261242 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor gpu::Buffer to allow different types of backingpiman@chromium.org2014-04-022-5/+5
| | | | | | | | | | | | This is so that we can use either base::SharedMemory or mojo::SharedBuffer to back gpu::Buffer. BUG=333157 R=darin@chromium.org, viettrungluu@chromium.org Review URL: https://codereview.chromium.org/213353005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261228 0039d316-1c4b-4281-b951-d872f2087c98
* Remove CommandBuffer::GetTransferBuffer.piman@chromium.org2014-04-017-133/+50
| | | | | | | | | | | | | | The only time we call GetTransferBuffer is on Pepper, right after CreateTransferBuffer, so combine the two. This lets us dramatically remove all the maintenance burden (maps) and extra IPCs. Also separate service-only calls out of CommandBuffer, into CommandBufferServiceBase BUG=None Review URL: https://codereview.chromium.org/215803002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260806 0039d316-1c4b-4281-b951-d872f2087c98
* Add a PPB_Find_Private function to set the tickmarks on the page.raymes@chromium.org2014-03-303-0/+33
| | | | | | | | | | | This adds a PPB_Find_Private function to set the tickmarks on the page. BUG=303491 TBR=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/195893044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260443 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: organize ppapi VideoDecoder messages.bbudge@chromium.org2014-03-261-73/+73
| | | | | | | | | | | | | | 1) Move messages for the existing Dev Video Decoder APIs to be together, so things don't get too confusing when I add the new VideoDecoder API. 2) Consolidate Flash messages. 3) Remove extra OS_NACL guards. 4) Remove some messages from the NaCl untrusted build that aren't proxied. BUG=281689 Review URL: https://codereview.chromium.org/211573007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259657 0039d316-1c4b-4281-b951-d872f2087c98
* Replace --ppapi-keep-alive-throttle command line switch with IPC parameter.scheib@chromium.org2014-03-264-35/+15
| | | | | | | | | | | | Part of a broad effort to reduce the number of command line switches. This is the third land of this change - handling DISABLE_NACL builds. BUG=350510 Review URL: https://codereview.chromium.org/211513002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259637 0039d316-1c4b-4281-b951-d872f2087c98
* Pass string PP_Vars to JS as string primitivesraymes@chromium.org2014-03-261-1/+1
| | | | | | | | | | | | | | | Previously we sent PP_Var strings to JS (via PostMessage) as string objects in order to allow references to strins in the graph to maintained (string objects in JS can be referenced but string primitives cannot). However maintaining reference information is hugely useful and it is more natural for JS clients to receive a string primitive. This CL ensures that all strings received via PostMessage are string primitives. BUG=350031 Review URL: https://codereview.chromium.org/201553002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259498 0039d316-1c4b-4281-b951-d872f2087c98
* Rename PPB_Find_Dev to PPB_Find_Privateraymes@chromium.org2014-03-263-14/+14
| | | | | | | | | | This makes PPB_Find_Dev a private API and renames it as such. There is no intention to make this a public API. BUG=303491 Review URL: https://codereview.chromium.org/197623005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259497 0039d316-1c4b-4281-b951-d872f2087c98
* GPU: Reference count gpu::Buffer.epenner@chromium.org2014-03-262-30/+23
| | | | | | | | | | | | | | | | | We tend to duplicate shared memory within the same process when we don't need to, causing extra page faults etc when accessing the memory. With reference counting we can more easily re-use blocks of shared memory in the same process, and make security easier (objects in shared memory can hold a reference to their memory and prevent use-after-free). BUG=177063, 353822 Review URL: https://codereview.chromium.org/209353002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259491 0039d316-1c4b-4281-b951-d872f2087c98
* Add IsCrashReportingEnabled call to Pepper UMA APIelijahtaylor@chromium.org2014-03-213-0/+31
| | | | | | | | | | This mirrors the existing metricsPrivate JS API. BUG=341130 Review URL: https://codereview.chromium.org/195793026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258702 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DCHECK errors on non-SFI mode.hidehiko@chromium.org2014-03-201-1/+5
| | | | | | | | | | | | | | | | | | This CL is extracted from crrev.com/189553005. The fixes are: 1) AtExitManager is conflicting. In non-SFI mode, AtExitManager is already instantiated in nacl_helper. To avoid the conflicting, skip to create it in plugin_main_irt.cc. 2) Allowed creating Singleton on the plugin's main thread. 3) SRPC may be successfully done, and then NOTREACHED catch it in nacl_listener. It is false alarm, so removed it. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TETS=Run trybots. Review URL: https://codereview.chromium.org/206033006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258367 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Add very simple loading test for non-SFI NaCl. ↵pneubeck@chromium.org2014-03-201-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://codereview.chromium.org/189553005/) Reason for revert: Broken linking on ChromiumOS http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28x86%29/builds/20529/steps/BuildPackages/logs/stdio Original issue's description: > Add very simple loading test for non-SFI NaCl. > > This is the first step to add test cases for non-SFI NaCl. > The testee binary is build by a new target rule introduced by this CL, which is relocatable/libc-free binary. The code has a minimum set of handlers for irt_ppapi, to load the plugin successfully done with communicating hosts (browser/renderer processes). > > Along this change, some DCHECK errors are found. So they're fixed, too. > 1) AtExitManager is conflicting. In non-SFI mode, AtExitManager is already instantiated in nacl_helper. To avoid the conflicting, skip to create it in plugin_main_irt.cc. > 2) Allowed creating Singleton on the plugin's main thread. > 3) SRPC may be successfully done, and then NOTREACHED catch it in nacl_listener. It is false alarm, so removed it. > > BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 > TEST=run ./browser_tests --gtest_filter=NaCl*NonSFI* locally. Run trybots. > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257118 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257743 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258200 TBR=mseaborn@chromium.org,dmichael@chromium.org,hidehiko@chromium.org NOTREECHECKS=true NOTRY=true BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 Review URL: https://codereview.chromium.org/206223002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258258 0039d316-1c4b-4281-b951-d872f2087c98
* Add very simple loading test for non-SFI NaCl.hidehiko@chromium.org2014-03-201-1/+5
| | | | | | | | | | | | | | | | | | | | | This is the first step to add test cases for non-SFI NaCl. The testee binary is build by a new target rule introduced by this CL, which is relocatable/libc-free binary. The code has a minimum set of handlers for irt_ppapi, to load the plugin successfully done with communicating hosts (browser/renderer processes). Along this change, some DCHECK errors are found. So they're fixed, too. 1) AtExitManager is conflicting. In non-SFI mode, AtExitManager is already instantiated in nacl_helper. To avoid the conflicting, skip to create it in plugin_main_irt.cc. 2) Allowed creating Singleton on the plugin's main thread. 3) SRPC may be successfully done, and then NOTREACHED catch it in nacl_listener. It is false alarm, so removed it. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=run ./browser_tests --gtest_filter=NaCl*NonSFI* locally. Run trybots. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257118 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257743 Review URL: https://codereview.chromium.org/189553005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258200 0039d316-1c4b-4281-b951-d872f2087c98
* This proxies PPB_Find_Dev so that it can be used out of process. It also ↵raymes@google.com2014-03-206-3/+227
| | | | | | | | | | | adds a function named SetPluginToHandleFindRequests which can be called by embedded plugins which want to handle browser find. This is needed for the new out of process PDF plugin, which will be embedded in an extensions page. BUG=303491 R=jam@chromium.org, jschuh@chromium.org, yzshen@chromium.org Review URL: https://codereview.chromium.org/188323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258171 0039d316-1c4b-4281-b951-d872f2087c98
* Move Blink dependency out of plugin proxy code.bbudge@chromium.org2014-03-181-13/+5
| | | | | | | | | | Moves dependency on WebSocket.h from plugin to host. BUG=350097 Review URL: https://codereview.chromium.org/202143007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257796 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 257743 "Add very simple loading test for non-SFI NaCl."yzshen@chromium.org2014-03-181-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Broke Linux ASan+LSan Tests (1). > Add very simple loading test for non-SFI NaCl. > > This is the first step to add test cases for non-SFI NaCl. > The testee binary is build by a new target rule introduced by this CL, which is relocatable/libc-free binary. The code has a minimum set of handlers for irt_ppapi, to load the plugin successfully done with communicating hosts (browser/renderer processes). > > Along this change, some DCHECK errors are found. So they're fixed, too. > 1) AtExitManager is conflicting. In non-SFI mode, AtExitManager is already instantiated in nacl_helper. To avoid the conflicting, skip to create it in plugin_main_irt.cc. > 2) Allowed creating Singleton on the plugin's main thread. > 3) SRPC may be successfully done, and then NOTREACHED catch it in nacl_listener. It is false alarm, so removed it. > > BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 > TEST=run ./browser_tests --gtest_filter=NaCl*NonSFI* locally. Run trybots. > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257118 > > Review URL: https://codereview.chromium.org/189553005 TBR=hidehiko@chromium.org Review URL: https://codereview.chromium.org/203993003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257787 0039d316-1c4b-4281-b951-d872f2087c98
* Replace command buffer FlushSync with WaitForTokenInRange and ↵jbauman@chromium.org2014-03-185-48/+91
| | | | | | | | | | | | WaitForGetOffsetInRange This allows the command-buffer interface to be more clear about what's happening, so we'll later be able to create IPCs that wait specifically for one of these events to happen. Currently both function are still implemented by looping on the GetStateFast IPC. BUG=349632 Review URL: https://codereview.chromium.org/189123004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257771 0039d316-1c4b-4281-b951-d872f2087c98
* Add very simple loading test for non-SFI NaCl.hidehiko@chromium.org2014-03-181-1/+5
| | | | | | | | | | | | | | | | | | | This is the first step to add test cases for non-SFI NaCl. The testee binary is build by a new target rule introduced by this CL, which is relocatable/libc-free binary. The code has a minimum set of handlers for irt_ppapi, to load the plugin successfully done with communicating hosts (browser/renderer processes). Along this change, some DCHECK errors are found. So they're fixed, too. 1) AtExitManager is conflicting. In non-SFI mode, AtExitManager is already instantiated in nacl_helper. To avoid the conflicting, skip to create it in plugin_main_irt.cc. 2) Allowed creating Singleton on the plugin's main thread. 3) SRPC may be successfully done, and then NOTREACHED catch it in nacl_listener. It is false alarm, so removed it. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=run ./browser_tests --gtest_filter=NaCl*NonSFI* locally. Run trybots. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257118 Review URL: https://codereview.chromium.org/189553005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257743 0039d316-1c4b-4281-b951-d872f2087c98
* Fix "unreachable code" warnings (MSVC warning 4702) in ppapi/.pkasting@chromium.org2014-03-181-2/+2
| | | | | | | | | | BUG=346399 TEST=none R=dmichael@chromium.org Review URL: https://codereview.chromium.org/197203004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257741 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Add very simple loading test for non-SFI NaCl. ↵sadrul@chromium.org2014-03-141-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://codereview.chromium.org/189553005/) Reason for revert: The newly added NonSfiLoad test fails on linux asan-lsan bot: http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%2BLSan%20Tests%20%282%29/builds/491/steps/browser_tests/logs/NonSfiLoad Original issue's description: > Add very simple loading test for non-SFI NaCl. > > This is the first step to add test cases for non-SFI NaCl. > The testee binary is build by a new target rule introduced by this CL, which is relocatable/libc-free binary. The code has a minimum set of handlers for irt_ppapi, to load the plugin successfully done with communicating hosts (browser/renderer processes). > > Along this change, some DCHECK errors are found. So they're fixed, too. > 1) AtExitManager is conflicting. In non-SFI mode, AtExitManager is already instantiated in nacl_helper. To avoid the conflicting, skip to create it in plugin_main_irt.cc. > 2) Allowed creating Singleton on the plugin's main thread. > 3) SRPC may be successfully done, and then NOTREACHED catch it in nacl_listener. It is false alarm, so removed it. > > BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 > TEST=run ./browser_tests --gtest_filter=NaCl*NonSFI* locally. Run trybots. > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257118 TBR=mseaborn@chromium.org,dmichael@chromium.org,hidehiko@chromium.org NOTREECHECKS=true NOTRY=true BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 Review URL: https://codereview.chromium.org/200503002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257137 0039d316-1c4b-4281-b951-d872f2087c98
* Add very simple loading test for non-SFI NaCl.hidehiko@chromium.org2014-03-141-1/+5
| | | | | | | | | | | | | | | | | This is the first step to add test cases for non-SFI NaCl. The testee binary is build by a new target rule introduced by this CL, which is relocatable/libc-free binary. The code has a minimum set of handlers for irt_ppapi, to load the plugin successfully done with communicating hosts (browser/renderer processes). Along this change, some DCHECK errors are found. So they're fixed, too. 1) AtExitManager is conflicting. In non-SFI mode, AtExitManager is already instantiated in nacl_helper. To avoid the conflicting, skip to create it in plugin_main_irt.cc. 2) Allowed creating Singleton on the plugin's main thread. 3) SRPC may be successfully done, and then NOTREACHED catch it in nacl_listener. It is false alarm, so removed it. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=run ./browser_tests --gtest_filter=NaCl*NonSFI* locally. Run trybots. Review URL: https://codereview.chromium.org/189553005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257118 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Replace --ppapi-keep-alive-throttle command line switch with IPC ↵thakis@chromium.org2014-03-144-15/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parameter. (https://codereview.chromium.org/197693003/) Reason for revert: Broke building on http://build.chromium.org/p/chromium.memory/builders/Chromium%20OS%20%28x86%29%20ASan/builds/8599/steps/BuildPackages/logs/stdio This bot builds with disable_nacl=1 for some reason (mentioned in the stdio above somewhere – not sure why this is), and thus chrome_browser doesn't depend on nacl_browser, leading to this linker error when building browser_tests: chromeos-chrome-35.0.1889.0_alpha-r1: ../../../../../../../home/chrome-bot/chrome_root/src/chrome/browser/extensions/app_background_page_apitest.cc:134: error: undefined reference to 'nacl::NaClProcessHost::SetPpapiKeepAliveThrottleForTesting(unsigned int)' (Maybe this change generally breaks building browser_tests with disable_nacl=1?) Original issue's description: > Replace --ppapi-keep-alive-throttle command line switch with IPC parameter. > > Part of a broad effort to reduce the number of command line switches. > > This is the second land of this change - correcting a static initializer issue. > > BUG=350510 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256961 TBR=dmichael@chromium.org,tsepez@chromium.org,mseaborn@chromium.org,scheib@chromium.org NOTREECHECKS=true NOTRY=true BUG=350510 Review URL: https://codereview.chromium.org/199933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256993 0039d316-1c4b-4281-b951-d872f2087c98
* Replace --ppapi-keep-alive-throttle command line switch with IPC parameter.scheib@chromium.org2014-03-144-35/+15
| | | | | | | | | | | | Part of a broad effort to reduce the number of command line switches. This is the second land of this change - correcting a static initializer issue. BUG=350510 Review URL: https://codereview.chromium.org/197693003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256961 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Replace --ppapi-keep-alive-throttle command line switch with IPC ↵jochen@chromium.org2014-03-124-15/+35
| | | | | | | | | | | | | | | | | | | | | | | | | parameter. (https://codereview.chromium.org/191633002/) Reason for revert: This introduced a static initializer in nacl_process_host Original issue's description: > Replace --ppapi-keep-alive-throttle command line switch with IPC parameter. > > Part of a broad effort to reduce the number of command line switches. > > BUG=350510 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256436 TBR=dmichael@chromium.org,mseaborn@chromium.org,inferno@chromium.org,tsepez@chromium.org,scheib@chromium.org NOTREECHECKS=true NOTRY=true BUG=350510 Review URL: https://codereview.chromium.org/196763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256450 0039d316-1c4b-4281-b951-d872f2087c98
* Replace --ppapi-keep-alive-throttle command line switch with IPC parameter.scheib@chromium.org2014-03-124-35/+15
| | | | | | | | | | Part of a broad effort to reduce the number of command line switches. BUG=350510 Review URL: https://codereview.chromium.org/191633002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256436 0039d316-1c4b-4281-b951-d872f2087c98
* Split the PNaCl IRT shim into 3 pieces, and include one piece into IRT.jvoung@google.com2014-03-092-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (*) A "for irt" library, that will get linked into the IRT. That library just has the auto-generated pnacl_shim.c file. Also modify ppapi_proxy to include a "irt_shim_ppapi.c", which makes use of the pnacl_shim.c file to define a private hook, parallel to the hook provided by irt_ppapi.c. (*) A "for the browser" library, that the browser-tester and the PNaCl packager will include for PNaCl-in-the-browser. This is still called "libpnacl_irt_shim.a" so that we don't need to change the in-browser linker's commandline. However, it will be placed in a different directory so that the Chrome PNaCl packager can pick it up separately from the AOT library. This for-browser library uses the new hook. (*) A "AOT" library, that will go into the SDK for offline pexe -> nexe translation. Still called "libpnacl_irt_shim.a" as well, confusingly enough, so that we don't need to change the pnacl-nativeld.py commandlines. Placed in a different directory from the for-browser library. Does not use the new hook, so that it only depends on stable interfaces. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3783 R=binji@chromium.org, dmichael@chromium.org, mseaborn@chromium.org Review URL: https://codereview.chromium.org/164373010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255807 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that pepper plugins honor the GPU H/W video decode blacklist and the ↵ananta@chromium.org2014-03-072-0/+4
| | | | | | | | | | | | | | | | | | | | disable-accelerated-video-decode switch Pepper plugins like Flash should honor the GPU blacklist. Not doing that causes them to try and use buggy video drivers for video decoding which does not end well. This is done by adding a flag in the accelerated_video_decode_enabled in the WebPreferences structure This is initialized along with the other preferences in the GpuDataManagerImplPrivate::UpdateRendererWebPrefs function. This is also passed to PPAPI plugins via the ppapi::Preferences structure. The flag defaults to false. The plugin process checks this flag and if it is false does not attempt to create the video decoder. BUG=348154 R=bbudge@chromium.org, cpu@chromium.org, jam@chromium.org, jamesr@chromium.org, jbauman@chromium.org, palmer@chromium.org, bbudge, cpu, jbauman Review URL: https://codereview.chromium.org/188143003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255473 0039d316-1c4b-4281-b951-d872f2087c98
* Add new PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE_1_0 pepper interface.jbauman@chromium.org2014-03-061-1/+5
| | | | | | | | | | This allows applications to draw to multiple render targets at the same time. BUG=318019 Review URL: https://codereview.chromium.org/182213003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255222 0039d316-1c4b-4281-b951-d872f2087c98
* Encrypted Media: Use uint32 for systemCode in SessionError.xhwang@chromium.org2014-03-042-5/+5
| | | | | | | | | | | In prefixed EME spec, "systemCode" is an unsigned short (16bit unsigned integer). In unprefixed EME spec, it's an unsigned long (32bit unsigned integer). This CL updates "system_code" parameters in SessionError to use uint32. TBR=dcheng@chromium.org BUG=224786 Review URL: https://codereview.chromium.org/179123009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254693 0039d316-1c4b-4281-b951-d872f2087c98
* Fix "defined but not used" warning in ppapi/proxy/ppb_instance_proxy.ccmseaborn@chromium.org2014-03-031-0/+2
| | | | | | | | | | | | | PNaCl is being upgraded to Clang 3.4, which now warns about unused declarations inside anonymous namespaces. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3757 TEST=compile using new PNaCl toolchain R=teravest@chromium.org Review URL: https://codereview.chromium.org/185293010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254530 0039d316-1c4b-4281-b951-d872f2087c98
* Move TrimWhitespace to the base namespace.brettw@chromium.org2014-03-031-1/+1
| | | | | | | | R=viettrungluu@chromium.org, viettrungluu Review URL: https://codereview.chromium.org/183853011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254521 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Pepper: Fix channel init in ProxyChannel."dmichael@chromium.org2014-02-275-26/+25
| | | | | | | | | | | | | | | | | This reverts: https://src.chromium.org/viewvc/chrome?view=rev&revision=253408 because it introduces a data race. See: https://code.google.com/p/chromium/issues/detail?id=244383 This CL might still be a good change, but there will need to be changes to IPC::ChannelProxy first. BUG=343768 TBR=teravest Review URL: https://codereview.chromium.org/179873019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253978 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Dispatcher cleanup nits.teravest@chromium.org2014-02-264-28/+8
| | | | | | | | | | | I came across some things to clean up in Dispatcher while making fixes for ProxyChannel. BUG= Review URL: https://codereview.chromium.org/177003012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253515 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Fix channel init in ProxyChannel.teravest@chromium.org2014-02-265-25/+26
| | | | | | | | | | | | | | Previously, there was no way to savely add filters to the underlying SyncChannel in a ProxyChannel safely. This change splits channel initialization into two methods so there's a clear step where filters may be added safely. BUG=343768 Review URL: https://codereview.chromium.org/179743005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253408 0039d316-1c4b-4281-b951-d872f2087c98
* Remove early-return and unreached code in ↵raymes@chromium.org2014-02-261-25/+6
| | | | | | | | | | TCPSocketResourceBase::AddChainBuildingCertificateImpl BUG=346389 Review URL: https://codereview.chromium.org/179023002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253381 0039d316-1c4b-4281-b951-d872f2087c98
* [PPAPI][MediaStream] Support configure for video input.penghuang@chromium.org2014-02-264-6/+77
| | | | | | | | | | Support configuring frame format and size for video input. BUG=330851 Review URL: https://codereview.chromium.org/150403006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253307 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Get rid of UNPROXIED_IFACE.teravest@chromium.org2014-02-241-0/+4
| | | | | | | | | | | | PROXIED_IFACE and UNPROXIED_IFACE always have the same behavior now. There's no need to have two macros for this. BUG= R=dmichael@chromium.org Review URL: https://codereview.chromium.org/165393016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253012 0039d316-1c4b-4281-b951-d872f2087c98
* Connect PPAPI IPC channels for non-SFI mode.hidehiko@chromium.org2014-02-213-12/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By this CL, plugin starts to talk with hosts via IPC. For that purpose, ppapi_proxy is linked to nacl_helper (temporarily). This increase the size of nacl_helper, but when we split nacl_helper for non-sfi mode, it'll be resolved. In SFI mode, this CL shouldn't affect the concept of IPC channel connection between the plugin and the hosts. We still use NaClIPCAdapter to wrap the IPC channel, and NaClDesc for the plugin-side IPC file descriptors. In non-SFI mode, we neither intercept nor rewrite the message using NaClIPCAdapter, and the channels are connected between the plugin and the hosts directly. Note: plugin_main_nacl.cc is renamed to plugin_main.cc, because files with _nacl.cc suffix are automatically excluded from the sources of non-untrusted libs. This increases the size of nacl_helper (temporarily) intentionally. GYP_DEFINES="target_arch=ia32 remove_webcore_debug_symbols=1 linux_strip_symbols=1" GYP_GENERATORS="ninja" gclient runhooks Before: text data bss dec hex filename 1469882 15576 108644 1594102 1852f6 out/Release/nacl_helper After: text data bss dec hex filename 5641443 124636 126980 5893059 59ebc3 out/Release/nacl_helper GYP_DEFINES="target_arch=x64 remove_webcore_debug_symbols=1 linux_strip_symbols=1" GYP_GENERATORS="ninja" gclient runhooks Before: text data bss dec hex filename 2063530 27910 213872 2305312 232d20 out/Release/nacl_helper After: text data bss dec hex filename 6304467 234424 247984 6786875 678f3b out/Release/nacl_helper BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=Ran trybot. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252503 Review URL: https://codereview.chromium.org/140573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252556 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Connect PPAPI IPC channels for non-SFI mode."loislo@chromium.org2014-02-213-78/+12
| | | | | | This reverts commit 3d41a2a63bbd307fcee6e6c5547ce5fe29e2f4a5. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252506 0039d316-1c4b-4281-b951-d872f2087c98
* Connect PPAPI IPC channels for non-SFI mode.hidehiko@chromium.org2014-02-213-12/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By this CL, plugin starts to talk with hosts via IPC. For that purpose, ppapi_proxy is linked to nacl_helper (temporarily). This increase the size of nacl_helper, but when we split nacl_helper for non-sfi mode, it'll be resolved. In SFI mode, this CL shouldn't affect the concept of IPC channel connection between the plugin and the hosts. We still use NaClIPCAdapter to wrap the IPC channel, and NaClDesc for the plugin-side IPC file descriptors. In non-SFI mode, we neither intercept nor rewrite the message using NaClIPCAdapter, and the channels are connected between the plugin and the hosts directly. Note: plugin_main_nacl.cc is renamed to plugin_main.cc, because files with _nacl.cc suffix are automatically excluded from the sources of non-untrusted libs. This increases the size of nacl_helper (temporarily) intentionally. GYP_DEFINES="target_arch=ia32 remove_webcore_debug_symbols=1 linux_strip_symbols=1" GYP_GENERATORS="ninja" gclient runhooks Before: text data bss dec hex filename 1469882 15576 108644 1594102 1852f6 out/Release/nacl_helper After: text data bss dec hex filename 5641443 124636 126980 5893059 59ebc3 out/Release/nacl_helper GYP_DEFINES="target_arch=x64 remove_webcore_debug_symbols=1 linux_strip_symbols=1" GYP_GENERATORS="ninja" gclient runhooks Before: text data bss dec hex filename 2063530 27910 213872 2305312 232d20 out/Release/nacl_helper After: text data bss dec hex filename 6304467 234424 247984 6786875 678f3b out/Release/nacl_helper BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=Ran trybot. Review URL: https://codereview.chromium.org/140573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252503 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Address some TODOs from moving PPAPI IRT interface into the Chromium repomseaborn@chromium.org2014-02-211-5/+1
| | | | | | | | | | BUG=https://code.google.com/p/nativeclient/issues/detail?id=3787 TEST=build R=teravest@chromium.org Review URL: https://codereview.chromium.org/171683019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252437 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Fix AddFilter() order in PpapiDispatcher.teravest@chromium.org2014-02-201-5/+6
| | | | | | | | | | | | | | Previously, filters were added to the SyncChannel in PpapiDispatcher after the channel was connected. There was nothing clearly enforcing that messages wouldn't arrive until after the filters were added. This change makes this ordering more explicit and easier to understand. BUG=343768 Review URL: https://codereview.chromium.org/172873004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252348 0039d316-1c4b-4281-b951-d872f2087c98
* raw_var_data: Fixed a tiny copy+paste error in a comment.mgiuca@chromium.org2014-02-201-1/+1
| | | | | | Review URL: https://codereview.chromium.org/170893007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252313 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Move definition of the "ppapihook" IRT interface to the Chromium repomseaborn@chromium.org2014-02-191-0/+24
| | | | | | | | | | | | | | This uses the new IRT construction API. This will allow references to PPAPI to be removed from src/untrusted/irt in the NaCl repo. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3787 TEST=browser_tests Review URL: https://codereview.chromium.org/171093002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252119 0039d316-1c4b-4281-b951-d872f2087c98