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

Issue 33053002: Pepper: Move FileIO host from renderer to browser. (Closed)

Created:
7 years, 2 months ago by teravest
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, nhiroki
Visibility:
Public.

Description

Pepper: Move FileIO host from renderer to browser. This change is large because it moves QuotaFileIO and PepperFileIOHost all at once to the browser process. Some code in the refactored PepperFileIOHost is moved from what's provided in FileAPIMessageFilter. Tested locally with Bastion, From Dust, and Angry Bots. TBR=jschuh BUG=246396 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232440 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232547 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234883

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix ProcessHandle crashes #

Patch Set 3 : Fixes for bbudge #

Total comments: 30

Patch Set 4 : Fixes for kinuko (and more for bbudge) #

Patch Set 5 : Threading fix for kinuko #

Patch Set 6 : Fix for in-process plugins on Windows. #

Patch Set 7 : ASAN build fix #

Patch Set 8 : Followup build fix #

Patch Set 9 : Fix Touch and SetLength #

Patch Set 10 : ASAN fix #

Patch Set 11 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+700 lines, -1934 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_system_operation.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_system_operation.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -30 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.h View 1 2 3 4 4 chunks +0 lines, -18 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 6 chunks +0 lines, -133 lines 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc View 2 chunks +5 lines, -0 lines 0 comments Download
A + content/browser/renderer_host/pepper/pepper_file_io_host.h View 1 2 3 4 5 6 7 8 9 9 chunks +51 lines, -35 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_file_io_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +598 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_ref_host.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_ref_host.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -5 lines 0 comments Download
A + content/browser/renderer_host/pepper/quota_file_io.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
A + content/browser/renderer_host/pepper/quota_file_io.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
A + content/browser/renderer_host/pepper/quota_file_io_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -30 lines 0 comments Download
M content/child/fileapi/file_system_dispatcher.h View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M content/child/fileapi/file_system_dispatcher.cc View 1 2 3 1 chunk +0 lines, -17 lines 0 comments Download
M content/common/fileapi/file_system_messages.h View 1 2 3 2 chunks +0 lines, -18 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -12 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -4 lines 0 comments Download
D content/renderer/pepper/pepper_file_io_host.h View 1 chunk +0 lines, -134 lines 0 comments Download
D content/renderer/pepper/pepper_file_io_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -493 lines 0 comments Download
D content/renderer/pepper/quota_file_io.h View 1 chunk +0 lines, -127 lines 0 comments Download
D content/renderer/pepper/quota_file_io.cc View 1 chunk +0 lines, -359 lines 0 comments Download
D content/renderer/pepper/quota_file_io_unittest.cc View 1 chunk +0 lines, -426 lines 0 comments Download
M ppapi/proxy/file_io_resource.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +8 lines, -8 lines 0 comments Download
M webkit/browser/fileapi/file_system_operation.h View 1 2 chunks +1 line, -6 lines 0 comments Download
M webkit/browser/fileapi/file_system_operation_impl.h View 1 2 chunks +0 lines, -5 lines 0 comments Download
M webkit/browser/fileapi/file_system_operation_impl.cc View 1 4 chunks +3 lines, -10 lines 0 comments Download
M webkit/browser/fileapi/file_system_operation_runner.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M webkit/browser/fileapi/file_system_operation_runner.cc View 1 2 3 4 5 4 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
teravest
7 years, 2 months ago (2013-10-21 16:59:05 UTC) #1
bbudge
Comments so far. I'll make another pass on the new CL soon. https://codereview.chromium.org/33053002/diff/1/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc ...
7 years, 2 months ago (2013-10-22 01:59:38 UTC) #2
teravest
https://codereview.chromium.org/33053002/diff/1/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/33053002/diff/1/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode46 content/browser/renderer_host/pepper/pepper_file_io_host.cc:46: // things depending on whether is negative or not. ...
7 years, 2 months ago (2013-10-22 15:45:05 UTC) #3
teravest
+tzik for webkit/browser/fileapi +joi for content/public +kinuko for content/child/fileapi and content/common/fileapi
7 years, 2 months ago (2013-10-22 16:01:59 UTC) #4
Jói
//content/public LGTM.
7 years, 2 months ago (2013-10-22 16:23:52 UTC) #5
bbudge
A few more things. Looking good. https://codereview.chromium.org/33053002/diff/230001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/33053002/diff/230001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode10 content/browser/renderer_host/pepper/pepper_file_io_host.cc:10: #include "base/command_line.h" Is ...
7 years, 2 months ago (2013-10-22 17:25:36 UTC) #6
kinuko
https://codereview.chromium.org/33053002/diff/230001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/33053002/diff/230001/content/browser/fileapi/fileapi_message_filter.cc#newcode513 content/browser/fileapi/fileapi_message_filter.cc:513: } This logic can be probably removed (and we ...
7 years, 2 months ago (2013-10-23 07:16:04 UTC) #7
tzik
webkit/browser/fileapi changes LGTM
7 years, 2 months ago (2013-10-23 09:28:50 UTC) #8
teravest
https://codereview.chromium.org/33053002/diff/230001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/33053002/diff/230001/content/browser/fileapi/fileapi_message_filter.cc#newcode513 content/browser/fileapi/fileapi_message_filter.cc:513: } On 2013/10/23 07:16:04, kinuko wrote: > This logic ...
7 years, 2 months ago (2013-10-23 16:54:27 UTC) #9
bbudge
LGTM https://codereview.chromium.org/33053002/diff/230001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/33053002/diff/230001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode168 content/browser/renderer_host/pepper/pepper_file_io_host.cc:168: OnHostMsgClose(NULL); On 2013/10/23 16:54:27, teravest wrote: > On ...
7 years, 2 months ago (2013-10-23 17:04:52 UTC) #10
teravest
+jochen for chrome/renderer/*, content/content_renderer.gypi, content/content_tests.gypi +jschuh for content/common/view_messages.h, content/common/fileapi/file_system_messages.h +jam for content/content_browser.gypi
7 years, 2 months ago (2013-10-23 17:52:04 UTC) #11
jam
On 2013/10/23 17:52:04, teravest wrote: > +jochen for chrome/renderer/*, content/content_renderer.gypi, > content/content_tests.gypi > > +jschuh ...
7 years, 2 months ago (2013-10-24 00:31:18 UTC) #12
kinuko
https://codereview.chromium.org/33053002/diff/230001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/33053002/diff/230001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode434 content/browser/renderer_host/pepper/pepper_file_io_host.cc:434: browser_ppapi_host_->GetDocumentURLForInstance(pp_instance()))) { On 2013/10/23 16:54:27, teravest wrote: > On ...
7 years, 2 months ago (2013-10-24 02:31:00 UTC) #13
jochen (gone - plz use gerrit)
chrome/renderer lgtm
7 years, 2 months ago (2013-10-24 12:41:07 UTC) #14
teravest1
On Wed, Oct 23, 2013 at 8:31 PM, <kinuko@chromium.org> wrote: > > https://codereview.chromium.org/33053002/diff/230001/content/browser/renderer_host/pepper/pepper_file_io_host.cc > File ...
7 years, 2 months ago (2013-10-24 14:45:42 UTC) #15
kinuko
lgtm (for the files I reviewed), thanks! > > As you wrote below RPH doesn't ...
7 years, 2 months ago (2013-10-24 15:37:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/570001
7 years, 2 months ago (2013-10-24 15:46:32 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=213280
7 years, 2 months ago (2013-10-24 21:20:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/570001
7 years, 2 months ago (2013-10-24 22:34:30 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=213488
7 years, 2 months ago (2013-10-25 02:51:07 UTC) #20
teravest
I (think) was able to debug what's going wrong here-- the (int) "render process id" ...
7 years, 1 month ago (2013-10-25 17:19:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/1020001
7 years, 1 month ago (2013-10-30 15:45:31 UTC) #22
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=95122
7 years, 1 month ago (2013-10-30 19:37:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/1020001
7 years, 1 month ago (2013-10-30 19:53:58 UTC) #24
commit-bot: I haz the power
Failed to trigger a try job on win7_aura HTTP Error 400: Bad Request
7 years, 1 month ago (2013-10-30 22:35:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/1240001
7 years, 1 month ago (2013-10-31 13:57:04 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=183221
7 years, 1 month ago (2013-10-31 16:53:28 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/1240001
7 years, 1 month ago (2013-10-31 16:58:01 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=170226
7 years, 1 month ago (2013-10-31 19:44:14 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/1240001
7 years, 1 month ago (2013-10-31 19:51:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/1240001
7 years, 1 month ago (2013-10-31 23:12:23 UTC) #31
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-01 01:33:50 UTC) #32
teravest
Disabled a (buggy) newly introduced test which caused problems with this change: https://codereview.chromium.org/55823004/
7 years, 1 month ago (2013-11-01 14:32:44 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/1240001
7 years, 1 month ago (2013-11-01 14:33:22 UTC) #34
commit-bot: I haz the power
Change committed as 232440
7 years, 1 month ago (2013-11-01 19:33:10 UTC) #35
csharp1
On 2013/11/01 19:33:10, I haz the power (commit-bot) wrote: > Change committed as 232440 Reverted ...
7 years, 1 month ago (2013-11-01 20:37:19 UTC) #36
teravest
Yep, that was a legitimate ASAN failure.
7 years, 1 month ago (2013-11-01 21:48:41 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/2010001
7 years, 1 month ago (2013-11-01 22:09:59 UTC) #38
commit-bot: I haz the power
Change committed as 232547
7 years, 1 month ago (2013-11-02 01:39:47 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/33053002/2310001
7 years, 1 month ago (2013-11-13 16:12:39 UTC) #40
commit-bot: I haz the power
7 years, 1 month ago (2013-11-13 20:09:27 UTC) #41
Message was sent while issue was closed.
Change committed as 234883

Powered by Google App Engine
This is Rietveld 408576698