summaryrefslogtreecommitdiffstats
path: root/webkit/browser/fileapi/file_system_quota_util.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert Media Galleries to use base::Filervargas@chromium.org2014-01-271-2/+2
| | | | | | | | | | | | | | | Unfortunately, this brings in changes to webkit/browser/fileapi, and once that changes, a lot of files have to be updated. The bright side is that most of the collateral changes are just trivial renaming of PlatformFileError -> File::Error and PlatformFileInfo -> File::Info BUG=322664 Review URL: https://codereview.chromium.org/145303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247301 0039d316-1c4b-4281-b951-d872f2087c98
* FileAPI: Rename *OnFileThread to *OnFileTaskRunnernhiroki@chromium.org2013-12-201-7/+9
| | | | | | | | | | | | | | | This renames *OnFileThread methods to *OnFileTaskRunner because now they run not on FILE thread but on file_task_runner. And also adds some DCHECK for checking valid task_runner into SandboxFileSystemBackendDelegate. BUG=n/a TEST=n/a TBR=michaeln@chromium.org,phajdan.jr@chromium.org Review URL: https://codereview.chromium.org/101393006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242072 0039d316-1c4b-4281-b951-d872f2087c98
* Quota: Wire up between QuotaReservationManager and FileSystemContextnhiroki@chromium.org2013-11-121-0/+7
| | | | | | | | | | | | | | | | This change includes: - Wiring up between QuotaReservationManager and FileSystemContext - Adding a new interface into FileSystemQuotaUtil - Exposing FileSystemContext::CreateQuotaReservationOnFileTaskRunner as an entry point of the quota reservation. BUG=303443 TEST=n/a Review URL: https://codereview.chromium.org/66173003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234559 0039d316-1c4b-4281-b951-d872f2087c98
* FileAPI: Implement FileSystemQuotaUtil on SandboxFileSystemBackendDelegatenhiroki@chromium.org2013-08-221-0/+3
| | | | | | | | | | | | | | | | | This makes SandboxFileSystemBackendDelegate to implement FileSystemQuotaUtil instead of Sandbox/SyncFileSystemBackend so that it can remove a thin layer from those backends. And also moves common implementations of FileSystemBackend (e.g. CreateFileStreamReader()) into the delegate. BUG=272078 TEST=unit_tests, content_unittests Review URL: https://chromiumcodereview.appspot.com/22821006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218987 0039d316-1c4b-4281-b951-d872f2087c98
* FileAPI: Remove unnecessary interfaces from FileSystemQuotaUtilnhiroki@chromium.org2013-08-141-5/+0
| | | | | | | | | | | | | | | | | This removes unnecessary interfaces (InvalidateUsageCache and StickyInvalidateUsageCache) from FileSystemQuotaUtil. Current implementation calls usage-cache related functions of SandboxContext via Sandbox/SyncFileSystembackend, but actually it's possible to call them directly. BUG=272078 TEST=pass all existing tests (no behavioral change) Review URL: https://chromiumcodereview.appspot.com/22818004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217495 0039d316-1c4b-4281-b951-d872f2087c98
* FileAPI: Add FileObserver related interfaces into FileSystemQuotaUtilnhiroki@chromium.org2013-07-121-0/+20
| | | | | | | | | | | | | | | | | | This change adds FileObserver related interfaces into FileSystemQuotaUtil and adapts existing functions in SandboxFileSystemBackend and TestFileSystemBackend to them. These functions are used only in sandbox filesystem and we are moving all of those kinds of functions to FileSystemQuotaUtil so that other backends don't have to take care of them. BUG=242422 TEST=content_unittests R=kinuko@chromium.org, tzik@chromium.org Review URL: https://codereview.chromium.org/18418009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211332 0039d316-1c4b-4281-b951-d872f2087c98
* webkit: Migrate from googleurl/ includes to url/ ones.tfarina@chromium.org2013-06-291-1/+1
| | | | | | | | | BUG=229660 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/18191004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209316 0039d316-1c4b-4281-b951-d872f2087c98
* Don't assume sandbox_provider() handles all sandboxed filesystemskinuko@chromium.org2013-06-181-0/+9
| | | | | | | | | | | | | | | | | | - Moves DeleteOriginDataOnFileThread() method to QuotaUtil interface (from SandboxMountPointProvider) - Changes FileSystemContext::DeleteDataForOriginOnFileThread not to directly call sandbox_provider()->DeleteOriginDataOnFileThread but calls the QuotaUtil's DeleteOriginDataOnFileThread method if the provider returns non-null QuotaUtil. More changes are coming, this is fixing the easiest part. BUG=250791 TEST=unit_test:BrowsingDataFileSystemHelperTest.* Review URL: https://chromiumcodereview.appspot.com/17083003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206997 0039d316-1c4b-4281-b951-d872f2087c98
* Fix webkit_storage exports definitionskinuko@chromium.org2013-06-131-2/+2
| | | | | | | | | | | | Also removes webkit/storage/* BUG=239109 R=tzik@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/16701004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205996 0039d316-1c4b-4281-b951-d872f2087c98
* Split FileAPI code for common|common_child|rendererkinuko@chromium.org2013-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Move following files from content/common to content/common_child: - webfilesystem_callback_adapters.* - webfilesystem_impl.* - webfilewriter_impl.* Move following files from webkit/fileapi to webkit/common/fileapi: - directory_entry.h - file_system_types.h - file_system_url* - file_system_util* Move following files from webkit/fileapi to webkit/renderer/fileapi: - webfilewriter_base* BUG=239710 TBR=jamesr@chromium.org Review URL: https://codereview.chromium.org/15658004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202501 0039d316-1c4b-4281-b951-d872f2087c98
* Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapikinuko@chromium.org2013-05-211-0/+57
This moves following files from webkit/fileapi to webkit/browser/fileapi: - copy_or_move_file_validator* - cross_operation_delegate* - file_system_quota_client* - recursive_operation_delegate* BUG=239710 TBR=tzik@chromium.org Review URL: https://codereview.chromium.org/15535006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201258 0039d316-1c4b-4281-b951-d872f2087c98