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

Issue 38303002: Enable Mojo to download from file URLs (Closed)

Created:
7 years, 2 months ago by Aaron Boodman
Modified:
7 years, 1 month ago
CC:
chromium-reviews, darin (slow to review), ben+mojo_chromium.org, cbentzel+watch_chromium.org, viettrungluu+watch_chromium.org
Visibility:
Public.

Description

Mostly useful for testing. Added default implementations for methods in net::NetworkDelegate to make it easier to implement, and more likely for implementations to be correct. BUG=310297 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231489

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : Remove unneeded include #

Total comments: 3

Patch Set 4 : blech #

Patch Set 5 : blah #

Total comments: 4

Patch Set 6 : blech #

Patch Set 7 : move little lost notify methods #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -37 lines) Patch
M mojo/mojo.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/shell/context.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/shell/loader.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/shell/loader.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
A mojo/shell/network_delegate.h View 1 chunk +24 lines, -0 lines 0 comments Download
A mojo/shell/network_delegate.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M mojo/shell/url_request_context_getter.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M mojo/shell/url_request_context_getter.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -2 lines 0 comments Download
M net/base/network_delegate.h View 1 2 3 4 5 3 chunks +23 lines, -23 lines 0 comments Download
M net/base/network_delegate.cc View 1 2 3 4 5 6 3 chunks +93 lines, -10 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Aaron Boodman
After Darin's email today about how to run a little localhost for testing, I'm not ...
7 years, 2 months ago (2013-10-24 06:08:33 UTC) #1
darin (slow to review)
This kind of thing still seems useful to me. https://codereview.chromium.org/38303002/diff/40001/mojo/DEPS File mojo/DEPS (right): https://codereview.chromium.org/38303002/diff/40001/mojo/DEPS#newcode5 mojo/DEPS:5: ...
7 years, 2 months ago (2013-10-24 06:13:25 UTC) #2
abarth-chromium
Maybe it's not worth trying to keep the |net| dependencies separate. I was thinking we'd ...
7 years, 2 months ago (2013-10-24 14:26:46 UTC) #3
abarth-chromium
https://codereview.chromium.org/38303002/diff/40001/mojo/DEPS File mojo/DEPS (right): https://codereview.chromium.org/38303002/diff/40001/mojo/DEPS#newcode5 mojo/DEPS:5: "+net", LGTM if you move this +net line into ...
7 years, 2 months ago (2013-10-24 16:25:22 UTC) #4
Aaron Boodman
+willchan for net/ I moved the net dependency down into mojo/shell. Per abarth's suggestion, I ...
7 years, 2 months ago (2013-10-24 17:53:13 UTC) #5
Aaron Boodman
s/willchan/akalin
7 years, 1 month ago (2013-10-24 21:48:34 UTC) #6
willchan no longer on Chromium
Matt's probably more appropriate here. Sorry I didn't redirect sooner, I was in meetings all ...
7 years, 1 month ago (2013-10-24 22:03:36 UTC) #7
mmenke
I'll look at this tomorrow, but we should have a couple unit tests making sure ...
7 years, 1 month ago (2013-10-24 22:46:23 UTC) #8
akalin
On 2013/10/24 22:46:23, mmenke wrote: > I'll look at this tomorrow, but we should have ...
7 years, 1 month ago (2013-10-25 13:29:59 UTC) #9
abarth-chromium
On 2013/10/25 13:29:59, akalin wrote: > Can you add a comment in the CL description ...
7 years, 1 month ago (2013-10-25 13:36:01 UTC) #10
akalin
On 2013/10/25 13:36:01, abarth wrote: > On 2013/10/25 13:29:59, akalin wrote: > > Can you ...
7 years, 1 month ago (2013-10-25 13:42:45 UTC) #11
mmenke
My suggestions for tests: Normal request, with body. Redirect. Auth required (Should fail). file:// request ...
7 years, 1 month ago (2013-10-25 17:59:14 UTC) #12
Aaron Boodman
On 2013/10/25 13:29:59, akalin wrote: > On 2013/10/24 22:46:23, mmenke wrote: > > I'll look ...
7 years, 1 month ago (2013-10-25 21:13:00 UTC) #13
Aaron Boodman
On 2013/10/25 13:42:45, akalin wrote: > On 2013/10/25 13:36:01, abarth wrote: > > On 2013/10/25 ...
7 years, 1 month ago (2013-10-25 21:13:22 UTC) #14
Aaron Boodman
ptal I believe I have addressed everything except mmenke's suggestions for unit tests. I agree ...
7 years, 1 month ago (2013-10-25 21:19:49 UTC) #15
Aaron Boodman
https://codereview.chromium.org/38303002/diff/140001/net/base/network_delegate.cc File net/base/network_delegate.cc (right): https://codereview.chromium.org/38303002/diff/140001/net/base/network_delegate.cc#newcode227 net/base/network_delegate.cc:227: void NetworkDelegate::NotifyRequestWaitStateChange(const URLRequest& request, On 2013/10/25 17:59:14, mmenke wrote: ...
7 years, 1 month ago (2013-10-25 21:21:41 UTC) #16
Aaron Boodman
On Fri, Oct 25, 2013 at 2:19 PM, <aa@chromium.org> wrote: > I agree there should ...
7 years, 1 month ago (2013-10-28 20:15:32 UTC) #17
mmenke
On 2013/10/28 20:15:32, Aaron Boodman wrote: > On Fri, Oct 25, 2013 at 2:19 PM, ...
7 years, 1 month ago (2013-10-28 20:22:59 UTC) #18
willchan no longer on Chromium
Aaron pinged me about this so I took a quick look. It looks like the ...
7 years, 1 month ago (2013-10-28 20:45:33 UTC) #19
mmenke
On 2013/10/28 20:45:33, willchan wrote: > Aaron pinged me about this so I took a ...
7 years, 1 month ago (2013-10-28 20:53:46 UTC) #20
Aaron Boodman
On Mon, Oct 28, 2013 at 1:53 PM, <mmenke@chromium.org> wrote: > On 2013/10/28 20:45:33, willchan ...
7 years, 1 month ago (2013-10-28 20:55:52 UTC) #21
willchan no longer on Chromium
I'm trying to understand what can break. Can you elaborate? My understanding is every existing ...
7 years, 1 month ago (2013-10-28 20:58:01 UTC) #22
mmenke
On 2013/10/28 20:58:01, willchan wrote: > I'm trying to understand what can break. Can you ...
7 years, 1 month ago (2013-10-28 20:59:30 UTC) #23
mmenke
On 2013/10/28 20:55:52, Aaron Boodman wrote: > On Mon, Oct 28, 2013 at 1:53 PM, ...
7 years, 1 month ago (2013-10-28 21:01:05 UTC) #24
willchan no longer on Chromium
If that's the case, do you fundamentally disagree with providing default implementations? Or only for ...
7 years, 1 month ago (2013-10-28 21:02:21 UTC) #25
mmenke
On 2013/10/28 21:02:21, willchan wrote: > If that's the case, do you fundamentally disagree with ...
7 years, 1 month ago (2013-10-28 21:06:32 UTC) #26
willchan no longer on Chromium
No, I think that's a reasonable stance. But to clarify, I don't think a network_delegate_unittest.cc ...
7 years, 1 month ago (2013-10-28 21:10:42 UTC) #27
mmenke
On 2013/10/28 21:10:42, willchan wrote: > No, I think that's a reasonable stance. But to ...
7 years, 1 month ago (2013-10-28 21:14:52 UTC) #28
Aaron Boodman
From a quick scan, I think everything on NetworkDelegate is currently tested except: oncanaccessfile oncanthrottlerequest ...
7 years, 1 month ago (2013-10-28 21:21:35 UTC) #29
willchan no longer on Chromium
Great, I think that despite some initial confusion, Matt and I are in agreement here. ...
7 years, 1 month ago (2013-10-28 21:41:25 UTC) #30
mmenke
On 2013/10/28 21:41:25, willchan wrote: > Great, I think that despite some initial confusion, Matt ...
7 years, 1 month ago (2013-10-28 21:46:45 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/38303002/460001
7 years, 1 month ago (2013-10-28 23:25:31 UTC) #32
commit-bot: I haz the power
7 years, 1 month ago (2013-10-29 02:40:39 UTC) #33
Message was sent while issue was closed.
Change committed as 231489

Powered by Google App Engine
This is Rietveld 408576698