Pepper: add quota_amount and max_written_offset fields to SerializedHandle.
commit80f8f849be55037a30f8535c323650e49785907e
authorbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 18 Dec 2013 22:47:57 +0000 (18 22:47 +0000)
committerbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 18 Dec 2013 22:47:57 +0000 (18 22:47 +0000)
tree79539463288a9e6d2da2e160410afd4b732934ff
parent0403edcbbc0703083a36f14b62a17ae960fd17e7
Pepper: add quota_amount and max_written_offset fields to SerializedHandle.
This field will be non-zero if the file is contained in a file system that
requires quota checks. This will be used by the NaCl PPAPI proxy to
verify that file writes respect quota.

The NaClQuotaAmount class is defined which is thread safe ref-counted, so
multiple file descriptors can modify quota amounts.

BUG=194304

Review URL: https://codereview.chromium.org/60733002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241691 0039d316-1c4b-4281-b951-d872f2087c98
components/nacl/loader/nacl_ipc_adapter.cc
content/browser/renderer_host/pepper/pepper_file_io_host.cc
ppapi/proxy/ppapi_param_traits.cc
ppapi/proxy/serialized_handle.cc
ppapi/proxy/serialized_handle.h