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

Issue 10537056: Replaced static URLRequestFtpJob factory with non-static protocol handler for FTP jobs. (Closed)

Created:
8 years, 6 months ago by shalev
Modified:
8 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Replaced static URLRequestFtpJob factory with non-static protocol handler for FTP jobs. Note: all tests for FTP are currently disabled. The tests have been run locally and a new mock-based test will be added before committing. Note: this depends on http://codereview.chromium.org/10704021/ BUG=None TEST=net_unittests --gtest_filter=URLRequestTestFTP.* --gtest_also_run_disabled_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146125

Patch Set 1 #

Total comments: 24

Patch Set 2 : Addressed Erik's comments #

Patch Set 3 : Added DCHECKs back #

Patch Set 4 : Added DISALLOW_COPY_AND_ASSIGN #

Patch Set 5 : Fixed ftp_auth_cache ownership #

Patch Set 6 : Added DCHECKs #

Total comments: 5

Patch Set 7 : Created different factories for the different contexts in profile_impl_io_data and off_the_record #

Total comments: 4

Patch Set 8 : Merged with network_delegate change #

Total comments: 10

Patch Set 9 : Removed variables #

Patch Set 10 : Added for loop in impl_io_data #

Patch Set 11 : Removed whitespace #

Total comments: 20

Patch Set 12 : Fixed nits #

Patch Set 13 : fixed merge #

Patch Set 14 : Fixed job factories in off_the_record #

Total comments: 14

Patch Set 15 : Fixed nits #

Patch Set 16 : Moved profile changes to a different cl #

Patch Set 17 : Fixed ftp_auth_cache #

Total comments: 2

Patch Set 18 : Fixed nit #

Patch Set 19 : Merged with latest sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -20 lines) Patch
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +17 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
A net/url_request/ftp_protocol_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +39 lines, -0 lines 0 comments Download
A net/url_request/ftp_protocol_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +31 lines, -0 lines 0 comments Download
M net/url_request/url_request_ftp_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -2 lines 0 comments Download
M net/url_request/url_request_ftp_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +21 lines, -18 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
erikwright (departed)
http://codereview.chromium.org/10537056/diff/1/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10537056/diff/1/chrome/browser/profiles/profile_impl_io_data.cc#newcode35 chrome/browser/profiles/profile_impl_io_data.cc:35: #include "net/url_request/url_request_ftp_job.h" Probably don't need url_request_ftp_job.h anymore. http://codereview.chromium.org/10537056/diff/1/net/url_request/ftp_protocol_handler.h File ...
8 years, 6 months ago (2012-06-07 19:14:51 UTC) #1
Paweł Hajdan Jr.
I'm not sure what's the main point of this change. More indirection? I think we ...
8 years, 6 months ago (2012-06-07 19:30:21 UTC) #2
erikwright (departed)
http://codereview.chromium.org/10537056/diff/1/net/url_request/url_request_ftp_job.cc File net/url_request/url_request_ftp_job.cc (left): http://codereview.chromium.org/10537056/diff/1/net/url_request/url_request_ftp_job.cc#oldcode38 net/url_request/url_request_ftp_job.cc:38: DCHECK(request->context()); On 2012/06/07 19:30:21, Paweł Hajdan Jr. wrote: > ...
8 years, 6 months ago (2012-06-07 19:40:40 UTC) #3
erikwright (departed)
Hi Will, I think this is ready for you to take first look at. Conceptually, ...
8 years, 6 months ago (2012-06-11 15:43:02 UTC) #4
erikwright (departed)
Hi Will, Forgot to add you as a reviewer. Please see my last comment. Thanks, ...
8 years, 6 months ago (2012-06-11 15:43:45 UTC) #5
willchan no longer on Chromium
We need to update OffTheRecordProfileIOData too, right? http://codereview.chromium.org/10537056/diff/3009/net/url_request/ftp_protocol_handler.cc File net/url_request/ftp_protocol_handler.cc (right): http://codereview.chromium.org/10537056/diff/3009/net/url_request/ftp_protocol_handler.cc#newcode22 net/url_request/ftp_protocol_handler.cc:22: } I ...
8 years, 6 months ago (2012-06-11 21:02:26 UTC) #6
erikwright (departed)
Yes, the OffTheRecord profile can be updated too. It's not required to be a part ...
8 years, 6 months ago (2012-06-11 21:05:40 UTC) #7
erikwright (departed)
Will, PTAL. In particular, having to configure the 2-3 job factories independently and nearly identically ...
8 years, 6 months ago (2012-06-13 15:31:42 UTC) #8
willchan no longer on Chromium
On 2012/06/13 15:31:42, erikwright wrote: > Will, PTAL. > > In particular, having to configure ...
8 years, 6 months ago (2012-06-13 21:40:00 UTC) #9
shalev
http://codereview.chromium.org/10537056/diff/1/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10537056/diff/1/chrome/browser/profiles/profile_impl_io_data.cc#newcode35 chrome/browser/profiles/profile_impl_io_data.cc:35: #include "net/url_request/url_request_ftp_job.h" On 2012/06/07 19:14:51, erikwright wrote: > Probably ...
8 years, 6 months ago (2012-06-21 20:04:54 UTC) #10
erikwright (departed)
http://codereview.chromium.org/10537056/diff/16001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/10537056/diff/16001/chrome/browser/profiles/profile_io_data.h#newcode217 chrome/browser/profiles/profile_io_data.h:217: net::URLRequestJobFactory* job_factory() const { Remove http://codereview.chromium.org/10537056/diff/16001/chrome/browser/profiles/profile_io_data.h#newcode327 chrome/browser/profiles/profile_io_data.h:327: mutable scoped_ptr<net::URLRequestJobFactory> ...
8 years, 6 months ago (2012-06-21 20:21:30 UTC) #11
shalev
http://codereview.chromium.org/10537056/diff/16001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/10537056/diff/16001/chrome/browser/profiles/profile_io_data.h#newcode217 chrome/browser/profiles/profile_io_data.h:217: net::URLRequestJobFactory* job_factory() const { On 2012/06/21 20:21:30, erikwright wrote: ...
8 years, 6 months ago (2012-06-21 20:38:54 UTC) #12
shalev
Hi Will and Matt, could one of you take a look at this? Thanks, Shalev
8 years, 6 months ago (2012-06-26 17:56:23 UTC) #13
mmenke
On 2012/06/26 17:56:23, shalev wrote: > Hi Will and Matt, > > could one of ...
8 years, 6 months ago (2012-06-26 17:59:32 UTC) #14
mmenke
A couple nits on the net side of things, which look pretty good to me. ...
8 years, 6 months ago (2012-06-26 18:36:10 UTC) #15
shalev
Hi Matt, After looking at the code again, I realized I am setting up the ...
8 years, 6 months ago (2012-06-26 19:05:01 UTC) #16
mmenke
Files modified from your earlier CL are now appearing as modified in this one. Bad ...
8 years, 6 months ago (2012-06-26 19:53:37 UTC) #17
shalev
Hi Matt, Everything should be fixed now. Feel free to take another look. Shalev
8 years, 6 months ago (2012-06-26 20:53:33 UTC) #18
mmenke
I think this CL does a little too much. In addition to adding the ftp ...
8 years, 5 months ago (2012-06-27 17:20:07 UTC) #19
shalev
message: Hi Matt, You are right that this cl is doing a lot of things. ...
8 years, 5 months ago (2012-06-27 20:10:43 UTC) #20
mmenke
On 2012/06/27 20:10:43, shalev wrote: > message: Hi Matt, > > You are right that ...
8 years, 5 months ago (2012-06-27 20:39:47 UTC) #21
mmenke
On 2012/06/27 20:39:47, Matt Menke wrote: > On 2012/06/27 20:10:43, shalev wrote: > > message: ...
8 years, 5 months ago (2012-06-27 20:40:41 UTC) #22
shalev
On 2012/06/27 20:40:41, Matt Menke wrote: > On 2012/06/27 20:39:47, Matt Menke wrote: > > ...
8 years, 5 months ago (2012-06-29 15:35:25 UTC) #23
mmenke
On 2012/06/29 15:35:25, shalev wrote: > I also changed the ownership of ftp_auth_cache back to ...
8 years, 5 months ago (2012-06-29 16:08:09 UTC) #24
willchan no longer on Chromium
That would be me, I'll take a look. On Fri, Jun 29, 2012 at 9:08 ...
8 years, 5 months ago (2012-06-29 17:14:42 UTC) #25
willchan no longer on Chromium
lgtm
8 years, 5 months ago (2012-06-29 17:19:14 UTC) #26
shalev
http://codereview.chromium.org/10537056/diff/16001/net/url_request/url_request_ftp_job.cc File net/url_request/url_request_ftp_job.cc (right): http://codereview.chromium.org/10537056/diff/16001/net/url_request/url_request_ftp_job.cc#newcode27 net/url_request/url_request_ftp_job.cc:27: : URLRequestJob(request, request->context()->network_delegate()), On 2012/06/21 20:21:30, erikwright wrote: > ...
8 years, 5 months ago (2012-06-29 17:51:27 UTC) #27
mmenke
http://codereview.chromium.org/10537056/diff/62003/net/url_request/ftp_protocol_handler.cc File net/url_request/ftp_protocol_handler.cc (right): http://codereview.chromium.org/10537056/diff/62003/net/url_request/ftp_protocol_handler.cc#newcode6 net/url_request/ftp_protocol_handler.cc:6: #include "net/url_request/ftp_protocol_handler.h" This should go first, with a blank ...
8 years, 5 months ago (2012-06-29 20:49:59 UTC) #28
shalev
http://codereview.chromium.org/10537056/diff/62003/net/url_request/ftp_protocol_handler.cc File net/url_request/ftp_protocol_handler.cc (right): http://codereview.chromium.org/10537056/diff/62003/net/url_request/ftp_protocol_handler.cc#newcode6 net/url_request/ftp_protocol_handler.cc:6: #include "net/url_request/ftp_protocol_handler.h" On 2012/06/29 20:49:59, Matt Menke wrote: > ...
8 years, 5 months ago (2012-07-03 19:41:46 UTC) #29
erikwright (departed)
LGTM.
8 years, 5 months ago (2012-07-10 14:30:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shalev@chromium.org/10537056/66007
8 years, 5 months ago (2012-07-11 14:34:34 UTC) #31
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 15:46:00 UTC) #32
Change committed as 146125

Powered by Google App Engine
This is Rietveld 408576698