summaryrefslogtreecommitdiffstats
path: root/webkit/quota/mock_storage_client.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove task.h and finish base::Bind() migration.ajwong@chromium.org2012-01-061-1/+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
* base::Bind: Final cleanups in webkit/quota.jhawkins@chromium.org2011-10-181-1/+2
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8342004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106116 0039d316-1c4b-4281-b951-d872f2087c98
* Use base::Callback in Quota related code.tzik@chromium.org2011-10-181-12/+9
| | | | | | | | | BUG=None TEST='Compilation should finished successfull and all quota related tests should be passed.' Review URL: http://codereview.chromium.org/8070001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106060 0039d316-1c4b-4281-b951-d872f2087c98
* Adding usage entry to chrome://settings/cookies.tzik@chromium.org2011-08-091-0/+1
| | | | | | | | | | | | | BUG=88644,91816,91836 TEST='BrowsingDataQuotaHelperTest.*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95607 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=95779 Review URL: http://codereview.chromium.org/7387007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95959 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 95607 - Adding usage entry to chrome://settings/cookies.tzik@chromium.org2011-08-081-1/+0
| | | | | | | | | | | | | BUG=88644 TEST='BrowsingDataQuotaHelperTest.*' Review URL: http://codereview.chromium.org/7387007 TBR=tzik@chromium.org Review URL: http://codereview.chromium.org/7491085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95779 0039d316-1c4b-4281-b951-d872f2087c98
* Adding usage entry to chrome://settings/cookies.tzik@chromium.org2011-08-051-0/+1
| | | | | | | | | | BUG=88644 TEST='BrowsingDataQuotaHelperTest.*' Review URL: http://codereview.chromium.org/7387007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95607 0039d316-1c4b-4281-b951-d872f2087c98
* 2nd try: Implement QM::GetOriginsModifiedSince for browser data deleter supportkinuko@chromium.org2011-07-081-0/+5
| | | | | | | | | | | | Original review URL: http://codereview.chromium.org/7168019 (reverted due to clang build breakage) BUG=86308 TEST={QuotaDatabaseTest,QuotaManagerTest}.OriginModifiedSince Review URL: http://codereview.chromium.org/7331006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91835 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 91690 - Implement QM::GetOriginsModifiedSince for browser data ↵kinuko@chromium.org2011-07-071-5/+0
| | | | | | | | | | | | | | deleter support BUG=86308 TEST={QuotaDatabaseTest,QuotaManagerTest}.OriginModifiedSince Review URL: http://codereview.chromium.org/7168019 TBR=kinuko@chromium.org Review URL: http://codereview.chromium.org/7322005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91691 0039d316-1c4b-4281-b951-d872f2087c98
* Implement QM::GetOriginsModifiedSince for browser data deleter supportkinuko@chromium.org2011-07-071-0/+5
| | | | | | | | | BUG=86308 TEST={QuotaDatabaseTest,QuotaManagerTest}.OriginModifiedSince Review URL: http://codereview.chromium.org/7168019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91690 0039d316-1c4b-4281-b951-d872f2087c98
* Integrate QuotaTemporaryStorageEvictor and QuotaManager functions.dmikurube@chromium.org2011-05-301-0/+4
| | | | | | | | | | | | It enables the Evictor for the temporary storage if the --enable-quota-evictor option is given. BUG=61676 TEST=QuotaTemporaryStorageEvictorTest.*,QuotaManagerTest.* Review URL: http://codereview.chromium.org/7039008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87228 0039d316-1c4b-4281-b951-d872f2087c98
* Retain support for 'UnlimitedStorage' in the QuotaManager.michaeln@google.com2011-05-291-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Track unlimited_usage in parallel with total global_usage. The latter value is the sum of all usage by any origin (same as before). The new value is the amount of the total that is attributable to origins with the unlimited storage permission. Widened the GlobalUsageCallback to take two int64 params, one for the total global_usage and the other for the unlimited_usage. Modified the eviction logic to exempt origins with the unlimited storage right from eviction. Modified the behavior of QuotaManager::GetUsageAndQuota(origin) method to return kint64max for unlimited origins. Also modified the return value in the limited case to be 10% of the total limit for temp storage, unless the system is over the total limit in which case they're capped at their current usage level. // Allow an individual host to utilize no more than 10% of the total // pool available for temp storage. int64 host_quota = quota() / 10; // If total temp usage is over-budget, stop letting new data in until we reclaim space. limited_global_usage = global_usage() - unlimted_global_usage(); if (limited_global_usage > quota()) host_quota = std::min(host_quota, host_usage()); return host_quota; At this time, the total limit for temp storage is 1G, that gives each site 100M to work with (no prompts involved). BUG=61676 TEST=unittests Review URL: http://codereview.chromium.org/6962005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87207 0039d316-1c4b-4281-b951-d872f2087c98
* Added DeleteOriginData to QuotaClientkinuko@chromium.org2011-05-171-0/+7
| | | | | | | | | | BUG=61676 TEST=SandboxQuotaClientTest.DeleteOriginTest Review URL: http://codereview.chromium.org/7003021 Patch from Taiju Tsuiki <tzik@google.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85588 0039d316-1c4b-4281-b951-d872f2087c98
* Added {Get,Set}PersistentHostQuota and Get{Global,Host}Usage to QuotaManager.kinuko@chromium.org2011-05-131-8/+6
| | | | | | | | | | | | Fixed version of issue 6904042. BUG=61676 TEST='QuotaManagerTests.*' Review URL: http://codereview.chromium.org/7004019 Patch from Taiju Tsuiki <tzik@google.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85263 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r84963: "Added {Get,Set}PersistentHostQuota"dilmah@chromium.org2011-05-111-2/+6
| | | | | | | | | | | | | | | | | failures in webkit tests: QuotaManagerTest.GetUsage_WithModification: .\quota\quota_manager_unittest.cc(645): error: Value of: 4000 + 50000 + 900000000 Actual: 900054000 Expected: usage() Which is: 900108000 BUG=None TEST=None TBR=tzik@google.com Review URL: http://codereview.chromium.org/7004018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84968 0039d316-1c4b-4281-b951-d872f2087c98
* Added {Get,Set}PersistentHostQuotatzik@google.com2011-05-111-6/+2
| | | | | | | | | | BUG=61676 TEST='QuotaManagerTests.*' Review URL: http://codereview.chromium.org/6904042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84963 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SandboxQuotaClient for Quota support in sandboxed filesystemkinuko@chromium.org2011-05-091-8/+5
| | | | | | | | | | | | - 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
* Another clang build fix for 83145kinuko@chromium.org2011-04-271-1/+1
| | | | | | | | | | BUG= TEST=green tree TBR=maruel Review URL: http://codereview.chromium.org/6903066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83151 0039d316-1c4b-4281-b951-d872f2087c98
* Add 1st cut of QuotaManager codekinuko@chromium.org2011-04-271-0/+74
No persistent storage support yet. Some notes: - There are a lot of TODOs especially for persistent type storage handling. - QuotaTask base class is for now only subclassed by QuotaInitializeTask, but it is planned to add more subclasses. BUG=61676,79639 TEST=QuotaManagerTest.* Review URL: http://codereview.chromium.org/6826052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83145 0039d316-1c4b-4281-b951-d872f2087c98