summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi
Commit message (Collapse)AuthorAgeFilesLines
* Added FileSystemDirectoryDatabase::GetNextInteger(), for use in generatingericu@google.com2011-05-063-22/+105
| | | | | | | | | | | unique backing file names in the obfuscated filesystem. BUG=NONE TEST=unit test Review URL: http://codereview.chromium.org/6935018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84527 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmission of 6898057, with build fixes.ericu@google.com2011-05-054-0/+758
| | | | | | | | BUG=none TEST=unit tests TBR=michaeln@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84356 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 84301 - A database to hold filesystem directory information, to ↵zea@chromium.org2011-05-054-758/+0
| | | | | | | | | | | | | | replace real paths. BUG=NONE TEST=included unit tests Review URL: http://codereview.chromium.org/6898057 TBR=ericu@google.com Review URL: http://codereview.chromium.org/6931040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84310 0039d316-1c4b-4281-b951-d872f2087c98
* A database to hold filesystem directory information, to replace real paths.ericu@google.com2011-05-054-0/+758
| | | | | | | | | BUG=NONE TEST=included unit tests Review URL: http://codereview.chromium.org/6898057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84301 0039d316-1c4b-4281-b951-d872f2087c98
* A database to hold mappings from origin identifiers to unique directory names.ericu@chromium.org2011-05-044-1/+415
| | | | | | | | | | BUG=NONE TEST=included Review URL: http://codereview.chromium.org/6903118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84029 0039d316-1c4b-4281-b951-d872f2087c98
* Make FileSystemFileUtil::Copy/Move non-virtual.dmikurube@chromium.org2011-04-285-76/+503
| | | | | | | | | | BUG=none TEST=LocalFileSystemFileUtilTest.* Review URL: http://codereview.chromium.org/6902026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83307 0039d316-1c4b-4281-b951-d872f2087c98
* Modify FileSystemUsageCache::GetUsage to get the size even if dirty > 0, and ↵dmikurube@chromium.org2011-04-274-8/+28
| | | | | | | | | | | | add GetDirty. BUG=74841 TEST=FileSystemUsageCacheTest.* Review URL: http://codereview.chromium.org/6904044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83141 0039d316-1c4b-4281-b951-d872f2087c98
* Update .usage in QuotaFileUtil and FileWriterDelegate.dmikurube@google.com2011-04-2613-110/+692
| | | | | | | BUG=74841 TEST=QuotaFileUtilTest.*,FileWriterDelegateTest.*,FileSystemOperationWriteTest.* git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83006 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the memory leak by r82441.dmikurube@chromium.org2011-04-221-55/+61
| | | | | | | | | | BUG=80151 TEST=valgrind.sh for test_shell_tests:QuotaFileUtilTest.* Review URL: http://codereview.chromium.org/6882114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82624 0039d316-1c4b-4281-b951-d872f2087c98
* Modify error code of move/copy preparation.tzik@google.com2011-04-212-6/+6
| | | | | | | | | | | | ref: https://bugs.webkit.org/show_bug.cgi?id=58864 BUG=None TEST=None Review URL: http://codereview.chromium.org/6881078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82446 0039d316-1c4b-4281-b951-d872f2087c98
* Add virtual in QuitaFileUtil to fix the compilation error in r82441.yutak@chromium.org2011-04-211-2/+2
| | | | | | | | | | TBR=dmikurube,kinuko BUG=none TEST=none Review URL: http://codereview.chromium.org/6882112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82445 0039d316-1c4b-4281-b951-d872f2087c98
* Add "allowed growth" for writing operations, such as copy, move, write and ↵dmikurube@chromium.org2011-04-2111-37/+787
| | | | | | | | | | | | | truncate. A writing operation which increases the file size more than "allowed growth" results in PLATFORM_FILE_ERROR_NO_SPACE. BUG=74841 TEST=FileWriterDelegateTest.*,QuotaFileUtilTest.*,FileSystemOperationTest.* Review URL: http://codereview.chromium.org/6725021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82441 0039d316-1c4b-4281-b951-d872f2087c98
* Clang made happy again.zelidrag@chromium.org2011-04-202-1/+5
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/6882075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82274 0039d316-1c4b-4281-b951-d872f2087c98
* Build break fix for Clang builds.zelidrag@chromium.org2011-04-201-0/+1
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/6877079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82269 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed file/directory url resolution for external mount point provider.zelidrag@chromium.org2011-04-2030-190/+552
| | | | | | | | | | Per Eric's request, refactored FileSystemDirURLRequestJob and FileSystemURLRequestJob classes to resolve local file system through a new operation. BUG=chromium-os:14225 TEST=added new test cases to FileSystemPathManagerTest.*, added FileSystemOperationTest.TestGetLocalFilePathSuccess Review URL: http://codereview.chromium.org/6864040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82266 0039d316-1c4b-4281-b951-d872f2087c98
* Add 'Cache-Control: no-cache' to filesystem: responses to avoidadamk@chromium.org2011-04-193-3/+39
| | | | | | | | | | | | | | | | | | | | having them improperly cached in WebKit's memory cache. Note that this change as currently written may be unnecessarily bad for performance, since the file must be read from disk on every access. For some use cases, this could be quite expensive. The right fix is probably to put a 'Last-Modified' header in the response along with 'Cache-Control: max-age: 0', but for now I'm favoring correctness over performance. R=michaeln@chromium.org BUG=79539 TEST=layout test at http://webkit.org/b/58854 Review URL: http://codereview.chromium.org/6879022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82156 0039d316-1c4b-4281-b951-d872f2087c98
* File API changes needed for safely passing user selected file entities from ↵zelidrag@chromium.org2011-04-1612-50/+111
| | | | | | | | | | the file browser component extension to a 3rd party extension. BUG=chromium-os:11996 TEST=FileAccessPermissionsTest.FileAccessChecks Review URL: http://codereview.chromium.org/6810037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81860 0039d316-1c4b-4281-b951-d872f2087c98
* Clang build fix, de-inline a virtual method and dtor.michaeln@google.com2011-04-163-5/+23
| | | | | | | TBR=ericu Review URL: http://codereview.chromium.org/6870022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81847 0039d316-1c4b-4281-b951-d872f2087c98
* Let Pepper open FileSystem files again.ericu@google.com2011-04-163-0/+82
| | | | | | | | TEST=none [existing tests, but they're not currently run automatically] BUG=none Review URL: http://codereview.chromium.org/6850027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81837 0039d316-1c4b-4281-b951-d872f2087c98
* Nit fix FileSystemOperationWriteTest about when exiting the thread and ↵dmikurube@chromium.org2011-04-141-6/+3
| | | | | | | | | | | | remove unnecessary lines. BUG=none TEST=none Review URL: http://codereview.chromium.org/6852021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81571 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leaks below file_util::FileEnumeratordmikurube@chromium.org2011-04-141-0/+2
| | | | | | | | | BUG=79329 TEST=./tools/valgrind/chrome_tests.sh -t test_shell --gtest_filter="FileSystemOperationTest.*" Review URL: http://codereview.chromium.org/6851010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81548 0039d316-1c4b-4281-b951-d872f2087c98
* More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where ericu@google.com2011-04-1314-337/+242
| | | | | | | | | | | | | possible without WebKit API changes. The WebKit changes will happen in another CL. This is a resubmit of http://codereview.chromium.org/6767010/, which bounced recently. There are a few changes here that weren't there [most notably in file_system_operation_write_unittest.cc and file_system_operation.cc], but they're pretty trivial build/test fixes. Review URL: http://codereview.chromium.org/6833007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81463 0039d316-1c4b-4281-b951-d872f2087c98
* Extract a recursive copy function as a shared and non-virtual function.dmikurube@chromium.org2011-04-132-11/+152
| | | | | | | | | | | | | This extraction is required to stack FileUtil layers without duplicated code of recursive copy. No tests because it doesn't change any behavior. BUG=none TEST=none Review URL: http://codereview.chromium.org/6772005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81388 0039d316-1c4b-4281-b951-d872f2087c98
* Fix FileSystemOperationTest for writing operations to avoid conflicting ↵dmikurube@chromium.org2011-04-132-35/+41
| | | | | | | | | | | | class names. BUG=none TEST=FileSystemOperationWriteTest.* Review URL: http://codereview.chromium.org/6835015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81382 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 81319 - More filesystem cleanup: convert URL-encoded-as-FilePath to ↵ericu@google.com2011-04-1214-242/+337
| | | | | | | | | actual URL, where possible without WebKit API changes. The WebKit changes will happen in another CL. This is a resubmit of http://codereview.chromium.org/6767010/ [third try lucky,fourth try persistent?], which bounced most recently due to bugs manifestingonly on XP. There are a few changes here that weren't there [infile_system_operation_write_unittest.cc and file_system_operation.cc], butthey're pretty trivial build/test fixes.BUG=none TEST=noneReview URL: http://codereview.chromium.org/6821065 TBR=ericu@google.com Review URL: http://codereview.chromium.org/6836002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81320 0039d316-1c4b-4281-b951-d872f2087c98
* More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where ericu@google.com2011-04-1214-337/+242
| | | | | | | | | | | | | | | | | possible without WebKit API changes. The WebKit changes will happen in another CL. This is a resubmit of http://codereview.chromium.org/6767010/ [third try lucky, fourth try persistent?], which bounced most recently due to bugs manifesting only on XP. There are a few changes here that weren't there [in file_system_operation_write_unittest.cc and file_system_operation.cc], but they're pretty trivial build/test fixes. BUG=none TEST=none Review URL: http://codereview.chromium.org/6821065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81319 0039d316-1c4b-4281-b951-d872f2087c98
* Modify tests for FileSystemOperation to test directory-in-directory.dmikurube@chromium.org2011-04-111-6/+20
| | | | | | | | | | BUG=none TEST=FileSystemOperationTest.Test*SuccessSrcDirRecursive Review URL: http://codereview.chromium.org/6816048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81071 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 81028 - It broke LayoutTests/ fast/filesystem/op-copy.html on Windows ↵tkent@chromium.org2011-04-1111-221/+322
| | | | | | | | | | | Release and Debug. More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where possible without WebKit API changes. The WebKit changes will happen in another CL. This is a resubmit of http://codereview.chromium.org/6767010/, which bounced dueto a recent checkin that required a merge. There are a few changes here thatweren't there [in file_system_operation_write_unittest.cc andfile_system_operation.cc], but they're pretty trivial build/test fixes.BUG=none TEST=noneReview URL: http://codereview.chromium.org/6813066 TBR=ericu@google.com Review URL: http://codereview.chromium.org/6813072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81065 0039d316-1c4b-4281-b951-d872f2087c98
* More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where ericu@google.com2011-04-0911-322/+221
| | | | | | | | | | | | | | | | possible without WebKit API changes. The WebKit changes will happen in another CL. This is a resubmit of http://codereview.chromium.org/6767010/, which bounced due to a recent checkin that required a merge. There are a few changes here that weren't there [in file_system_operation_write_unittest.cc and file_system_operation.cc], but they're pretty trivial build/test fixes. BUG=none TEST=none Review URL: http://codereview.chromium.org/6813066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81028 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 80982, tests failing on Win XPdmichael@chromium.org2011-04-0811-222/+325
| | | | | | | | | TBR=ericu BUG=None TEST=None Review URL: http://codereview.chromium.org/6821020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80991 0039d316-1c4b-4281-b951-d872f2087c98
* More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where ericu@google.com2011-04-0811-325/+222
| | | | | | | | | | | | | | | | possible without WebKit API changes. The WebKit changes will happen in another CL. This is a resubmit of http://codereview.chromium.org/6767010/, which bounced due to a recent checkin that required a merge. There are a few changes here that weren't there [in file_system_operation_write_unittest.cc and file_system_operation.cc], but they're pretty trivial build/test fixes. BUG=none TEST=none Review URL: http://codereview.chromium.org/6812040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80982 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 80833 - More filesystem cleanup: convert URL-encoded-as-FilePath to ↵ericu@google.com2011-04-0710-199/+319
| | | | | | | | | actual URL, wherepossible without WebKit API changes. The WebKit changes will happen in anotherCL.BUG=noneTEST=noneReview URL: http://codereview.chromium.org/6767010 TBR=ericu@google.com Review URL: http://codereview.chromium.org/6813025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80835 0039d316-1c4b-4281-b951-d872f2087c98
* More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, whereericu@google.com2011-04-0710-319/+199
| | | | | | | | | | | possible without WebKit API changes. The WebKit changes will happen in another CL. BUG=none TEST=none Review URL: http://codereview.chromium.org/6767010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80833 0039d316-1c4b-4281-b951-d872f2087c98
* Add a unittest for FileSystemOperation::Write().dmikurube@chromium.org2011-04-072-2/+253
| | | | | | | | | | BUG=none TEST=FileSystemOperationTest.TestWrite Review URL: http://codereview.chromium.org/6770004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80735 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the path from PlatformFileInfo; it's cleaner just to pass it along as aericu@google.com2011-03-2810-21/+49
| | | | | | | | | | separate parameter, and not clutter up a base type. BUG:none TEST:none Review URL: http://codereview.chromium.org/6731033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79624 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-2822-48/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Wired local file system support for File API. The local file system provider ↵zelidrag@chromium.org2011-03-2516-21/+115
| | | | | | | | | | | | | | | currently exists for ChromeOS builds only. This CL exposes new extension permission 'fileSystem' that controls access to individual local file system elements from 3rd party extensions. Another new permission 'fileBrowserPrivate' controls access to following API call that retrieves root DOMFileSystem instance for locally exposed folders:  chrome.fileBrowserPrivate.requestLocalFileSystem(callback) BUG=chromium-os:11983 TEST=ExtensionApiTest.LocalFileSystem Review URL: http://codereview.chromium.org/6519040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79451 0039d316-1c4b-4281-b951-d872f2087c98
* Proper build fix.ericu@google.com2011-03-244-2/+10
| | | | | | | | | BUG=none TEST=none TBR=cmp Review URL: http://codereview.chromium.org/6734001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79234 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 79230 - Fix the clang build.ericu@google.com2011-03-242-7/+2
| | | | | | | | | | | BUG=none TEST=none TBR=cmp TBR=ericu@google.com Review URL: http://codereview.chromium.org/6733014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79231 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the clang build.ericu@google.com2011-03-242-2/+7
| | | | | | | | BUG=none TEST=none TBR=cmp git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79230 0039d316-1c4b-4281-b951-d872f2087c98
* Stop returning the true root path of each filesystem from openFileSystem.ericu@google.com2011-03-2424-529/+1410
| | | | | | | | | | | Instead, return the FileSystem URI of the root. This will make it easier to swap in different filesystem implementations. BUG=71635 TEST=Just a couple in FileSystemUtilTests, but a bunch of existing ones [this doesn't add much new functionality]. Review URL: http://codereview.chromium.org/6603034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79228 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak in FileWriterDelegate by passing FileStream::Write a ↵adamk@chromium.org2011-03-152-9/+8
| | | | | | | | | | | | | | callback owned by the delegate. Remove the suppression of this memory leak. R=ericu@chromium.org BUG=75741 TEST=none Review URL: http://codereview.chromium.org/6685056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78148 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable FileWriterSync ui_tests by adding a ScopedAllowIO to ↵adamk@chromium.org2011-03-101-1/+4
| | | | | | | | | | | BlobURLRequestJob. BUG=75548 TEST=ui_tests Review URL: http://codereview.chromium.org/6666001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77705 0039d316-1c4b-4281-b951-d872f2087c98
* Virtualize file_util calls from ↵dmikurube@google.com2011-03-082-63/+96
| | | | | | | | | | | | | FileSystemFileUtil::PerformCommonCheckAndPreparationForMoveAndCopy. It refactors the TODO issue at http://codereview.chromium.org/6604020/ . BUG=74841 TEST=none Review URL: http://codereview.chromium.org/6625031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77375 0039d316-1c4b-4281-b951-d872f2087c98
* Make FileSystemDirURLRequestJob test single-threaded in hopes of making it ↵adamk@chromium.org2011-03-081-14/+7
| | | | | | | | | | | less flaky under Valgrind. BUG=75251 TEST=none Review URL: http://codereview.chromium.org/6646001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77333 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed the bug 75018: incorrect conditional jump in ↵kinuko@chromium.org2011-03-081-1/+3
| | | | | | | | | | | fileapi::FileSystemUsageCache::Read. BUG=75018 TEST=none Review URL: http://codereview.chromium.org/6621061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77239 0039d316-1c4b-4281-b951-d872f2087c98
* Revive FileAPI's recursive CreateDirectory.kinuko@chromium.org2011-03-076-12/+21
| | | | | | | | | | | PPAPI's MakeDirectoryIncludingAncestors() (ppapi/cpp/dev/file_ref_dev.cc) uses recursive CreateDirectory. BUG=74841 TEST=none Review URL: http://codereview.chromium.org/6627028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77204 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce FileSystemFileUtil and -Proxy to decorate base::file_util in ↵kinuko@chromium.org2011-03-049-28/+1150
| | | | | | | | | | | webkit/fileapi. BUG=74841 TEST=none Review URL: http://codereview.chromium.org/6604020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76875 0039d316-1c4b-4281-b951-d872f2087c98
* Remove FileSystemQuotaManager classkinuko@chromium.org2011-03-049-224/+129
| | | | | | | | | | | Now that we have SpecialStoragePolicy class and are going to have QuotaFileSystemUtil, I think we're ready to get rid of this class. BUG=none TEST=none Review URL: http://codereview.chromium.org/6609009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76858 0039d316-1c4b-4281-b951-d872f2087c98
* Replace EXPECT_EQ(false, ...) with EXPECT_FALSE(...) to fix clang buildkinuko@chromium.org2011-03-031-2/+2
| | | | | | | | | BUG=none TEST=green tree Review URL: http://codereview.chromium.org/6614024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76807 0039d316-1c4b-4281-b951-d872f2087c98