summaryrefslogtreecommitdiffstats
path: root/ppapi/ppapi_proxy.gypi
Commit message (Collapse)AuthorAgeFilesLines
* PPAPI/NaCl: Move plugin_main.cc's contents into irt_ppapi.ccmseaborn2015-12-101-2/+0
| | | | | | | | | | | | | | | | | | My intent here is just to make the code easier to follow. plugin_main.cc and irt_ppapi.cc are both quite small, and there's no need for the code to be split between the two. * Inline PpapiPluginMain() into irt_ppapi_start(). * irt_shim_ppapi.c: Remove a duplicated function declaration. We can use the one from irt_ppapi.h instead. BUG=none TEST=build Review URL: https://codereview.chromium.org/1512233002 Cr-Commit-Position: refs/heads/master@{#364514}
* ppapi: define PPB_AudioEncoder APIlionel.g.landwerlin2015-09-171-0/+2
| | | | | | | | BUG=461222 Review URL: https://codereview.chromium.org/1128023009 Cr-Commit-Position: refs/heads/master@{#349418}
* NaCl: Copy PNaCl translator IRT interfaces to the Chromium sidemseaborn2015-07-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Add a copy of the existing SRPC-based implementation -- native_client/src/untrusted/irt/irt_pnacl_translator_{compile,link}.c -- to the Chromium side. This will allow the two implementations to be independently changed to remove use of SRPC. In copying this code, I have made some changes to follow the Chromium style: * Switching to C++ and using C++ comments * Using anon namespaces instead of "static" * "*" spacing (using clang-format) * "FooBar" function naming instead of "foo_bar" * Using the Chromium copyright notice BUG=302078 TEST=e.g. NaClBrowserTestPnacl.PPAPICore in browser_tests (also manually tested with NaCl-side interface disabled, to ensure the Chromium-side one is really being used) Review URL: https://codereview.chromium.org/1240343004 Cr-Commit-Position: refs/heads/master@{#339825}
* Reland of NaCl cleanup: Split out irt_interfaces.cc from irt_ppapi.cc ↵mseaborn2015-07-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (patchset #1 id:1 of https://codereview.chromium.org/1249473003/) Reason for reland: The size increase was caused by a Skia DEPS roll (https://codereview.chromium.org/1245793002/), not by this change. Original issue's description: > Revert of NaCl cleanup: Split out irt_interfaces.cc from irt_ppapi.cc (patchset #1 id:1 of https://codereview.chromium.org/1244533006/) > > Reason for revert: > Regressed Linux sizes - 4.5% is a bit of a hit to take to bump sizes. If you're absolutely sure this is acceptable, update sizes as well. > > Original issue's description: > > NaCl cleanup: Split out irt_interfaces.cc from irt_ppapi.cc > > > > The intention here is that irt_interfaces.{cc,h} should list the NaCl > > IRT interfaces that we implement in Chromium but that other files > > (like irt_ppapi.cc) should implement them. This matches how the files > > are organised in native_client/src/untrusted/irt/. > > > > This is in preparation for copying the PNaCl translator IRT interfaces > > to the Chromium side. That will add a couple more interfaces to > > irt_interfaces.cc (rather than to irt_ppapi.cc). > > > > BUG=302078 > > TEST=NaCl tests in browser_tests > > > > Committed: https://crrev.com/5e662010c1f7881970de6de19bcbd50f2726ea00 > > Cr-Commit-Position: refs/heads/master@{#339508} > > TBR=jvoung@chromium.org,bbudge@chromium.org,mseaborn@chromium.org > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=302078 > > Committed: https://crrev.com/db9f0a6b277a39d2f2b70d99e17801a18a6d79a6 > Cr-Commit-Position: refs/heads/master@{#339559} BUG=302078 TBR=jvoung@chromium.org Review URL: https://codereview.chromium.org/1245893002 Cr-Commit-Position: refs/heads/master@{#339666}
* Revert of NaCl cleanup: Split out irt_interfaces.cc from irt_ppapi.cc ↵rsleevi2015-07-201-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (patchset #1 id:1 of https://codereview.chromium.org/1244533006/) Reason for revert: Regressed Linux sizes - 4.5% is a bit of a hit to take to bump sizes. If you're absolutely sure this is acceptable, update sizes as well. Original issue's description: > NaCl cleanup: Split out irt_interfaces.cc from irt_ppapi.cc > > The intention here is that irt_interfaces.{cc,h} should list the NaCl > IRT interfaces that we implement in Chromium but that other files > (like irt_ppapi.cc) should implement them. This matches how the files > are organised in native_client/src/untrusted/irt/. > > This is in preparation for copying the PNaCl translator IRT interfaces > to the Chromium side. That will add a couple more interfaces to > irt_interfaces.cc (rather than to irt_ppapi.cc). > > BUG=302078 > TEST=NaCl tests in browser_tests > > Committed: https://crrev.com/5e662010c1f7881970de6de19bcbd50f2726ea00 > Cr-Commit-Position: refs/heads/master@{#339508} TBR=jvoung@chromium.org,bbudge@chromium.org,mseaborn@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=302078 Review URL: https://codereview.chromium.org/1249473003 Cr-Commit-Position: refs/heads/master@{#339559}
* NaCl cleanup: Split out irt_interfaces.cc from irt_ppapi.ccmseaborn2015-07-201-0/+2
| | | | | | | | | | | | | | | | | | The intention here is that irt_interfaces.{cc,h} should list the NaCl IRT interfaces that we implement in Chromium but that other files (like irt_ppapi.cc) should implement them. This matches how the files are organised in native_client/src/untrusted/irt/. This is in preparation for copying the PNaCl translator IRT interfaces to the Chromium side. That will add a couple more interfaces to irt_interfaces.cc (rather than to irt_ppapi.cc). BUG=302078 TEST=NaCl tests in browser_tests Review URL: https://codereview.chromium.org/1244533006 Cr-Commit-Position: refs/heads/master@{#339508}
* Remove GTalk Pepper interfaces and related code.jhorwich2015-04-151-4/+0
| | | | | | | | | | | | | | | Remove obsolete private Pepper interface private/ppb_talk_private.h, associated Pepper plumbing code, strings, and chrome::PepperTalkHost. These are no longer needed as support for Pepper GTalk has been dropped. BUG=392002 TEST=browser_tests Review URL: https://codereview.chromium.org/1088183003 Cr-Commit-Position: refs/heads/master@{#325310}
* Don't lock ProxyLock on the IO threaddmichael2015-04-021-0/+3
| | | | | | | | | | Introduce ResourceMessageFilter and UDPSocketFilter to receive messages on the IO thread. This allows us to queue messages up when there's no callback, and dispatch them directly to the appropriate thread when there is a callback pending. (This depends on TrackedCallback being Run()-able without the ProxyLock; see https://codereview.chromium.org/923263003/) BUG=439588 Review URL: https://codereview.chromium.org/869883003 Cr-Commit-Position: refs/heads/master@{#323517}
* Fixing debug GN build.bradnelson2015-03-241-0/+1
| | | | | | | | | | | | | | | | | | | | Gate out ICU initialization for OS_NACL, as it calls other code that is not built for nacl. Undetected in gyp build since we always build the nacl irt as release with gc-sections. Stop building the ppb_var_deprecated_proxy as it's only used in the trusted build for flash. Undetected in gyp build since we always build the nacl irt as release with gc-sections. BUG=https://code.google.com/p/chromium/issues/detail?id=462791 TEST=trybots R=dmichael@chromium.org,dpranke@chromium.org Review URL: https://codereview.chromium.org/1034553002 Cr-Commit-Position: refs/heads/master@{#322070}
* Pepper: Remove PPB_FileMappingdmichael2015-02-271-4/+0
| | | | | | | | | | | | | It's unused and will probably never go stable. Delete it; we can pull it from source control later if we change our minds. TBRing thestig for chrome/common/ppapi_utils, and binji for native_client_sd BUG=83774 TBR=thestig@chromium.org,binji@chromium.org Review URL: https://codereview.chromium.org/959333002 Cr-Commit-Position: refs/heads/master@{#318530}
* PPAPI: Whitelist PPB_CameraDevice_Private for some appsjchuang2015-02-251-2/+0
| | | | | | | | | | | Also compile PPB_CameraDevice_Private and PPB_CameraCapabilities_Private in NACL. BUG=387547 TEST=Test with a trusted plugin. (Haven't tested on NaCl) Review URL: https://codereview.chromium.org/944033002 Cr-Commit-Position: refs/heads/master@{#317984}
* PPAPI: Rename PPB_ImageCapture_Private to PPB_CameraDevice_Privatejchuang2015-02-201-3/+3
| | | | | | | | | BUG=387547 TEST=Call the API from a trusted plugin. Review URL: https://codereview.chromium.org/929053003 Cr-Commit-Position: refs/heads/master@{#317271}
* PPAPI: implement GetSupportedPreviewSizesjchuang2015-02-171-0/+6
| | | | | | | | | | | | | 1. Support PPB_CameraCapabilities_Private.GetSupportedPreviewSizes() 2. Implement basic skeleton of image capture PPAPI BUG=387547 TEST=Call the API from a trusted plugin and print all preview sizes. Review URL: https://codereview.chromium.org/848863002 Cr-Commit-Position: refs/heads/master@{#316552}
* Sort GYP and GN files under ppapisatorux2015-02-161-1/+1
| | | | | | | | | | | | For tools/sort_sources.py to be useful, existing GYP and GN files should be sorted. BUG=456014 TEST=everything should build as before Review URL: https://codereview.chromium.org/930753002 Cr-Commit-Position: refs/heads/master@{#316434}
* ppapi: VideoEncoder: Add proxy boilerplatelionel.g.landwerlin2015-02-061-0/+2
| | | | | | | | | BUG=455409 TEST=none Review URL: https://codereview.chromium.org/887223009 Cr-Commit-Position: refs/heads/master@{#315007}
* PPAPI: Implement synchronous postMessagedmichael@chromium.org2014-06-181-0/+2
| | | | | | | | BUG=367896 Review URL: https://codereview.chromium.org/264303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278102 0039d316-1c4b-4281-b951-d872f2087c98
* Remove apps in Pepper support and the PPB_Alarms_Dev API.yzshen@chromium.org2014-06-161-2/+0
| | | | | | | | | BUG=366304 TEST=None Review URL: https://codereview.chromium.org/314823002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277513 0039d316-1c4b-4281-b951-d872f2087c98
* [PPAPI] API definition for compositor artifactsmiletus@chromium.org2014-06-061-0/+4
| | | | | | | | | | | API Proposal http://goo.gl/V7xcu3 BUG=374383 R=binji@chromium.org, dmichael@chromium.org, mpearson@chromium.org, piman@chromium.org, raymes@chromium.org, yzshen@chromium.org Review URL: https://codereview.chromium.org/292523003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275490 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Pepper PPB_VideoDecoder interface.bbudge@chromium.org2014-05-301-0/+2
| | | | | | | | | | | | | | | | | Adds resource and host, unit test for the resource, and an example plugin. Implements only the hardware accelerated case. Software fallback will be in a follow-on CL. Adds two new PP_Error codes: PP_ERROR_UNREADABLE_INPUT PP_ERROR_PLATFORM_FAILED BUG=281689 R=dmichael@chromium.org, fischman@chromium.org, jar@chromium.org, piman@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/270213004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273920 0039d316-1c4b-4281-b951-d872f2087c98
* Add IPC Channel for new ManifestService.hidehiko@chromium.org2014-04-171-0/+2
| | | | | | | | | | | | | | | | This CL adds a new IPC Channel between NaCl plugin and the renderer process with introducing ManifestService (in the plugin) and ManifestServiceChannel (in the renderer) as its end points. Currently, ManifestService is just an empty service. Its functions will be added in following CLs. The service will be used only for non-SFI mode as a first step. On other platforms, IPC Channel will not be created. TEST=Ran trybots. BUG=358431 Review URL: https://codereview.chromium.org/231793003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264477 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor around start up of the plugin.hidehiko@chromium.org2014-04-091-3/+9
| | | | | | | | | | | | | | | | | | | | | | 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
* This proxies PPB_Find_Dev so that it can be used out of process. It also ↵raymes@google.com2014-03-201-0/+2
| | | | | | | | | | | 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
* Connect PPAPI IPC channels for non-SFI mode.hidehiko@chromium.org2014-02-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-211-2/+1
| | | | | | 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-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [PPAPI][MediaStream] Rename AudioFrame to AudioBufferpenghuang@chromium.org2014-02-111-2/+2
| | | | | | | | | | | | For audio, a frame usually has the same meaning as sample, so AudioFrame is not a good name for a bunch of audio samples. Change it to AudioBuffer. BUG=330851 Review URL: https://codereview.chromium.org/156863005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250460 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: Move irt_ppapi.{c,h} to the Chromium repo from the NaCl repomseaborn@chromium.org2014-02-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This will allow irt_ppapi.{c,h} to be dropped from the NaCl side. Until then, there are two copies, and which copy gets linked in will depend on library search order. This creates a new directory, ppapi/nacl_irt/, for irt_ppapi.h since it defines structs that are part of NaCl's stable ABI. This new directory is therefore similar to ppapi/c/, but covers how PPAPI is hooked up in NaCl. This also avoids any checkdeps problems with #including from ppapi/proxy/. I made the following changes to irt_ppapi.{c,h} when moving them: * Changed "*" spacing to follow Chromium style. * Added a comment for the assignment to "g_is_main_thread". BUG= https://code.google.com/p/nativeclient/issues/detail?id=3787 TEST= tested browser_tests with irt_ppapi.c removed from the NaCl side Review URL: https://codereview.chromium.org/136333013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250319 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy the PDF API to the PDF plugin.koz@chromium.org2014-02-061-0/+2
| | | | | | | | This makes the Rotate Clockwise / Counterclockwise context menu items work. Review URL: https://codereview.chromium.org/142413006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249366 0039d316-1c4b-4281-b951-d872f2087c98
* [PPAPI] Pepper MediaStream API audio track implementation and example.penghuang@chromium.org2014-02-061-0/+4
| | | | | | | | | | TBR=jamesr@chromium.org BUG=330851 Review URL: https://codereview.chromium.org/140783004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249245 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Implement PPB_FileMapping on POSIXdmichael@chromium.org2014-01-291-4/+8
| | | | | | | | | | | BUG=83774 R=bbudge@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247473 Review URL: https://codereview.chromium.org/69663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247546 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 247473 "PPAPI: Implement PPB_FileMapping on POSIX"dmichael@chromium.org2014-01-281-8/+4
| | | | | | | | | | | | | | | > PPAPI: Implement PPB_FileMapping on POSIX > > BUG=83774 > R=bbudge@chromium.org > > Review URL: https://codereview.chromium.org/69663002 TBR=dmichael@chromium.org Review URL: https://codereview.chromium.org/144383006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247477 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Implement PPB_FileMapping on POSIXdmichael@chromium.org2014-01-281-4/+8
| | | | | | | | | BUG=83774 R=bbudge@chromium.org Review URL: https://codereview.chromium.org/69663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247473 0039d316-1c4b-4281-b951-d872f2087c98
* Proxy private UMA pepper interface for out-of-process and NaCl plugins.elijahtaylor@chromium.org2014-01-241-0/+2
| | | | | | | | BUG=317833 Review URL: https://codereview.chromium.org/61643022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246962 0039d316-1c4b-4281-b951-d872f2087c98
* [PPAPI] Implement media stream video track APIpenghuang@chromium.org2014-01-161-0/+6
| | | | | | | | BUG=330851 Review URL: https://codereview.chromium.org/128683003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245150 0039d316-1c4b-4281-b951-d872f2087c98
* Support using TrackedCallbacks as hints to determine the handling thread of ↵yzshen@chromium.org2013-12-121-0/+2
| | | | | | | | | | | resource reply messages. BUG=269737 TEST=None Review URL: https://codereview.chromium.org/46433002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240282 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Generalize PPB_Ext_CrxFileSystem as PPB_IsolatedFileSystemnhiroki@chromium.org2013-11-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | This change generalizes PPB_Ext_CrxFileSystem_Private, built on the isolated filesystem, so that we can easily reuse its components when introducing new isolated filesystem in PPAPI. This adds PPB_IsolatedFileSystem_Private API and enum indicating isolated filesystem type. PPB_Ext_CrxFileSystem_Private API is still remaining since some plugins may use the API. Both API share pepper resource and host implementations. BUG=286242 TEST=manual (see [1] and [2]) TBR=cpu@chromium.org [1] https://code.google.com/p/chromium/issues/detail?id=271126#c7 [2] https://codereview.chromium.org/59203002/ Review URL: https://codereview.chromium.org/51653004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233807 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper API implementation for output protection.kcwu@chromium.org2013-09-281-0/+2
| | | | | | | | | BUG=256538 R=cpu@chromium.org, dalecurtis@chromium.org, dmichael@chromium.org, marcheu@chromium.org, wuchengli@chromium.org Review URL: https://codereview.chromium.org/24039002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225849 0039d316-1c4b-4281-b951-d872f2087c98
* [PPAPI] ResourceVar now reference counts its Resource in the plugin.mgiuca@chromium.org2013-09-231-0/+2
| | | | | | | | | | | | | | | | | | ResourceVar is now an abstract base class with subclasses HostResourceVar and PluginResourceVar. The PluginResourceVar has a reference counted Resource instead of a PP_Resource. VarTracker has MakeResourceVar and MakeResourcePPVar methods, to abstract over the creation of a resource var of the correct subclass. Also, the creation_message is now NULL when empty, instead of being an empty message object. BUG=290713 Review URL: https://chromiumcodereview.appspot.com/23809016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224717 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Move FileRef to the "new" resource proxy.teravest@chromium.org2013-09-181-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change moves the FileRef implementation from the previous one in the "old" resource model (ppb_file_ref_impl.cc) to the "new" resource model (pepper_file_ref_host.cc), and from the renderer to the browser. As many as possible of the supporting changes were split off to other changes to minimize the size of this change. Unfortunately, a lot of changes for URLLoader had to be rolled into this change. The data structures for CreateInfo have changed, and all users of FileRef have to be moved over, which is what causes this change to be so large. TBR=dmichael@chromium.org, jschuh@chromium.org, yzshen@chromium.org BUG=225441 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216744 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218305 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219911 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221284 Review URL: https://chromiumcodereview.appspot.com/21966004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223963 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper API implementation for platform verification.dalecurtis@chromium.org2013-09-171-0/+4
| | | | | | | | | | | | | | | Plumbs all relevant sections of the PPAPI portions of the API for ChromeOS only. The test is currently disabled pending changes to implement the UI portions of this feature. BUG=270294 TEST=browser_tests --gtest_filter=*PlatformVerification* TBR=mnissler Review URL: https://chromiumcodereview.appspot.com/23523028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223687 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify PPB_NetworkMonitor proxy.sergeyu@chromium.org2013-09-171-2/+4
| | | | | | | | | | | | | | | | | | The new proxy is based on ppapi::proxy::PluginResource and ppapi::host::ResourceHost which simplifies code significantly. Also the permission check is consistent with socket APIs now. BUG=281781 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223482 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223494 R=brettw@chromium.org, yzshen@chromium.org Review URL: https://codereview.chromium.org/23819033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223535 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r223494 "Simplify PPB_NetworkMonitor proxy."sergeyu@chromium.org2013-09-171-4/+2
| | | | | | | | | TBR=sergeyu@chromium.org BUG=281781 Review URL: https://codereview.chromium.org/23514062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223497 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify PPB_NetworkMonitor proxy.sergeyu@chromium.org2013-09-171-2/+4
| | | | | | | | | | | | | | The new proxy is based on ppapi::proxy::PluginResource and ppapi::host::ResourceHost which simplifies code significantly. Also the permission check is consistent with socket APIs now. BUG=281781 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223482 Review URL: https://chromiumcodereview.appspot.com/23819033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223494 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 223482 "Simplify PPB_NetworkMonitor proxy."ikarienator@chromium.org2013-09-171-4/+2
| | | | | | | | | | | | | | | | | | > Simplify PPB_NetworkMonitor proxy. > > The new proxy is based on ppapi::proxy::PluginResource and > ppapi::host::ResourceHost which simplifies code significantly. Also > the permission check is consistent with socket APIs now. > > BUG=281781 > > Review URL: https://chromiumcodereview.appspot.com/23819033 TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/23463037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223484 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify PPB_NetworkMonitor proxy.sergeyu@chromium.org2013-09-171-2/+4
| | | | | | | | | | | | The new proxy is based on ppapi::proxy::PluginResource and ppapi::host::ResourceHost which simplifies code significantly. Also the permission check is consistent with socket APIs now. BUG=281781 Review URL: https://chromiumcodereview.appspot.com/23819033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223482 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 221284 "Pepper: Move FileRef to the "new" resource proxy."teravest@chromium.org2013-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Pepper: Move FileRef to the "new" resource proxy. > > This change moves the FileRef implementation from the previous one in the "old" > resource model (ppb_file_ref_impl.cc) to the "new" resource model > (pepper_file_ref_host.cc), and from the renderer to the browser. > > As many as possible of the supporting changes were split off to other changes > to minimize the size of this change. Unfortunately, a lot of changes for > URLLoader had to be rolled into this change. > > The data structures for CreateInfo have changed, and all users of FileRef have > to be moved over, which is what causes this change to be so large. > > TBR=dmichael@chromium.org, jschuh@chromium.org, yzshen@chromium.org > BUG=225441 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216744 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218305 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219911 > > Review URL: https://codereview.chromium.org/21966004 TBR=teravest@chromium.org Review URL: https://codereview.chromium.org/23647008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221544 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Move FileRef to the "new" resource proxy.teravest@chromium.org2013-09-041-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This change moves the FileRef implementation from the previous one in the "old" resource model (ppb_file_ref_impl.cc) to the "new" resource model (pepper_file_ref_host.cc), and from the renderer to the browser. As many as possible of the supporting changes were split off to other changes to minimize the size of this change. Unfortunately, a lot of changes for URLLoader had to be rolled into this change. The data structures for CreateInfo have changed, and all users of FileRef have to be moved over, which is what causes this change to be so large. TBR=dmichael@chromium.org, jschuh@chromium.org, yzshen@chromium.org BUG=225441 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216744 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218305 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219911 Review URL: https://codereview.chromium.org/21966004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221284 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 219911 "Pepper: Move FileRef to the "new" resource proxy."teravest@chromium.org2013-08-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There have been multiple test failures among users of the CRX filesystem, which is not adequately tested by existing tests. I'm not sure at all what's broken, but I guess I'll have to do manual testing to sort it out. > Pepper: Move FileRef to the "new" resource proxy. > > This change moves the FileRef implementation from the previous one in the "old" > resource model (ppb_file_ref_impl.cc) to the "new" resource model > (pepper_file_ref_host.cc), and from the renderer to the browser. > > As many as possible of the supporting changes were split off to other changes > to minimize the size of this change. Unfortunately, a lot of changes for > URLLoader had to be rolled into this change. > > The data structures for CreateInfo have changed, and all users of FileRef have > to be moved over, which is what causes this change to be so large. > > TBR=dmichael@chromium.org, jschuh@chromium.org, yzshen@chromium.org > BUG=225441 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216744 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218305 > > Review URL: https://chromiumcodereview.appspot.com/21966004 TBR=teravest@chromium.org Review URL: https://codereview.chromium.org/23462016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220165 0039d316-1c4b-4281-b951-d872f2087c98
* TCPSockets are switched to the new Pepper proxy.ygorshenin@chromium.org2013-08-281-7/+11
| | | | | | | | | BUG=230784 TEST=browser_tests:*TCPSocket*, *TCPServerSocket* Review URL: https://chromiumcodereview.appspot.com/22923014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220073 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Move FileRef to the "new" resource proxy.teravest@chromium.org2013-08-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | This change moves the FileRef implementation from the previous one in the "old" resource model (ppb_file_ref_impl.cc) to the "new" resource model (pepper_file_ref_host.cc), and from the renderer to the browser. As many as possible of the supporting changes were split off to other changes to minimize the size of this change. Unfortunately, a lot of changes for URLLoader had to be rolled into this change. The data structures for CreateInfo have changed, and all users of FileRef have to be moved over, which is what causes this change to be so large. TBR=dmichael@chromium.org, jschuh@chromium.org, yzshen@chromium.org BUG=225441 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216744 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218305 Review URL: https://chromiumcodereview.appspot.com/21966004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219911 0039d316-1c4b-4281-b951-d872f2087c98