summaryrefslogtreecommitdiffstats
path: root/webkit/quota
Commit message (Collapse)AuthorAgeFilesLines
* webkit: Update the calls from RunAllPending() to RunUntilIdle().tfarina@chromium.org2012-12-163-211/+211
| | | | | | | | | | | | RunAllPending() is deprecated and we should switch to RunUntilIdle(). BUG=131220 TBR=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/11595003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173357 0039d316-1c4b-4281-b951-d872f2087c98
* QuotaStatusCode: Use enum names instead of hard coding the valuesarv@chromium.org2012-12-051-6/+6
| | | | | | | | | | | | | This is blocking https://bugs.webkit.org/show_bug.cgi?id=102726 since QuotaStatusCode hard codes the values which prevents us from changing those values. BUG=None Review URL: https://chromiumcodereview.appspot.com/11434107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171133 0039d316-1c4b-4281-b951-d872f2087c98
* [base] Move AutoReset to base namespace.dbeam@chromium.org2012-11-211-1/+1
| | | | | | | | | | | NOTRY=true R=darin@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/11308132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168978 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir from base to base/filesbrettw@chromium.org2012-11-163-15/+15
| | | | | | | | | | Also add to base namespace. BUG= Review URL: https://codereview.chromium.org/11359217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168281 0039d316-1c4b-4281-b951-d872f2087c98
* Added quota_status_code.h/cc file to hold QuotaStatusCode enum and added ↵calvinlo@chromium.org2012-11-064-11/+60
| | | | | | | | | | | | function to convert enum to error strings. BUG=156791 TBR=benwells@chromium.org Review URL: https://chromiumcodereview.appspot.com/11363098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166188 0039d316-1c4b-4281-b951-d872f2087c98
* Add extra checks to see if given origin URL has no path partkinuko@chromium.org2012-11-051-0/+4
| | | | | | | | | | | This could cause mysterious errors in usage cache in quota_manager (usage_tracker) BUG=none Review URL: https://codereview.chromium.org/11358063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165906 0039d316-1c4b-4281-b951-d872f2087c98
* webkit: Merge 'database' and 'quota' to 'webkit_storage'hashimoto@chromium.org2012-10-267-53/+43
| | | | | | | | | | | | | | | Remove webkit/database/quota_table* since it's not used. Merge 'database' and 'quota' to 'webkit_storage'. Add WEBKIT_STORAGE_EXPORT(_PRIVATE) when necessary. BUG=155242 TEST=build TBR=jam@chromium.org for trivial gyp changes Review URL: https://chromiumcodereview.appspot.com/11274003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164329 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure profile path directory exists before trying to determine amount of ↵calvinlo@chromium.org2012-10-181-1/+11
| | | | | | | | | | | free space. BUG=153501 Review URL: https://chromiumcodereview.appspot.com/11189055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162673 0039d316-1c4b-4281-b951-d872f2087c98
* Restore quota manager's default quota valuekinuko@chromium.org2012-10-121-0/+2
| | | | | | | | | BUG=none TEST=green bots Review URL: https://codereview.chromium.org/11112012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161550 0039d316-1c4b-4281-b951-d872f2087c98
* Converted GetOriginsForHostTask to use base::PostTaskAndReply(). Deleted ↵calvinlo@chromium.org2012-10-113-96/+0
| | | | | | | | | | | superclasses GetOriginsTaskBase, HelperTask. Also deleted QuotaTaskThread class as nothing references that anymore. BUG=139270 Review URL: https://chromiumcodereview.appspot.com/11091042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161307 0039d316-1c4b-4281-b951-d872f2087c98
* 2nd try: Cleanup includes/headers in webkit/fileapikinuko@chromium.org2012-10-101-1/+0
| | | | | | | | | | | | | | | | | Original review: http://codereview.chromium.org/11096022/ Changes from the original review: added file_system_context.h include in webkit/fileapi/file_system_operation_context.h (as it needs the definition for implicit copy constructor) BUG=none TEST=green bots TBR=tzik@chromium.org Review URL: https://chromiumcodereview.appspot.com/11091041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161095 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 161054 - Cleanup includes/headers in webkit/fileapiviettrungluu@chromium.org2012-10-101-0/+1
| | | | | | | | | | | | | | [Build failure on Windows.] BUG=none TEST=none Review URL: https://codereview.chromium.org/11096022 TBR=kinuko@chromium.org Review URL: https://codereview.chromium.org/11028109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161057 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup includes/headers in webkit/fileapikinuko@chromium.org2012-10-101-1/+0
| | | | | | | | | BUG=none TEST=none Review URL: https://codereview.chromium.org/11096022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161054 0039d316-1c4b-4281-b951-d872f2087c98
* Added safe callback comment after QuotaClient is destructedcalvinlo@chromium.org2012-10-101-0/+4
| | | | | | | | | BUG=139270 Review URL: https://chromiumcodereview.appspot.com/11096019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161052 0039d316-1c4b-4281-b951-d872f2087c98
* add some missing includes of <functional> to fix compilation on VS2012scottmg@chromium.org2012-10-101-0/+1
| | | | | | | | | BUG=143646 Review URL: https://chromiumcodereview.appspot.com/11094029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161031 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: IWYU for base/time.h. Also fix misc lint errors.thestig@chromium.org2012-10-101-1/+0
| | | | | | | | TBR=ben,brettw,oshima,rdsmith Review URL: https://chromiumcodereview.appspot.com/11087021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160999 0039d316-1c4b-4281-b951-d872f2087c98
* Converted DeleteOriginDataTask and GetModifiedSinceTask to use ↵calvinlo@chromium.org2012-10-052-72/+39
| | | | | | | | | | | PostTaskAndReply(). These are the last two references to QuotaThreadTask in webkit/fileapi. BUG=139270 Review URL: https://chromiumcodereview.appspot.com/11045018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160326 0039d316-1c4b-4281-b951-d872f2087c98
* Merged HostQuotaCallback into QuotaCallbackcalvinlo@chromium.org2012-09-254-33/+21
| | | | | | | | | BUG=148900 Review URL: https://chromiumcodereview.appspot.com/10958032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158547 0039d316-1c4b-4281-b951-d872f2087c98
* Merge MockQuotaManager in multiple placeskinuko@chromium.org2012-09-212-36/+203
| | | | | | | | | | | | - to share the single implementation in existing tests - to make it easier for writing new tests BUG=none TEST=existing tests Review URL: https://chromiumcodereview.appspot.com/10915202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157964 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: quota::HostQuotaCallback do not need to pass host and type as argumentscalvinlo@chromium.org2012-09-203-22/+10
| | | | | | | | | BUG=148900 TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10948006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157746 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: quota::HostUsageCallback do not need to pass host and type as argumentscalvinlo@chromium.org2012-09-196-51/+20
| | | | | | | | | BUG=148900 TBR=mkwst@chromium.org Review URL: https://chromiumcodereview.appspot.com/10916313 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157523 0039d316-1c4b-4281-b951-d872f2087c98
* Add syncable filesystem/storage typekinuko@chromium.org2012-09-135-6/+61
| | | | | | | | | BUG=147763 TBR=jam@chromium.org,estade@chromium.org Review URL: https://chromiumcodereview.appspot.com/10915203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156496 0039d316-1c4b-4281-b951-d872f2087c98
* webkit/quota: Fix clang warnings about missing virtual and OVERRIDE annotations.tfarina@chromium.org2012-09-071-1/+1
| | | | | | | | | BUG=115047 TBR=kinuko@chromium.org Review URL: https://chromiumcodereview.appspot.com/10915137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155367 0039d316-1c4b-4281-b951-d872f2087c98
* Wipe out QuotaThreadTask.nhiroki@chromium.org2012-09-052-38/+15
| | | | | | | | | | | | This is a one of a series of refactoring patches for QuotaManager. http://codereview.chromium.org/10872054/ http://codereview.chromium.org/10917060/ BUG=139270 Review URL: https://chromiumcodereview.appspot.com/10919070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154987 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor QuotaManager using base::Callback (2).nhiroki@chromium.org2012-09-042-300/+172
| | | | | | | | | | | | | | | | | | | | | This is a one of a series of refactoring patches for QuotaManager. The previous patch is here: http://codereview.chromium.org/10872054/ The tasks to be refactored by this patch are as follows: - DeleteOriginInfo - InitializeTemporaryOriginsInfoTask - UpdateAccessTimeTask - UpdateModifiedTimeTask - GetModifiedSinceTask - DumpQuotaTableTask - DumpOriginInfoTableTask BUG=139270 Review URL: https://chromiumcodereview.appspot.com/10917060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154727 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor QuotaManager using base::Callback.nhiroki@chromium.org2012-08-282-378/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a lot of tasks inherited from QuotaThreadTask, so in this CL I refactored only a part of them: - InitializeTask - UpdateTemporaryQuotaOverrideTask - GetPersistentHostQuotaTask - UpdatePersistentHostQuotaTask - GetLRUOriginTask And, some tasks to be refactored are still left: - DeleteOriginInfo - InitializeTemporaryOriginsInfoTask - InitializeTemporaryOriginsInfoTask - UpdateAccessTimeTask - UpdateModifiedTimeTask - GetModifiedSinceTask - DumpQuotaTableTask - DumpOriginInfoTableTask I will do them in next CLs. BUG=139270 Review URL: https://chromiumcodereview.appspot.com/10872054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153655 0039d316-1c4b-4281-b951-d872f2087c98
* QuotaManager: Return the remaining free disk space as quota.jhawkins@chromium.org2012-08-246-38/+107
| | | | | | | | | | | | | Previously we returned kNoLimit, which prevents apps from managing disk usage. BUG=141583 TEST= R=kinuko Review URL: https://chromiumcodereview.appspot.com/10826270 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153248 0039d316-1c4b-4281-b951-d872f2087c98
* Quota code cleanupkinuko@chromium.org2012-08-242-82/+28
| | | | | | | | | | | | | | * Replace foo_usage_tracker_ with GetUsageTracker(type) in quota_manager.cc * Killing unused template types in quota_types.h * Adding parameter names in Callback typedefs in quota_types.h BUG=none TEST=green bots Review URL: https://chromiumcodereview.appspot.com/10882009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153182 0039d316-1c4b-4281-b951-d872f2087c98
* Quota double-delete fixkinuko@chromium.org2012-08-212-1/+7
| | | | | | | | | BUG=142310 Review URL: https://chromiumcodereview.appspot.com/10832407 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152532 0039d316-1c4b-4281-b951-d872f2087c98
* Quota UsageTracker ASAN fixkinuko@chromium.org2012-08-142-6/+16
| | | | | | | | BUG=142310 Review URL: https://chromiumcodereview.appspot.com/10827298 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151429 0039d316-1c4b-4281-b951-d872f2087c98
* Clean-up inline members of nested classes (webkit/)hans@chromium.org2012-08-094-11/+20
| | | | | | | | | | | | | | | | Due to a bug, the Clang-plugin style checker failed to warn about inline constructors, destructors, non-empty virtual methods, etc. for nested classes. The plugin has been fixed, and this patch is part of a clean-up of all the code that now causes the plugin to issue errors. BUG=139346 Review URL: https://chromiumcodereview.appspot.com/10829258 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150912 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-116-6/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* When fetching origins from the quota database, include the ones where the ↵bauerb@chromium.org2012-07-112-12/+19
| | | | | | | | | | | | | modification time exactly matches the beginning. This includes origins with modification time 0 in the result when fetching origins "since the beginning of time". BUG=134825 TEST=content_unittests:QuotaDatabaseTest.OriginLastModifiedSince; manual: Database storage is deleted from the Clear Browsing Data dialog. Review URL: https://chromiumcodereview.appspot.com/10700035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146102 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused fields found by clang's new Wunused-private-fields.thakis@chromium.org2012-06-271-3/+1
| | | | | | | | | | | | Test file edition. BUG=none TEST=none TBR=remaining owners Review URL: https://chromiumcodereview.appspot.com/10680013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144464 0039d316-1c4b-4281-b951-d872f2087c98
* Move remaining webkit storage unit tests to content_unittestsadamk@chromium.org2012-06-084-0/+6
| | | | | | | | | | This includes appcache, blob, database, dom_storage, and quota. Many tests needed MessageLoops, which I've added as appropriate. Review URL: https://chromiumcodereview.appspot.com/10540042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141139 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, webkit/ editionrsleevi@chromium.org2012-06-043-8/+11
| | | | | | | | | | BUG=123295 TEST=it compiles Review URL: https://chromiumcodereview.appspot.com/10416004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140265 0039d316-1c4b-4281-b951-d872f2087c98
* Merge QuotaFileUtil into ObfuscatedFileUtiltzik@chromium.org2012-05-112-5/+7
| | | | | | | | | | | | | | | | | | | | | This change includes - rename variable name of paths, (e.g. "filesystem:http://example.com/temporary/hoge/fuga") --- path: FileSystemPath past by upper layer, ("http://example.com", kTemporary, "hoge/fuga") --- virtual_path: path.internal_path(), ("hoge/fuga") --- local_path: origin, type & absolute native path --- local_file_path: absolute native path (e.g. "/home/tzik/.config/chromium/Default/File System/001/t/00/0000001") --- data_path: native path, relative to origin directory (e.g. "00/0000001") - use FilePath instead of FileSystemPath for source path in CopyInForeignFile. - refactor CopyOrMoveFile and CopyInForeignFile of ObfuscatedFileUtil - merge QuotaFileUtil into ObfuscatedFileUtil - fixing tests BUG=114732 TEST='ObfuscatedFileUtilTest.*' Review URL: https://chromiumcodereview.appspot.com/10051004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136521 0039d316-1c4b-4281-b951-d872f2087c98
* Change webkit/{fileapi,quota} code to use TaskRunner.kinuko@chromium.org2012-05-077-45/+50
| | | | | | | | | BUG=123559 TEST=existing tests Review URL: https://chromiumcodereview.appspot.com/10197007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135616 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, webkit/rsleevi@chromium.org2012-04-287-47/+128
| | | | | | | | | | BUG=123295 TEST=none Review URL: http://codereview.chromium.org/10066044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134449 0039d316-1c4b-4281-b951-d872f2087c98
* Add dependencies to webkit pieces.petermayo@chromium.org2012-04-131-1/+2
| | | | | | | | | | | | libcompositor (.so) gets linked against libwebkit_fileapi (.a) and libwebkit_quota (.a), each of which is built with googleurl, but does not include it as a dependency, causing libcompositor (.so) to not include all of the symbols it requires. R=kinuko@chromium.org BUG=112626 TEST=Compiled chromeos with shared library on a buildbot like setup. Review URL: http://codereview.chromium.org/9980022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132201 0039d316-1c4b-4281-b951-d872f2087c98
* Add base::StaticAtomicSequenceNumber.pliard@chromium.org2012-03-131-3/+0
| | | | | | | | | | | | This patch also replaces the global AtomicSequenceNumber variables with StaticAtomicSequenceNumber in order to remove static initializers. BUG=94925 Review URL: http://codereview.chromium.org/9415039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126376 0039d316-1c4b-4281-b951-d872f2087c98
* Change quota::QuotaClient::kAllClientsMask to be an enum.mnaganov@chromium.org2012-03-021-2/+1
| | | | | | | | | | | | | | | | | By the standard, static constants should also have a definition counterpart to allocate storage space. It's not strictly necessary for ints (but it puts usage restrictions on them), and for some reason we are having linking failure on Chrome on Android when building with clang compiler, maybe that's because of using templates or perhaps it's a clang issue. Anyway, converting this constant into an enum solves the problem. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9585014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124711 0039d316-1c4b-4281-b951-d872f2087c98
* Removing misleading thread-related comment in QuotaManager.kinuko@chromium.org2012-02-241-2/+0
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9456030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123369 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation of BrowserContext objects that live in content to content, ↵jam@chromium.org2012-02-201-8/+6
| | | | | | | | | | instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122521 Review URL: https://chromiumcodereview.appspot.com/9419033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122768 0039d316-1c4b-4281-b951-d872f2087c98
* Remove `kMockStart` from `quota::MockStorageClient`mkwst@chromium.org2012-02-104-82/+70
| | | | | | | | | | | | | After landing a fix for crbug.com/94334, the mock client IDs are no longer necessary for tests (and, in fact, are counterproductive). BUG=113380 TEST=test_shell_tests Review URL: http://codereview.chromium.org/9369027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121444 0039d316-1c4b-4281-b951-d872f2087c98
* QuotaManager::DeleteOriginData allows deletion of specific QuotaClientsmkwst@chromium.org2012-02-099-94/+430
| | | | | | | | | | | | To enable a more fine-grained extension API that would allow removal of specific data types, this CL changes the QuotaClient::ID enum values to bitmasky flags, and adds a bitmask parameter to QuotaManager::DeleteOriginData and QuotaManager::DeleteHostData to filter the clients that are deleted for each origin. BUG=94334 TEST=test_shell_tests,unit_tests Review URL: http://codereview.chromium.org/7839029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121269 0039d316-1c4b-4281-b951-d872f2087c98
* Database usage adjustment for .../webkitgbillock@chromium.org2012-02-071-61/+25
| | | | | | | | | | | R=shess@chromium.org BUG=None TEST=None Review URL: http://codereview.chromium.org/9249025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120709 0039d316-1c4b-4281-b951-d872f2087c98
* Remove task.h and finish base::Bind() migration.ajwong@chromium.org2012-01-062-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Over 341 CLs, in ~3 months, touching 3251 unique files! Top 5 most CLs: (121) jhawkins ( 45) dcheng ( 24) achuith ( 23) csilv ( 12) tfarina ( 12) groby ~1000 files touched: (918) jhawkins 100+ files touched: (486) ajwong (385) willchan (372) dcheng (126) csilv (123) fischman (112) sergeyu 49+ files touched: (65) tfarina (57) acolwell (52) adamk (49) tzik BUG=35223 TEST=existing Review URL: http://codereview.chromium.org/9114020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116748 0039d316-1c4b-4281-b951-d872f2087c98
* [sql] WARN_UNUSED_RESULT on Execute().shess@chromium.org2011-12-231-2/+1
| | | | | | | | | | | | | | | | | | Goal is to encourage callers to handle errors, especially in cases like schema changes, where dropped errors can result in broken databases. Many CREATE INDEX calls where ignoring errors rather than checking if the index already existed before creating it. Recoded those to CREATE INDEX IF NOT EXISTS, which is for exactly this purpose. BUG=none TEST=none Review URL: http://codereview.chromium.org/9005036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115725 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert webkit/database.jhawkins@chromium.org2011-12-221-1/+1
| | | | | | | | | | BUG=none TEST=none R=ajwong Review URL: http://codereview.chromium.org/8965035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115465 0039d316-1c4b-4281-b951-d872f2087c98