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

Issue 210027: Move FTP LIST parsing code to the renderer process. (Closed)

Created:
11 years, 3 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Move FTP LIST parsing code to the renderer process. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26860

Patch Set 1 #

Patch Set 2 : add files #

Patch Set 3 : comments #

Total comments: 7

Patch Set 4 : updated #

Patch Set 5 : fixes #

Total comments: 4

Patch Set 6 : fixes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -287 lines) Patch
M chrome/browser/browser_main.cc View 4 5 4 chunks +3 lines, -41 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
A chrome/common/net/net_resource_provider.h View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/common/net/net_resource_provider.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_main.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M net/base/mime_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_new_ftp_job.h View 2 chunks +3 lines, -8 lines 0 comments Download
M net/url_request/url_request_new_ftp_job.cc View 1 2 3 4 5 7 chunks +9 lines, -232 lines 0 comments Download
M webkit/glue/DEPS View 2 chunks +2 lines, -1 line 0 comments Download
A webkit/glue/ftp_directory_listing_response_delegate.h View 2 1 chunk +62 lines, -0 lines 1 comment Download
A webkit/glue/ftp_directory_listing_response_delegate.cc View 2 3 4 5 1 chunk +253 lines, -0 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 2 3 4 5 6 chunks +20 lines, -4 lines 2 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Paweł Hajdan Jr.
So, it works! One thing I'm concerned about is that the NetModule-related code is duplicated ...
11 years, 3 months ago (2009-09-19 00:40:15 UTC) #1
eroman
Cool, I am excited to see this happening! General implementation comment: I don't think we ...
11 years, 3 months ago (2009-09-21 00:36:34 UTC) #2
darin (slow to review)
http://codereview.chromium.org/210027/diff/3001/4002 File chrome/renderer/renderer_main.cc (right): http://codereview.chromium.org/210027/diff/3001/4002#newcode113 Line 113: base::LazyInstance<LazyDirectoryListerCacher> lazy_dir_lister( On 2009/09/21 00:36:34, eroman wrote: > ...
11 years, 3 months ago (2009-09-21 16:50:49 UTC) #3
darin (slow to review)
Oh, and I agree in general that re-computing the result each time is probably better ...
11 years, 3 months ago (2009-09-21 16:51:11 UTC) #4
wtc
eroman and darin can review the renderer changes better than I can. I have just ...
11 years, 3 months ago (2009-09-21 18:59:13 UTC) #5
Paweł Hajdan Jr.
I moved the "caching" code to chrome/common/net. We're stuck with this "caching" because StringPiece doesn't ...
11 years, 3 months ago (2009-09-21 20:22:44 UTC) #6
Paweł Hajdan Jr.
eroman, I plan to add a UI test but currently it would just navigate to ...
11 years, 3 months ago (2009-09-21 20:27:35 UTC) #7
Paweł Hajdan Jr.
ping! ping! ping!
11 years, 3 months ago (2009-09-22 16:32:09 UTC) #8
darin (slow to review)
overall, looks great to me. just some minor issues: http://codereview.chromium.org/210027/diff/2003/1014 File chrome/common/net/net_resource_provider.cc (right): http://codereview.chromium.org/210027/diff/2003/1014#newcode6 Line ...
11 years, 3 months ago (2009-09-22 18:21:20 UTC) #9
eroman
11 years, 3 months ago (2009-09-23 21:14:49 UTC) #10
lgtm!

http://codereview.chromium.org/210027/diff/2012/2023
File webkit/glue/ftp_directory_listing_response_delegate.h (right):

http://codereview.chromium.org/210027/diff/2012/2023#newcode44
Line 44: // starting point for each parts response.
nit: "parts" --> "part's"

http://codereview.chromium.org/210027/diff/2012/2024
File webkit/glue/weburlloader_impl.cc (right):

http://codereview.chromium.org/210027/diff/2012/2024#newcode432
Line 432: if (info.mime_type == "text/vnd.chromium.ftp-dir")
I am still not convinced that we want to expose this mime type for other server
responses to use... But I guess if Darin is OK with it then it's fine.

http://codereview.chromium.org/210027/diff/2012/2024#newcode433
Line 433: response.setMIMEType(WebString::fromUTF8("text/html"));
should we additionally specify the charset? Or is the listing HTML going to be
purely ISO-8859-1?

Powered by Google App Engine
This is Rietveld 408576698