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

Issue 7053030: Initial IndexedDBQuotaClient implementation (Closed)

Created:
9 years, 7 months ago by dgrogan
Modified:
9 years, 6 months ago
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, ukai+watch_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org
Visibility:
Public.

Description

Initial IndexedDBQuotaClient implementation * Heavily based off of DatabaseQuotaClient. * Only responds to one request so far, GetOriginUsage. BUG=83652 TEST=llvm/Debug/unit_tests --gtest_filter=IndexedDB* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87076 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87424 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87834

Patch Set 1 #

Patch Set 2 : remove unrelated clang script change #

Patch Set 3 : remove now-extraneous method from OffTheRecordProfileImpl #

Patch Set 4 : put that method back #

Patch Set 5 : remove some unused code #

Patch Set 6 : remove more unused code #

Total comments: 12

Patch Set 7 : fix problems described in review #

Patch Set 8 : try to fix win compile error #

Total comments: 26

Patch Set 9 : fix stuff from comments #

Patch Set 10 : after rebase #

Patch Set 11 : custom struct for refptr to use on Destruct #

Total comments: 2

Patch Set 12 : just rebase #

Patch Set 13 : jam-suggested fix #

Patch Set 14 : make webkit thread outlive IndexedDBContext #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -26 lines) Patch
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/in_process_webkit/indexed_db_context.h View 1 2 3 4 5 6 11 12 3 chunks +15 lines, -2 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_context.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -1 line 0 comments Download
A content/browser/in_process_webkit/indexed_db_quota_client.h View 1 2 3 4 5 6 7 8 1 chunk +80 lines, -0 lines 0 comments Download
A content/browser/in_process_webkit/indexed_db_quota_client.cc View 1 2 3 4 5 6 7 8 1 chunk +219 lines, -0 lines 0 comments Download
A content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +114 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/webkit_context.h View 3 chunks +9 lines, -2 lines 0 comments Download
M content/browser/in_process_webkit/webkit_context.cc View 1 2 3 4 5 6 3 chunks +5 lines, -7 lines 0 comments Download
M content/browser/in_process_webkit/webkit_context_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
dgrogan
http://codereview.chromium.org/7053030/diff/7001/content/browser/in_process_webkit/webkit_context.cc File content/browser/in_process_webkit/webkit_context.cc (left): http://codereview.chromium.org/7053030/diff/7001/content/browser/in_process_webkit/webkit_context.cc#oldcode44 content/browser/in_process_webkit/webkit_context.cc:44: delete indexed_db_context; I forgot to revisit this after changing ...
9 years, 7 months ago (2011-05-26 01:37:42 UTC) #1
michaeln
http://codereview.chromium.org/7053030/diff/7001/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): http://codereview.chromium.org/7053030/diff/7001/chrome/browser/profiles/profile.cc#newcode688 chrome/browser/profiles/profile.cc:688: DCHECK(db_tracker_.get()); DCHECK(webkit_context_.get()) to be consistent http://codereview.chromium.org/7053030/diff/7001/chrome/browser/profiles/profile.cc#newcode717 chrome/browser/profiles/profile.cc:717: BrowserThread::PostTask( since ...
9 years, 7 months ago (2011-05-26 03:48:41 UTC) #2
dgrogan
Michael, could you take another look? http://codereview.chromium.org/7053030/diff/7001/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): http://codereview.chromium.org/7053030/diff/7001/chrome/browser/profiles/profile.cc#newcode688 chrome/browser/profiles/profile.cc:688: DCHECK(db_tracker_.get()); On 2011/05/26 ...
9 years, 7 months ago (2011-05-26 05:41:19 UTC) #3
michaeln
This framing looks familiar to me :) I'm not sure what sequence of CLs you ...
9 years, 7 months ago (2011-05-26 08:40:35 UTC) #4
michaeln
http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_context.cc File content/browser/in_process_webkit/indexed_db_context.cc (right): http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_context.cc#newcode67 content/browser/in_process_webkit/indexed_db_context.cc:67: quota_manager_proxy->RegisterClient( if you have in mind to land just ...
9 years, 7 months ago (2011-05-26 18:12:04 UTC) #5
dgrogan
http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_context.cc File content/browser/in_process_webkit/indexed_db_context.cc (right): http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_context.cc#newcode67 content/browser/in_process_webkit/indexed_db_context.cc:67: quota_manager_proxy->RegisterClient( On 2011/05/26 18:12:04, michaeln wrote: > if you ...
9 years, 7 months ago (2011-05-26 18:28:24 UTC) #6
michaeln
On 2011/05/26 18:28:24, dgrogan wrote: > http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_context.cc > File content/browser/in_process_webkit/indexed_db_context.cc (right): > > http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_context.cc#newcode67 > ...
9 years, 7 months ago (2011-05-26 19:23:34 UTC) #7
michaeln
> Visit a page that uses an IndexedDB or a WebSQLDB or the FileSystem, the ...
9 years, 7 months ago (2011-05-26 19:26:16 UTC) #8
dgrogan
http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_quota_client.cc File content/browser/in_process_webkit/indexed_db_quota_client.cc (right): http://codereview.chromium.org/7053030/diff/13001/content/browser/in_process_webkit/indexed_db_quota_client.cc#newcode24 content/browser/in_process_webkit/indexed_db_quota_client.cc:24: scoped_refptr<base::MessageLoopProxy> webkit_thread_message_loop) On 2011/05/26 08:40:35, michaeln wrote: > this ...
9 years, 7 months ago (2011-05-26 20:56:04 UTC) #9
michaeln
lgtm, but i think we need to find a 'content/in_process_webkit' owner?
9 years, 7 months ago (2011-05-26 21:57:13 UTC) #10
dgrogan
@darin for content OWNERS review
9 years, 7 months ago (2011-05-26 22:22:14 UTC) #11
commit-bot: I haz the power
Presubmit check for 7053030-10030 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-27 01:41:46 UTC) #12
dgrogan
@jam for content OWNERS review?
9 years, 7 months ago (2011-05-27 01:46:42 UTC) #13
dgrogan
Can this updated version get another look? An IndexedDBContext object was being leaked in the ...
9 years, 7 months ago (2011-05-28 01:52:43 UTC) #14
michaeln
On 2011/05/28 01:52:43, dgrogan wrote: > Can this updated version get another look? > > ...
9 years, 7 months ago (2011-05-28 02:14:08 UTC) #15
dgrogan
On 2011/05/28 02:14:08, michaeln wrote: > On 2011/05/28 01:52:43, dgrogan wrote: > > Can this ...
9 years, 7 months ago (2011-05-28 02:49:47 UTC) #16
jam
http://codereview.chromium.org/7053030/diff/15001/content/browser/in_process_webkit/indexed_db_context.h File content/browser/in_process_webkit/indexed_db_context.h (right): http://codereview.chromium.org/7053030/diff/15001/content/browser/in_process_webkit/indexed_db_context.h#newcode36 content/browser/in_process_webkit/indexed_db_context.h:36: DeleteOnWebKitThread> { if you want to handle the leak ...
9 years, 7 months ago (2011-05-28 03:08:51 UTC) #17
dgrogan
Michael, John, Could you take another look? Thanks. http://codereview.chromium.org/7053030/diff/15001/content/browser/in_process_webkit/indexed_db_context.h File content/browser/in_process_webkit/indexed_db_context.h (right): http://codereview.chromium.org/7053030/diff/15001/content/browser/in_process_webkit/indexed_db_context.h#newcode36 content/browser/in_process_webkit/indexed_db_context.h:36: DeleteOnWebKitThread> ...
9 years, 6 months ago (2011-05-31 23:26:07 UTC) #18
michaeln
LGTM
9 years, 6 months ago (2011-06-01 00:03:30 UTC) #19
jam
lgtm for the test change
9 years, 6 months ago (2011-06-01 01:33:31 UTC) #20
commit-bot: I haz the power
Change committed as 87424
9 years, 6 months ago (2011-06-01 02:42:29 UTC) #21
dgrogan
Michael, John, One more look? I missed a crucial part of the example John linked ...
9 years, 6 months ago (2011-06-01 23:18:12 UTC) #22
michaeln
lgtm - 3rd times the charm
9 years, 6 months ago (2011-06-02 01:35:11 UTC) #23
jam
lgtm
9 years, 6 months ago (2011-06-03 05:36:36 UTC) #24
commit-bot: I haz the power
Presubmit check for 7053030-29001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-03 17:56:00 UTC) #25
M-A Ruel
Fixed bug, reenabling commit bit.
9 years, 6 months ago (2011-06-03 18:45:01 UTC) #26
commit-bot: I haz the power
Change committed as 87834
9 years, 6 months ago (2011-06-03 19:43:34 UTC) #27
M-A Ruel
9 years, 6 months ago (2011-06-03 20:14:04 UTC) #28
On 2011/06/03 19:43:34, commit-bot wrote:
> Change committed as 87834

Sorry I had a silly bug in the commit queue that marked the new files on this
change as executable. I've fixed it in
http://src.chromium.org/viewvc/chrome?view=rev&revision=87843

Powered by Google App Engine
This is Rietveld 408576698