summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/resource_creation_proxy.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add a new parameter |latency| to PPB_Audio.yzshen@chromium.org2013-09-061-2/+12
| | | | | | | | | | | This CL updates the version of PPB_Audio and PPB_Audio_Callback. BUG=240900 TEST=updated test_audio.{h,cc} Review URL: https://chromiumcodereview.appspot.com/22320004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221788 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback.sergeyu@chromium.org2013-09-061-6/+3
| | | | | | | | | | | | | Previously NetworkMonitor required that a callback is passed to the Create() method. It was hard to use and inconsistent with other APIs. Added new UpdateNetworkList() method which accepts a CompletionCallback to be called when network list changes. BUG=281781 Review URL: https://chromiumcodereview.appspot.com/23453025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221582 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 221284 "Pepper: Move FileRef to the "new" resource proxy."teravest@chromium.org2013-09-051-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > 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-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+5
| | | | | | | | | 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-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Pepper: Fix FileSystemBrowserHost for isolated fs.teravest@chromium.org2013-08-261-9/+0
| | | | | | | | | | | | | | | | | | Currently the PepperFileSystemBrowserHost doesn't have a sane filesystem context for isolated file systems. This was causing some crashes in an application that used a CRX filesystem, which caused the FileRef change to be reverted. This was hard to debug because it was causing a browser crash; I cleaned up the code in PepperInternalFileRefBackend to behave better when there's no file system context. TBR=jschuh BUG=225441 Review URL: https://chromiumcodereview.appspot.com/22867028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219584 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 218305 "Pepper: Move FileRef to the "new" resource proxy."teravest@chromium.org2013-08-201-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is being reverted because it was causing some crashes for an application that I haven't been able to debug yet. > 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 > > Review URL: https://chromiumcodereview.appspot.com/21966004 TBR=teravest@chromium.org Review URL: https://codereview.chromium.org/22901012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218544 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Move FileRef to the "new" resource proxy.teravest@chromium.org2013-08-191-9/+4
| | | | | | | | | | | | | | | | | | | | | | 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 Review URL: https://chromiumcodereview.appspot.com/21966004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218305 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 216744 "Pepper: Move FileRef to the "new" resource proxy."yzshen@chromium.org2013-08-121-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | > 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 > > Review URL: https://codereview.chromium.org/21966004 TBR=teravest@google.com Review URL: https://codereview.chromium.org/22903002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217036 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Move FileRef to the "new" resource proxy.teravest@chromium.org2013-08-091-9/+4
| | | | | | | | | | | | | | | | | | | | 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 Review URL: https://codereview.chromium.org/21966004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216744 0039d316-1c4b-4281-b951-d872f2087c98
* Switched proxy for TCPServerSocketPrivate.ygorshenin@chromium.org2013-08-051-2/+3
| | | | | | | | | BUG=230784 TEST=browser_tests:*TCPServerSocketPrivate Review URL: https://chromiumcodereview.appspot.com/19005006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215597 0039d316-1c4b-4281-b951-d872f2087c98
* move BrowserFontResource_Trusted to content/childscottmg@chromium.org2013-07-251-5/+2
| | | | | | | | | | | | | | | Needed to break dependency of ppapi_proxy on webkit code. resource_creation_proxy now creates BrowserFontResource_Trusted by going through PluginGlobals -> PluginProxyDelegate implemented in content by PpapiThread. R=jam@chromium.org, yzshen@chromium.org BUG=237249 Review URL: https://codereview.chromium.org/20214004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213684 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPB_NetAddress out of dev.yzshen@chromium.org2013-06-221-2/+2
| | | | | | | | | BUG=247225 TEST=None Review URL: https://chromiumcodereview.appspot.com/17419008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208080 0039d316-1c4b-4281-b951-d872f2087c98
* Remove hand written code from autogenerated Pepper ImageData thunk.bbudge@chromium.org2013-06-201-3/+22
| | | | | | | | | | | | | Autogenerate ppb_image_data_thunk.cc and make changes to resource creation API to allow Simple and PlatformImageData resources to be specified. BUG=none TEST=browser_tests, --gtest_filter="PPAPINaClPNaClTest.ImageData" Review URL: https://chromiumcodereview.appspot.com/17286011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207384 0039d316-1c4b-4281-b951-d872f2087c98
* Add NaCl proxies for Pepper Video Source and Destination resources.bbudge@chromium.org2013-06-201-11/+11
| | | | | | | | | | | I need to add whitelist testing to prevent arbitrary NaCl apps from using these resources. BUG=230980 TEST=browser_tests, --gtest_filter="PPAPINaClPNaClTest.Video*" Review URL: https://chromiumcodereview.appspot.com/16335018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207348 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_HostResolver_Dev.yzshen@chromium.org2013-06-141-0/+5
| | | | | | | | | | | | | This change exposes the PPB_HostResolver_Dev interface and makes it to share the same backend as PPB_HostResolver_Private. It doesn't include apps permission check, which will be implemented in separate CLs. BUG=247225 TEST=newly added test_host_resolver.{h,cc}. Review URL: https://chromiumcodereview.appspot.com/16727002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206321 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_UDPSocket_Dev.yzshen@chromium.org2013-06-131-0/+5
| | | | | | | | | | | | | | | | This change exposes the PPB_UDPSocket_Dev interface and makes it to share the same backend as PPB_UDPSocket_Private. It doesn't include: - apps permission check; - UDP socket options that PPB_UDPSocket_Private doesn't support. These will be implemented in separate CLs. BUG=247225 TEST=newly added test_udp_socket.{h,cc}. Review URL: https://chromiumcodereview.appspot.com/16282005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206183 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_TCPSocket_Dev.yzshen@chromium.org2013-06-131-0/+13
| | | | | | | | | | | | | | | | This change exposes the PPB_TCPSocket_Dev interface and makes it to share the same backend as PPB_TCPSocket_Private. It doesn't include: - apps permission check; - TCP socket options that PPB_TCPSocket_Private doesn't support. These will be implemented in separate CLs. BUG=247225 TEST=newly added test_tcp_socket.{h,cc}. Review URL: https://chromiumcodereview.appspot.com/16667002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206014 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up Pepper ImageData resource class.bbudge@chromium.org2013-06-121-13/+4
| | | | | | | | | | | | | | | -This change introduces an abstract ImageData class, and two subclasses. -PlatformImageData allows access to the platform-specific canvas and handles. -SimpleImageData is platform independent, suitable for use in the NaCl proxy. -Also changes ImageData creation messages to use PP_ImageDataDesc instead of serializing to std::string. -Remove NaCl-isms in naming. BUG=230980 Review URL: https://chromiumcodereview.appspot.com/16605006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205681 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PPB_NetAddress_Dev.yzshen@chromium.org2013-06-101-0/+15
| | | | | | | | | BUG=247225 TEST=Newly added tests. Review URL: https://chromiumcodereview.appspot.com/16331007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205176 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused CreateURLResponseInfo function.teravest@chromium.org2013-06-041-9/+0
| | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/16336013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204024 0039d316-1c4b-4281-b951-d872f2087c98
* Update ppapi/ to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-06-021-3/+3
| | | | | | | | | | | Linux fixes BUG=110610 TBR=darin Review URL: https://chromiumcodereview.appspot.com/15806016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203629 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused trusted interfaces.piman@chromium.org2013-06-011-1/+0
| | | | | | | | | | | | | Several trusted interfaces were originally used internally by the IPC proxy and the NaCl srpc proxy. The IPC proxy switched to using C++ *_API classes directly, and the srpc proxy is no more, so there's no user of these anymore. BUG=None Review URL: https://chromiumcodereview.appspot.com/16253003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203526 0039d316-1c4b-4281-b951-d872f2087c98
* Rename PPB_Flash_DeviceID interface to PPB_Flash_DRMraymes@chromium.org2013-05-251-3/+3
| | | | | | | | | | | This is mainly a mechanical change to rename PPB_Flash_DeviceID to PPB_Flash_DRM. It deprecates the old interface. The reason is that we will be adding more DRM-related APIs and it makes sense to put them into a single interface. BUG=242241 TBR=brettw for chrome_browser.gypi Review URL: https://chromiumcodereview.appspot.com/15491006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202286 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of URLLoader using PluginResource/ResourceHost.bbudge@chromium.org2013-05-161-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is essentially the same as: https://codereview.chromium.org/11416363 Here's the description from that CL: "This doesn't use the resource call/reply infrastructure, but rather pipes WebKit callbacks to the plugin via unsolicited callbacks. This eliminates state tracking in the host which makes things simpler. This fixes some bugs in Close() as well to fix the below-mentioned bug." Other things contained in the original CL: - Add a GetPluginPID method to RendererPpapiHost. This is needed when the loader host Opens() a request. - Add a HandleDocumentLoad method to PluginDelegate and implements it in PepperPluginDelegateImpl. This creates the host for both in- and out-of-process proxies. - Removes the GetURLLoaderBufferedBytes function from the PPB_Proxy_Private interface. - Removes the HandleDocumentLoad implementation in the PPP_Instance_Proxy class. - Removes the document_loader_ field from webkit::ppapi::WebPluginImpl and changes the implementation to forward document load notifications to the PluginInstance. - Changes the PluginInstance to manage the document loader. This CL differs from the original in two ways. First, the trusted interface keeps the RegisterStatusCallback function. The NaCl plugin relies on this to generate progress messages back to the embedding page. Second, PluginInstance is changed to recognize when it's a NaCl instance, and to defer calling the plugin delegate's HandleDocumentLoad method until after the proxy is switched. In the meantime, it saves document events in a special loader object. When the proxy is switched, the delegate's HandleDocumentLoad method is called and the response and document events are then replayed through the new loader resource. BUG=69457 R=brettw@chromium.org Review URL: https://codereview.chromium.org/14371021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200412 0039d316-1c4b-4281-b951-d872f2087c98
* CRX FileSystem Pepper private APIvictorhsieh@chromium.org2013-05-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | pp::ExtCrxFileSystemPrivate is introduced in this change to allow plugin to mount (readonly) CRX extension directory as a filesystem. Files can be access through pp::ExtCrxFileRefPrivate (which is a subclass of pp::FileRef) just like normal file, and the path would look like "/manifest.json". See ppapi/example/crxfs for example. Some keypoints in this change: * pepper resource/host architecture: - please refer to ppapi/proxy/ext_crx_file_system_private_resource.h. * webkit/fileapi related: - Changes run in browser - Isoloated filesystem is the underlying filesystem - Grant read permission to corresponding renderer of the plugin - See chrome/browser/renderer_host/pepper/pepper_ext_crx_file_system_browser_host.cc * extension related: - Changes run in browser - This is for getting extension installed directory to mount TEST=out/Debug/chrome --register-pepper-plugins="out/Debug/lib/libppapi_example_crxfs.so#PPAPI Tests##1.2.3;application/x-ppapi-example-crxfs" \ ppapi/examples/crxfs/crxfs.html BUG=223301 Review URL: https://chromiumcodereview.appspot.com/14188019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198938 0039d316-1c4b-4281-b951-d872f2087c98
* Adds internal APIs, thunks, resources, and resource hosts.bbudge@chromium.org2013-05-041-0/+13
| | | | | | | | | | | | | | Adds IPC messages to support the new resources. Adds stubbed out host methods to hold implementation TBR=tsepez@chromium.org, yzshen@chromium.org BUG=230980 TESTS=none Review URL: https://codereview.chromium.org/13771020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198258 0039d316-1c4b-4281-b951-d872f2087c98
* Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntrieshamaji@chromium.org2013-05-031-8/+0
| | | | | | | | | | | | | | | | | This also means this API becomes a stable API. While DirectoryReader was using the new pepper proxy API, FileRef is using the old one. As updating FileRef would take some time, the implementation of ReadEntries is converted from the new design to the old one for now. BUG=234513 TEST=browser_tests R=avi@chromium.org, binji@chromium.org, dmichael@chromium.org, palmer@chromium.org, raymes@chromium.org, teravest@chromium.org Review URL: https://codereview.chromium.org/14784002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198204 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_Graphics2D.teravest@chromium.org2013-04-301-2/+2
| | | | | | | | | | | | | | This change fixes a typo in the IDL, and cleans up the API a little bit so we can generate a thunk for it. The implementation in webkit is vestigal and was removed. Tested: browser_tests --gtest_filter="*Graphics2D*" BUG= Review URL: https://chromiumcodereview.appspot.com/14335005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197409 0039d316-1c4b-4281-b951-d872f2087c98
* Autogenerate thunk for PPB_ImageData.teravest@chromium.org2013-04-261-3/+3
| | | | | | | | | | | | | | | | | | This changes idl_thunk.py to use functions from ppapi/shared_impl when the first argument to a function is not PP_Instance or PP_Resource. This pattern seems to be used in multiple IDL files. I also needed to clean up the APIs a bit so the function signatures matched up with what idl_thunk.py emits. Tested: Built chrome and browser_tests. BUG= Review URL: https://chromiumcodereview.appspot.com/14060022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196571 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_TrueTypeFont.teravest@chromium.org2013-04-161-2/+2
| | | | | | | | | | | This makes a few changes to IDL annotations: * 'singleton_resource' is now 'singleton' and can be per-function or per-interface. * There is a new 'API' annotation that describes when a specific API should be used for a function. * There is a 'thunk_include' annotation for when a header file must be included in the thunk output, but we can't guess it. Review URL: https://codereview.chromium.org/13820003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194445 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FileSystem.victorhsieh@chromium.org2013-04-121-4/+6
| | | | | | | | | | | | | | | | | | | Add global FileSystem registry for new FileSystem Support later. New file system will need to implement PepperFileSystemRegistry::FileSystemPeeker for FileRef to access. Due to the fact that 1) FileSystem and FileRef are tightly couple, 2) we wants to move both of them to browser together, there are two temporary changes in this CL. 1. webkit/plugins/ppapi/ppb_file_ref_impl.cc needs some delegation to access content::PepperFileSystemHost. The delegation code should be removed after FileRef is moved to content. 2. PepperFileSystemHost stays in renderer for now, and will be moved to browser together in the FileRef refactoring. Also, NullFileSystemCallbackDispatcher is added with default NOTREACHED callbacks. TEST=browser_tests --gtest_filter='*PPAPI*.*File*' BUG=227033 Review URL: https://chromiumcodereview.appspot.com/13726024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193995 0039d316-1c4b-4281-b951-d872f2087c98
* Enable PPB_DirectoryReader_Dev under NaClnhiroki@chromium.org2013-04-051-7/+7
| | | | | | | | TEST=browser_tests --gtest_filter=\*DirectoryReader\* Review URL: https://chromiumcodereview.appspot.com/13643004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192517 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper IDL: Autogenerate thunk for FileChooser.teravest@chromium.org2013-03-291-2/+4
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/13317002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191411 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper: Autogenerate thunk for PPB_URLRequestInfo.teravest@chromium.org2013-03-291-4/+3
| | | | | | | | | | | | | | This required tweaking the resource creation functions so that we don't have to do that work in the thunk anymore. Tested by building chrome and browser_tests. BUG= Review URL: https://chromiumcodereview.appspot.com/12812025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191258 0039d316-1c4b-4281-b951-d872f2087c98
* Add Pepper TrueType font API plumbing.bbudge@chromium.org2013-03-161-0/+9
| | | | | | | | | | | | | | | | | Adds Font resource and host, font singleton resource and host. Adds PPAPI IPC messages to communicate with renderer and browser. Adds Browser process font listing helper class abstraction and impls for Windows, Mac, and Linux. Font family enumeration is done in the browser process and is a rework of the trusted BrowserFont API. Adds Renderer process font helper class abstraction and impl stubs. Font operations are done in the renderer process because of Linux sandbox restrictions. BUG=79375 Review URL: https://chromiumcodereview.appspot.com/12600019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188576 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Pepper proxy for PPB_DirectoryReadernhiroki@chromium.org2013-02-131-2/+4
| | | | | | | | | | | | | | This patch includes: - Adding proxy implementation (DircetoryReaderResource and PepperDirectoryReaderHost) - Merging PPB_DirectoryReader_impl into PepperDirectoryReaderHost BUG=106129 TEST=browser_tests --gtest_filter=\*DirectoryReader\* Review URL: https://chromiumcodereview.appspot.com/11958033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182189 0039d316-1c4b-4281-b951-d872f2087c98
* PPB_HostResolver_Private is switched to the new Pepper proxy.ygorshenin@chromium.org2013-02-121-2/+3
| | | | | | | | | | | Blocked on https://chromiumcodereview.appspot.com/11434042. BUG=163861 TEST=browser_tests:*HostResolverPrivate* Review URL: https://chromiumcodereview.appspot.com/11411357 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181908 0039d316-1c4b-4281-b951-d872f2087c98
* PPB_UDPSocket_Private is switched to the new Pepper proxy.ygorshenin@chromium.org2013-01-211-2/+3
| | | | | | | | | | BUG=164370 TEST=browser_tests:*UDPSocketPrivate* Review URL: https://chromiumcodereview.appspot.com/11441012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177915 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FileIO to the new resource host system.bbudge@chromium.org2013-01-191-2/+2
| | | | | | | | | | | | | | | | | | Taking over from Victor's CL: https://codereview.chromium.org/11419131/ Re-landing, with a fix. The original waited to reset the file state until after the callback had completed. This is too late, as the client should be able to perform another file operation during the callback. Changeset #1 is the original patch. The fix is in change set #2 Original author=Victor Hsieh BUG=none TEST=browser_tests --gtest_filter=PPAPINaClNewlibTest.FileIO* Review URL: https://chromiumcodereview.appspot.com/11941022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177830 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 176792dpapad@chromium.org2013-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | Caused PP_ERROR_INPROGRESS when used from within Native Client. > Refactor FileIO to the new resource host system. > Taking over from Victor's CL: https://codereview.chromium.org/11419131/ > > GetOSDescriptor is done by passing raw file descriptor via in-process messaging. > > Operations are kept exclusive, but the restriction can be easily removed if needed. > > Original author=Victor Hsieh > BUG= > TEST=browser_tests --gtest_filter=PPAPINaClNewlibTest.FileIO* > > Review URL: https://chromiumcodereview.appspot.com/11824039 TBR=bbudge@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177287 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FileIO to the new resource host system.bbudge@chromium.org2013-01-151-2/+2
| | | | | | | | | | | | | | | | Taking over from Victor's CL: https://codereview.chromium.org/11419131/ GetOSDescriptor is done by passing raw file descriptor via in-process messaging. Operations are kept exclusive, but the restriction can be easily removed if needed. Original author=Victor Hsieh BUG= TEST=browser_tests --gtest_filter=PPAPINaClNewlibTest.FileIO* Review URL: https://chromiumcodereview.appspot.com/11824039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176792 0039d316-1c4b-4281-b951-d872f2087c98
* Convert flash font file to use the browser font trusted code.brettw@chromium.org2012-12-101-1/+1
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/11470026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172188 0039d316-1c4b-4281-b951-d872f2087c98
* Migrate Graphics2D to new design, as part of the whole Pepper resource redesign.brettw@chromium.org2012-11-291-3/+3
| | | | | | | | | | | | | | | | New design provides higher performance and involves writing much less code. See the pepper implementation doc for detail. http://www.chromium.org/developers/design-documents/pepper-plugin-implementation TODO: Inline impl to PepperGraphics2DHost Original review URL: https://codereview.chromium.org/11053003/ Patch by Victor Hsieh R = brettw, Cris Neckar Review URL: https://codereview.chromium.org/11414171 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170225 0039d316-1c4b-4281-b951-d872f2087c98
* Convert the Pepper Talk API to use the new resource system.brettw@chromium.org2012-11-281-2/+2
| | | | | | | | | | | | | This uses the new resource call/reply system and removes the special casing for the messages in the PPAPI plugin and the special filter attached to all child process hosts. This also adds permissions checking (it requires private permissions to use this API). BUG= Review URL: https://codereview.chromium.org/11359147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170017 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper proxy: make the browser sender handle the proxy lock properly.yzshen@chromium.org2012-11-271-4/+1
| | | | | | | | | | | | | - unlock the pepper proxy lock when sending sync messages to the browser; - remove the SendToBrowser() method from the PluginProxyDelegate; TEST=None BUG=161286 Review URL: https://chromiumcodereview.appspot.com/11299147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169781 0039d316-1c4b-4281-b951-d872f2087c98
* Add more 'Dev' interfaces to the NaCl IPC proxy.bbudge@chromium.org2012-11-271-4/+4
| | | | | | | | | BUG=116317 TEST=none Review URL: https://chromiumcodereview.appspot.com/11412184 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169721 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BrowserFont to new designvictorhsieh@chromium.org2012-11-271-3/+5
| | | | | | | | | TEST=browser_tests,ppapi/example/font BUG= Review URL: https://chromiumcodereview.appspot.com/11316161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169611 0039d316-1c4b-4281-b951-d872f2087c98