Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Issue 7039006: Implement GetUsageAndQuotaForEviction in QuotaManager. (Closed)

Created:
9 years, 7 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, tzik, michaeln
Visibility:
Public.

Description

Implement GetUsageAndQuotaForEviction in QuotaManager. This change includes : * Merge EvictOriginData members into EvictionContext. * Fix GetAvailableSpaceTest. BUG=61676 TEST=QuotaManagerTest.GetUsageANdQuotaForEviction. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85874

Patch Set 1 #

Patch Set 2 : Implemented it and added a test. #

Total comments: 6

Patch Set 3 : Packed member variables for GetUsageAndQuotaForEviction. #

Total comments: 10

Patch Set 4 : Reflected the comments. #

Total comments: 6

Patch Set 5 : Rebased, merged GetUsage... members to EvictionContext and fixed tests. #

Total comments: 6

Patch Set 6 : Rebased and added error counting. #

Patch Set 7 : Added a TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -24 lines) Patch
M webkit/quota/quota_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webkit/quota/quota_manager.h View 1 2 3 4 5 4 chunks +32 lines, -4 lines 0 comments Download
M webkit/quota/quota_manager.cc View 1 2 3 4 5 5 chunks +53 lines, -15 lines 0 comments Download
M webkit/quota/quota_manager_unittest.cc View 1 2 3 4 7 chunks +50 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Dai Mikurube (NOT FULLTIME)
I've implemented it and added the basic part. Some lines conflicts with http://codereview.chromium.org/7029007/ such as ...
9 years, 7 months ago (2011-05-18 06:17:49 UTC) #1
kinuko
http://codereview.chromium.org/7039006/diff/3/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7039006/diff/3/webkit/quota/quota_manager.cc#newcode528 webkit/quota/quota_manager.cc:528: quota_for_eviction_(0), Now I seriously started wondering if we could ...
9 years, 7 months ago (2011-05-18 06:26:55 UTC) #2
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/7039006/diff/3/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7039006/diff/3/webkit/quota/quota_manager.cc#newcode528 webkit/quota/quota_manager.cc:528: quota_for_eviction_(0), On 2011/05/18 06:26:55, kinuko wrote: > Now I ...
9 years, 7 months ago (2011-05-18 06:37:20 UTC) #3
Dai Mikurube (NOT FULLTIME)
Packed member variables for GetUsageAndQuotaForEviction. (The member name is temporary.)
9 years, 7 months ago (2011-05-18 08:29:39 UTC) #4
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years, 7 months ago (2011-05-18 08:43:00 UTC) #5
Dai Mikurube (NOT FULLTIME)
Wrongly clicked the checkbox. :(
9 years, 7 months ago (2011-05-18 08:43:56 UTC) #6
kinuko
A few comment about the innner struct... (thx for making the change). http://codereview.chromium.org/7039006/diff/7001/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc ...
9 years, 7 months ago (2011-05-18 09:08:01 UTC) #7
Dai Mikurube (NOT FULLTIME)
Thanks for your comments. http://codereview.chromium.org/7039006/diff/7001/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7039006/diff/7001/webkit/quota/quota_manager.cc#newcode791 webkit/quota/quota_manager.cc:791: get_usage_and_quota_for_eviction_members_.quota_, On 2011/05/18 09:08:01, kinuko ...
9 years, 7 months ago (2011-05-18 09:31:30 UTC) #8
kinuko
http://codereview.chromium.org/7039006/diff/6002/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7039006/diff/6002/webkit/quota/quota_manager.cc#newcode816 webkit/quota/quota_manager.cc:816: DCHECK(!get_usage_and_quota_callback.get()) here? http://codereview.chromium.org/7039006/diff/6002/webkit/quota/quota_manager.h File webkit/quota/quota_manager.h (right): http://codereview.chromium.org/7039006/diff/6002/webkit/quota/quota_manager.h#newcode38 webkit/quota/quota_manager.h:38: class ...
9 years, 7 months ago (2011-05-18 10:02:45 UTC) #9
Dai Mikurube (NOT FULLTIME)
Thanks. In addition: * Merged EvictOriginData members into EvictionContext. * Fixed GetAvailableSpaceTest. http://codereview.chromium.org/7039006/diff/6002/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc ...
9 years, 7 months ago (2011-05-18 11:35:25 UTC) #10
kinuko
looking good. http://codereview.chromium.org/7039006/diff/6007/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7039006/diff/6007/webkit/quota/quota_manager.cc#newcode782 webkit/quota/quota_manager.cc:782: // TODO(dmikurube): Handle error. might want to ...
9 years, 7 months ago (2011-05-18 14:10:51 UTC) #11
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/7039006/diff/6007/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7039006/diff/6007/webkit/quota/quota_manager.cc#newcode782 webkit/quota/quota_manager.cc:782: // TODO(dmikurube): Handle error. On 2011/05/18 14:10:51, kinuko wrote: ...
9 years, 7 months ago (2011-05-19 02:28:03 UTC) #12
kinuko
LGTM http://codereview.chromium.org/7039006/diff/6007/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7039006/diff/6007/webkit/quota/quota_manager.cc#newcode789 webkit/quota/quota_manager.cc:789: eviction_context_.num_eviction_requested_clients) { On 2011/05/19 02:28:03, Dai Mikurube wrote: ...
9 years, 7 months ago (2011-05-19 02:48:42 UTC) #13
Dai Mikurube (NOT FULLTIME)
Thank you. :) I'll be committing it after try-bots look like succeeding. (It may be ...
9 years, 7 months ago (2011-05-19 03:20:09 UTC) #14
commit-bot: I haz the power
9 years, 7 months ago (2011-05-19 05:26:07 UTC) #15
Change committed as 85874

Powered by Google App Engine
This is Rietveld 408576698