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

Issue 19387002: Implement Worker-MainThread bridge for FileSystem API in Chrome (Closed)

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

Description

Implement Worker-MainThread bridge for FileSystem API in Chrome This basically adds the same worker/mainThread bridge functionality for FileSystem API in Chrome side. Keeping bridge code around is suboptimal, but this allows us to remove bridge code in Blink side which in turn allows us to make further worker-related cleanups in Blink. This change doesn't contain FileWriter related changes yet. (For reference, combined patch is uploaded here: https://codereview.chromium.org/19287010/) BUG=257349 TEST=no behavioral changes yet R=atwilson@chromium.org, jochen@chromium.org, michaeln@chromium.org, tzik@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214160

Patch Set 1 : #

Patch Set 2 : rebase + nits fix #

Total comments: 15

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : more fix #

Patch Set 6 : thread-local map #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -141 lines) Patch
M content/child/fileapi/file_system_dispatcher.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M content/child/fileapi/file_system_dispatcher.cc View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M content/child/fileapi/webfilesystem_callback_adapters.h View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
M content/child/fileapi/webfilesystem_callback_adapters.cc View 1 2 3 4 5 1 chunk +0 lines, -31 lines 0 comments Download
M content/child/fileapi/webfilesystem_impl.h View 1 2 3 4 3 chunks +10 lines, -2 lines 0 comments Download
M content/child/fileapi/webfilesystem_impl.cc View 1 2 3 4 5 5 chunks +316 lines, -86 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/worker/worker_webkitplatformsupport_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
kinuko
Michael, as I wrote in other issue I ended up implementing bridge code in Chrome ...
7 years, 5 months ago (2013-07-16 14:35:43 UTC) #1
kinuko
Michael seems busy or not around. tzik: would you be able to do the fileapi-specific ...
7 years, 5 months ago (2013-07-22 02:22:40 UTC) #2
tzik
lgtm
7 years, 5 months ago (2013-07-22 04:18:23 UTC) #3
kinuko
Avi, can you take a brief look at /content/{renderer,worker} changes?
7 years, 5 months ago (2013-07-22 04:51:01 UTC) #4
kinuko
(-avi) jochen, atwilson: can you review /content/{renderer,worker} changes?
7 years, 5 months ago (2013-07-23 01:00:46 UTC) #5
jochen (gone - plz use gerrit)
content/renderer lgtm
7 years, 5 months ago (2013-07-23 11:02:48 UTC) #6
Andrew T Wilson (Slow)
content/worker lgtm
7 years, 5 months ago (2013-07-23 13:03:20 UTC) #7
michaeln
https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/file_system_dispatcher.cc File content/child/fileapi/file_system_dispatcher.cc (right): https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/file_system_dispatcher.cc#newcode20 content/child/fileapi/file_system_dispatcher.cc:20: base::MessageLoopProxy* message_loop) { You might be able to use ...
7 years, 5 months ago (2013-07-24 00:54:08 UTC) #8
michaeln
https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/file_system_dispatcher.cc File content/child/fileapi/file_system_dispatcher.cc (right): https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/file_system_dispatcher.cc#newcode113 content/child/fileapi/file_system_dispatcher.cc:113: snapshot_callback_.Run(file_info, platform_path, did_receive_snapshot); What method/function is snapshot_callback_ this wired ...
7 years, 5 months ago (2013-07-24 01:38:58 UTC) #9
michaeln
https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/webfilesystem_impl.cc#newcode70 content/child/fileapi/webfilesystem_impl.cc:70: delete this; Oh, I have another question about this ...
7 years, 5 months ago (2013-07-24 06:19:12 UTC) #10
kinuko
https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/file_system_dispatcher.cc File content/child/fileapi/file_system_dispatcher.cc (right): https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/file_system_dispatcher.cc#newcode20 content/child/fileapi/file_system_dispatcher.cc:20: base::MessageLoopProxy* message_loop) { On 2013/07/24 00:54:08, michaeln wrote: > ...
7 years, 5 months ago (2013-07-24 09:29:09 UTC) #11
kinuko
https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/webfilesystem_impl.cc#newcode68 content/child/fileapi/webfilesystem_impl.cc:68: virtual void OnWorkerRunLoopStopped() OVERRIDE { On 2013/07/24 09:29:09, kinuko ...
7 years, 5 months ago (2013-07-24 11:03:29 UTC) #12
kinuko
https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/19387002/diff/32001/content/child/fileapi/webfilesystem_impl.cc#newcode68 content/child/fileapi/webfilesystem_impl.cc:68: virtual void OnWorkerRunLoopStopped() OVERRIDE { On 2013/07/24 11:03:29, kinuko ...
7 years, 5 months ago (2013-07-24 11:15:41 UTC) #13
michaeln
See my 2nd inline comment in particular. > Oops, callbacks can't be deleted from outside ...
7 years, 5 months ago (2013-07-24 22:21:12 UTC) #14
kinuko
https://codereview.chromium.org/19387002/diff/100002/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/19387002/diff/100002/content/child/fileapi/webfilesystem_impl.cc#newcode122 content/child/fileapi/webfilesystem_impl.cc:122: new FileSystemHostMsg_DidReceiveSnapshotFile(request_id)); On 2013/07/24 22:21:12, michaeln wrote: > Drat, ...
7 years, 5 months ago (2013-07-25 04:32:41 UTC) #15
michaeln
https://codereview.chromium.org/19387002/diff/100002/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/19387002/diff/100002/content/child/fileapi/webfilesystem_impl.cc#newcode139 content/child/fileapi/webfilesystem_impl.cc:139: delete this; > Right. I overlooked PostTask returns false ...
7 years, 5 months ago (2013-07-25 21:39:08 UTC) #16
kinuko
https://codereview.chromium.org/19387002/diff/100002/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/19387002/diff/100002/content/child/fileapi/webfilesystem_impl.cc#newcode139 content/child/fileapi/webfilesystem_impl.cc:139: delete this; On 2013/07/25 21:39:08, michaeln wrote: > > ...
7 years, 5 months ago (2013-07-26 12:29:55 UTC) #17
michaeln
LGTM!
7 years, 4 months ago (2013-07-26 20:19:07 UTC) #18
kinuko
Thanks for reviewing!
7 years, 4 months ago (2013-07-29 02:55:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/19387002/232001
7 years, 4 months ago (2013-07-29 03:01:02 UTC) #20
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=64303
7 years, 4 months ago (2013-07-29 04:23:42 UTC) #21
kinuko
7 years, 4 months ago (2013-07-29 05:49:12 UTC) #22
Message was sent while issue was closed.
Committed patchset #7 manually as r214160 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698