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

Issue 20015002: Make Platform::queryStorageUsageAndQuota work from worker threads (Closed)

Created:
7 years, 5 months ago by kinuko
Modified:
7 years, 4 months ago
Reviewers:
michaeln, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Make Platform::queryStorageUsageAndQuota work from worker threads For renderer/worker to browser side: - Always use thread-local QuotaDispatcher - Make QuotaDispatcher use ThreadSafeSender to send IPC msgs - Keep ipc_thread_id:request_id mapping in QuotaMessageFilter For browser to renderer/worker side: - Add QuotaMessageFilter to receive quota IPC msgs and to relay the msgs to the correct thread's QuotaDispatcher BUG=259660 TEST=no behavioral changes yet (fast/workers/*storagequota* after blink side changes) R=jam@chromium.org, michaeln@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214162

Patch Set 1 : #

Total comments: 6

Patch Set 2 : use map #

Total comments: 2

Patch Set 3 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -31 lines) Patch
M content/child/child_thread.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M content/child/child_thread.cc View 1 2 4 chunks +13 lines, -7 lines 0 comments Download
M content/child/quota_dispatcher.h View 1 4 chunks +25 lines, -7 lines 0 comments Download
M content/child/quota_dispatcher.cc View 1 2 7 chunks +43 lines, -5 lines 0 comments Download
A content/child/quota_message_filter.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
A content/child/quota_message_filter.cc View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M content/worker/worker_thread.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/worker/worker_webkitplatformsupport_impl.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M content/worker/worker_webkitplatformsupport_impl.cc View 1 3 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kinuko
Slightly not sure who to ask review for this... jam@, would you be able to ...
7 years, 5 months ago (2013-07-23 00:51:45 UTC) #1
jam
some comments: -it seems that we don't need to send the thread id across in ...
7 years, 5 months ago (2013-07-23 16:41:55 UTC) #2
kinuko
On 2013/07/23 16:41:55, jam wrote: > some comments: > > -it seems that we don't ...
7 years, 5 months ago (2013-07-24 11:25:27 UTC) #3
kinuko
On 2013/07/24 11:25:27, kinuko wrote: > On 2013/07/23 16:41:55, jam wrote: > > -it seems ...
7 years, 5 months ago (2013-07-25 06:29:28 UTC) #4
kinuko
Michael, maybe you can review this one too? This one's more straightforwardly following IDB model ...
7 years, 5 months ago (2013-07-26 02:23:33 UTC) #5
jam
lgtm https://codereview.chromium.org/20015002/diff/2001/content/child/quota_dispatcher.cc File content/child/quota_dispatcher.cc (right): https://codereview.chromium.org/20015002/diff/2001/content/child/quota_dispatcher.cc#newcode57 content/child/quota_dispatcher.cc:57: return WorkerTaskRunner::Instance()->CurrentWorkerId(); nit: adding this function for 2 ...
7 years, 5 months ago (2013-07-26 04:57:30 UTC) #6
michaeln
lgtm2
7 years, 5 months ago (2013-07-26 20:27:29 UTC) #7
kinuko
Thanks! https://codereview.chromium.org/20015002/diff/2001/content/child/quota_dispatcher.cc File content/child/quota_dispatcher.cc (right): https://codereview.chromium.org/20015002/diff/2001/content/child/quota_dispatcher.cc#newcode57 content/child/quota_dispatcher.cc:57: return WorkerTaskRunner::Instance()->CurrentWorkerId(); On 2013/07/26 04:57:30, jam wrote: > ...
7 years, 4 months ago (2013-07-29 04:31:55 UTC) #8
kinuko
7 years, 4 months ago (2013-07-29 06:22:15 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r214162 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698