summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/sandbox_mount_point_provider_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup FileSystemOperation for preparing for adding FSO-factory methodkinuko@chromium.org2012-01-111-8/+8
| | | | | | | | | | | | | | | | | | | | 1. Move OpenFileSystem() to FileSystemContext 2. Change Cancel() not to take another FileSystemOperation These two changes are made so that all the operations that require FileSystemOperation take target path URL. 3. Did some related code cleanups in FileSystemMountPointProvider: - Renamed ValidateFileSystemRootAndGetURL() to ValidateFileSystemRoot() as we no longer need to return RootURL - Renamed ValidateFileSystemRootAndGetPathOnFileThread() to GetFileSystemRootPathOnFileThread() for the sake of simplicity - Reimplemented SandboxMPP::GetRootPathTask using PostTaskAndReply Patch from http://codereview.chromium.org/9004019/ BUG=none TEST=existing tests should pass Review URL: http://codereview.chromium.org/9016020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117197 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Removing FileSystemPathManagerkinuko@chromium.org2012-01-051-26/+15
| | | | | | | | | | | | | | | | - Deprecating FileSystemPathManager, which I believe no longer has a lot of reasons to exist * Changed GetFileSystemTypeString to a regular function in file_system_util * Added GetFileUtil(FileSystemType), GetMountPointProvider(FileSystemType), external_provider() to FileSystemContext * Moved all the tests in file_system_path_manager_unittest to file_system_mount_point_provider_unittest - Also replaced two boolean values in FileSystemContext with a thin FileSystemOptions interface BUG=none TEST=no functional changes Review URL: http://codereview.chromium.org/9004019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116482 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert FileSystemPathManager::GetRootPathCallback.jhawkins@chromium.org2011-10-181-10/+8
| | | | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106139 Review URL: http://codereview.chromium.org/8342008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106174 0039d316-1c4b-4281-b951-d872f2087c98
* Broke CrOS; I can haz CrOS in default try jobs?jhawkins@chromium.org2011-10-181-8/+10
| | | | | | | | | | | | | | | | Revert 106139 - base::Bind: Convert FileSystemPathManager::GetRootPathCallback. BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8342008 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/8344023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106151 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert FileSystemPathManager::GetRootPathCallback.jhawkins@chromium.org2011-10-181-10/+8
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8342008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106139 0039d316-1c4b-4281-b951-d872f2087c98
* Obsoleting --unlimited-quota-for-fileskinuko@chromium.org2011-09-201-1/+0
| | | | | | | | | BUG=94360 TEST=existing tests should pass Review URL: http://codereview.chromium.org/7839027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101928 0039d316-1c4b-4281-b951-d872f2087c98
* [Refactor] to rename and re-layer the file_util stack layers.dmikurube@google.com2011-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | Splits FileSystemFileUtil into two classes. 1. FileSystemFileUtil (pure virtual and non-virtual functions + functions to forward to an underlying file_util.) 2. NativeFileUtil (FileUtil for OS-native operations) Renames *FileSystemFileUtil into *FileUtil except for FileSystemFileUtil. Renames *_file_system_file_util.{cc,h} into *_file_util.{cc,h}. Renames variable *_file_system_file_util into *_file_util. BUG=none TEST=All FileAPI-related tests Review URL: http://codereview.chromium.org/7470037 Patch from Dai Mikurube <dmikurube@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99641 0039d316-1c4b-4281-b951-d872f2087c98
* Test cleanup: Using MockSpecialStoragePolicy instead of local subclasses of ↵marja@chromium.org2011-08-171-22/+5
| | | | | | | | | | | | SpecialStoragePolicy. BUG=NONE TEST=Existing tests pass: FileSystemDirURLRequestJobTest.*, FileSystemURLRequestJobTest.*, FileSystemContextTest.*, DatabaseTrackerTest.*, QuotaFileUtilTest.*, FileSystemPathManagerTest.*, SandboxMountPointProviderMigrationTest.* Review URL: http://codereview.chromium.org/7633016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97119 0039d316-1c4b-4281-b951-d872f2087c98
* Add MessageLoopProxy::currentnduca@chromium.org2011-08-151-3/+3
| | | | | | Review URL: http://codereview.chromium.org/7583053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96819 0039d316-1c4b-4281-b951-d872f2087c98
* Remove SandboxMountPointProvier::GetBaseDirectoryForOrigin as it's no longer ↵kinuko@chromium.org2011-07-151-4/+4
| | | | | | | | | | | | | used A tiny cleanup. BUG=none TEST=green bots Review URL: http://codereview.chromium.org/7372001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92654 0039d316-1c4b-4281-b951-d872f2087c98
* Code to turn on obfuscated filesystems for all, and to migrate all existing ↵ericu@google.com2011-05-281-14/+330
| | | | | | | | | | | | | users automatically whenever they next access the filesystem or check its quota usage. Avi, I've added you just for the ChildProcessSecurity stuff in worker_process_host.cc and browser_render_process_host.cc. Drop me a line if you need to know what's going on there. This is for M13, so please ask soon. BUG=none TEST=unit tests Review URL: http://codereview.chromium.org/6976017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87129 0039d316-1c4b-4281-b951-d872f2087c98
* Integrated obfuscation with quota; all unit tests now pass with or without ↵ericu@chromium.org2011-05-231-1/+1
| | | | | | | | | | | | the flag that turns on obfuscation. BUG=none TEST=unit tests Review URL: http://codereview.chromium.org/7057032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86351 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir and scoped_native_library back from base/memory to base.thakis@chromium.org2011-05-191-1/+1
| | | | | | | | | | | It looks like they got moved accidentally in http://codereview.chromium.org/6714032 BUG=none TEST=none Review URL: http://codereview.chromium.org/7048007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86010 0039d316-1c4b-4281-b951-d872f2087c98
* 'using namespace' fix in webkit/fileapikinuko@chromium.org2011-05-131-1/+3
| | | | | | | | | BUG=82078 TEST=none Review URL: http://codereview.chromium.org/6973057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85275 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SandboxQuotaClient for Quota support in sandboxed filesystemkinuko@chromium.org2011-05-091-27/+34
| | | | | | | | | | | | - Refactored FileSystemUsageTracker as a SandboxQuotaClient - Added a few more tests BUG=61676 TEST=SandboxQuotaClientTest.* Review URL: http://codereview.chromium.org/6883002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84604 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Stop returning the true root path of each filesystem from openFileSystem.ericu@google.com2011-03-241-0/+100
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