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

Issue 7029007: Implement EvictOriginData 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
Visibility:
Public.

Description

Implement EvictOriginData in QuotaManager. BUG=61676 TEST=QuotaManagerTest.EvictOriginData Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85750

Patch Set 1 #

Patch Set 2 : Updated. #

Total comments: 8

Patch Set 3 : Extracted only EvictOriginData (f.k.a. DeleteOriginData). #

Total comments: 8

Patch Set 4 : Added a. test function. (Not working well, and not reflected the comments.) #

Total comments: 12

Patch Set 5 : Fixed, updated the test, and reflected the comments. #

Total comments: 8

Patch Set 6 : Reflected the comments. #

Total comments: 10

Patch Set 7 : Reflected the comments. #

Total comments: 2

Patch Set 8 : Renamed On... to Did... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -6 lines) Patch
M webkit/quota/quota_manager.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -0 lines 0 comments Download
M webkit/quota/quota_manager.cc View 1 2 3 4 5 6 7 2 chunks +46 lines, -2 lines 0 comments Download
M webkit/quota/quota_manager_unittest.cc View 1 2 3 4 5 4 chunks +65 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Dai Mikurube (NOT FULLTIME)
Extracted QuotaManager functions from http://codereview.chromium.org/7002024/.
9 years, 7 months ago (2011-05-16 12:53:18 UTC) #1
kinuko
Sorry for having confused you, I basically wanted to make the tasks splittable / put ...
9 years, 7 months ago (2011-05-16 13:48:00 UTC) #2
michaeln
http://codereview.chromium.org/7029007/diff/4/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/4/webkit/quota/quota_manager.cc#newcode734 webkit/quota/quota_manager.cc:734: num_deleted_clients_ = 0; you might be able to do ...
9 years, 7 months ago (2011-05-17 00:19:45 UTC) #3
kinuko
I think http://codereview.chromium.org/7029009/ is the newer one of this. On 2011/05/17 00:19:45, michaeln wrote: > ...
9 years, 7 months ago (2011-05-17 00:51:37 UTC) #4
Dai Mikurube (NOT FULLTIME)
Separated GetUsageAndQuotaForEviction out into http://codereview.chromium.org/7039006/. Now changes on eviction are : * http://codereview.chromium.org/7029009/ (interface; landed) ...
9 years, 7 months ago (2011-05-17 09:18:40 UTC) #5
kinuko
Some earlier comments http://codereview.chromium.org/7029007/diff/7001/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/7001/webkit/quota/quota_manager.cc#newcode742 webkit/quota/quota_manager.cc:742: EvictOriginDataCallback* callback) { This method won't ...
9 years, 7 months ago (2011-05-17 09:48:55 UTC) #6
michaeln
http://codereview.chromium.org/7029007/diff/7004/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/7004/webkit/quota/quota_manager.cc#newcode759 webkit/quota/quota_manager.cc:759: delete evict_origin_data_callback_; is the callback leaked if the class ...
9 years, 7 months ago (2011-05-17 19:30:01 UTC) #7
Dai Mikurube (NOT FULLTIME)
Thanks. http://codereview.chromium.org/7029007/diff/7001/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/7001/webkit/quota/quota_manager.cc#newcode742 webkit/quota/quota_manager.cc:742: EvictOriginDataCallback* callback) { On 2011/05/17 09:48:55, kinuko wrote: ...
9 years, 7 months ago (2011-05-18 04:34:48 UTC) #8
kinuko
http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.cc#newcode807 webkit/quota/quota_manager.cc:807: DCHECK(num_evicted_clients_ == 0); num_evicted_clients_ == 0 wouldn't guarantee we're ...
9 years, 7 months ago (2011-05-18 04:45:12 UTC) #9
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.cc#newcode807 webkit/quota/quota_manager.cc:807: DCHECK(num_evicted_clients_ == 0); On 2011/05/18 04:45:12, kinuko wrote: > ...
9 years, 7 months ago (2011-05-18 05:08:00 UTC) #10
michaeln
http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.h File webkit/quota/quota_manager.h (right): http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.h#newcode213 webkit/quota/quota_manager.h:213: EvictOriginDataCallback* evict_origin_data_callback_; > I guess scoped_ptr is better. Done ...
9 years, 7 months ago (2011-05-18 05:24:35 UTC) #11
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.h File webkit/quota/quota_manager.h (right): http://codereview.chromium.org/7029007/diff/3007/webkit/quota/quota_manager.h#newcode213 webkit/quota/quota_manager.h:213: EvictOriginDataCallback* evict_origin_data_callback_; On 2011/05/18 05:24:36, michaeln wrote: > > ...
9 years, 7 months ago (2011-05-18 05:34:29 UTC) #12
kinuko
some more nits. http://codereview.chromium.org/7029007/diff/10006/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/10006/webkit/quota/quota_manager.cc#newcode18 webkit/quota/quota_manager.cc:18: #include "webkit/quota/quota_client.h" nit: this is already ...
9 years, 7 months ago (2011-05-18 05:48:35 UTC) #13
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/7029007/diff/10006/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/7029007/diff/10006/webkit/quota/quota_manager.cc#newcode18 webkit/quota/quota_manager.cc:18: #include "webkit/quota/quota_client.h" On 2011/05/18 05:48:35, kinuko wrote: > nit: ...
9 years, 7 months ago (2011-05-18 06:04:57 UTC) #14
kinuko
lgtm if tests look happy. http://codereview.chromium.org/7029007/diff/8003/webkit/quota/quota_manager.h File webkit/quota/quota_manager.h (right): http://codereview.chromium.org/7029007/diff/8003/webkit/quota/quota_manager.h#newcode183 webkit/quota/quota_manager.h:183: void OnOriginDataEvicted(QuotaStatusCode status); nit: ...
9 years, 7 months ago (2011-05-18 06:21:28 UTC) #15
Dai Mikurube (NOT FULLTIME)
http://codereview.chromium.org/7029007/diff/8003/webkit/quota/quota_manager.h File webkit/quota/quota_manager.h (right): http://codereview.chromium.org/7029007/diff/8003/webkit/quota/quota_manager.h#newcode183 webkit/quota/quota_manager.h:183: void OnOriginDataEvicted(QuotaStatusCode status); On 2011/05/18 06:21:28, kinuko wrote: > ...
9 years, 7 months ago (2011-05-18 06:58:39 UTC) #16
kinuko
LGTM
9 years, 7 months ago (2011-05-18 07:20:55 UTC) #17
Dai Mikurube (NOT FULLTIME)
Thanks. Checked the box.
9 years, 7 months ago (2011-05-18 08:48:55 UTC) #18
commit-bot: I haz the power
9 years, 7 months ago (2011-05-18 09:52:25 UTC) #19
Change committed as 85750

Powered by Google App Engine
This is Rietveld 408576698