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

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed)

Created:
8 years, 6 months ago by mkosiba (inactive)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, michaeln, cbentzel+watch_chromium.org, mihaip-chromium-reviews_chromium.org, jochen+watch-content_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Remove the HANDLED_EXTERNALLY status code. This removes the HANDLED_EXTERNALLY status replacing its use with ResourceRequestInfo::HandledExternally. BUG=none TEST=unit_tests, content_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155427

Patch Set 1 #

Patch Set 2 : hack, hack, hack #

Total comments: 1

Patch Set 3 : remove URLRequestStatus usage from ResourceDispatcher and ResourceLoaderBridge #

Patch Set 4 : fixed some minor issues #

Total comments: 2

Patch Set 5 : now with no HANDLED_EXTERNALLY under net #

Patch Set 6 : revert removing DCHECK from URLRequest::DoCancel #

Total comments: 12

Patch Set 7 : incorporated feedback #

Total comments: 6

Patch Set 8 : fixed nits, fixed 2 errors: was_ignored_by_handler not being initialized and passed to the renderer #

Patch Set 9 : add a DCHECK to async_resource_handler #

Total comments: 11

Patch Set 10 : fix more nits #

Total comments: 5

Patch Set 11 : rebase + fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -168 lines) Patch
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/intercept_navigation_resource_throttle.cc View 1 2 3 4 5 6 3 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/renderer_host/intercept_navigation_resource_throttle_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_localization_peer.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_localization_peer.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension_localization_peer_unittest.cc View 1 2 3 4 5 6 7 6 chunks +15 lines, -27 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/security_filter_peer.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/renderer/security_filter_peer.cc View 1 2 3 4 5 6 7 5 chunks +13 lines, -9 lines 0 comments Download
M content/browser/renderer_host/async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -1 line 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/redirect_to_file_resource_handler.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 4 chunks +18 lines, -21 lines 0 comments Download
M content/browser/renderer_host/resource_loader.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/resource_loader.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_request_info_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_request_info_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/sync_resource_handler.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/throttling_resource_handler.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/throttling_resource_handler.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/resource_dispatcher.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/common/resource_dispatcher.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -6 lines 0 comments Download
M content/common/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 chunks +13 lines, -9 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M content/public/browser/resource_controller.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/common/resource_dispatcher_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/resource_response.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/test/render_view_fake_resources_test.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_status.h View 1 2 3 4 2 chunks +1 line, -8 lines 0 comments Download
M webkit/appcache/appcache_request_handler.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M webkit/glue/resource_loader_bridge.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +16 lines, -24 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
mkosiba (inactive)
Hi Darin, Here is one approach we could take to remove the HANDLED_EXTERNALLY status code ...
8 years, 6 months ago (2012-06-22 14:36:58 UTC) #1
darin (slow to review)
This is a good start. I think we might want to invent an error code ...
8 years, 6 months ago (2012-06-22 19:32:24 UTC) #2
mkosiba (inactive)
On Fri, Jun 22, 2012 at 8:32 PM, Darin Fisher <darin@chromium.org> wrote: > This is ...
8 years, 6 months ago (2012-06-22 20:57:02 UTC) #3
darin (slow to review)
On Fri, Jun 22, 2012 at 1:56 PM, Martin Kosiba <mkosiba@chromium.org> wrote: > > > ...
8 years, 6 months ago (2012-06-22 21:02:01 UTC) #4
mkosiba (inactive)
Hi Darin, So I uploaded the result of a bit of hacking that reflects some ...
8 years, 6 months ago (2012-06-25 14:05:28 UTC) #5
darin (slow to review)
https://chromiumcodereview.appspot.com/10640019/diff/6001/content/browser/renderer_host/resource_loader.cc File content/browser/renderer_host/resource_loader.cc (right): https://chromiumcodereview.appspot.com/10640019/diff/6001/content/browser/renderer_host/resource_loader.cc#newcode111 content/browser/renderer_host/resource_loader.cc:111: CancelRequestInternal(net::ERR_ABORTED, false); another idea, which may be too crazy, ...
8 years, 5 months ago (2012-06-25 16:15:32 UTC) #6
mkosiba (inactive)
On 2012/06/25 16:15:32, darin wrote: > https://chromiumcodereview.appspot.com/10640019/diff/6001/content/browser/renderer_host/resource_loader.cc > File content/browser/renderer_host/resource_loader.cc (right): > > https://chromiumcodereview.appspot.com/10640019/diff/6001/content/browser/renderer_host/resource_loader.cc#newcode111 > ...
8 years, 5 months ago (2012-06-25 17:11:16 UTC) #7
darin (slow to review)
On Mon, Jun 25, 2012 at 10:11 AM, <mkosiba@chromium.org> wrote: > On 2012/06/25 16:15:32, darin ...
8 years, 5 months ago (2012-06-25 17:24:31 UTC) #8
mkosiba (inactive)
Hi Darin, Here is a version that doesn't use URLRequestStatus in the ResourceLoader/weburlloader. What do ...
8 years, 5 months ago (2012-06-26 16:58:59 UTC) #9
mkosiba (inactive)
https://chromiumcodereview.appspot.com/10640019/diff/13001/content/browser/renderer_host/async_resource_handler.cc File content/browser/renderer_host/async_resource_handler.cc (right): https://chromiumcodereview.appspot.com/10640019/diff/13001/content/browser/renderer_host/async_resource_handler.cc#newcode300 content/browser/renderer_host/async_resource_handler.cc:300: error_code = net::ERR_FAILED; I was going back and forth ...
8 years, 5 months ago (2012-06-26 17:01:41 UTC) #10
mkosiba (inactive)
ping
8 years, 5 months ago (2012-07-11 15:16:00 UTC) #11
darin (slow to review)
http://codereview.chromium.org/10640019/diff/13001/net/url_request/url_request.cc File net/url_request/url_request.cc (left): http://codereview.chromium.org/10640019/diff/13001/net/url_request/url_request.cc#oldcode516 net/url_request/url_request.cc:516: DCHECK(error < 0); It feels wrong to allow non-negative ...
8 years, 5 months ago (2012-07-11 18:12:43 UTC) #12
mkosiba (inactive)
Hi Darin, In this iteration I got rid of the HANDLED_EXTERNALLY error code at the ...
8 years, 4 months ago (2012-07-30 16:11:19 UTC) #13
darin (slow to review)
OK, thanks for continuing to push on this CL. Will review ASAP. -Darin On Mon, ...
8 years, 4 months ago (2012-07-30 17:50:47 UTC) #14
mkosiba (inactive)
Ping? On 2012/07/30 17:50:47, darin wrote: > OK, thanks for continuing to push on this ...
8 years, 4 months ago (2012-08-08 14:30:43 UTC) #15
darin (slow to review)
Sorry again for the slow response. It has been a struggle for me to come ...
8 years, 4 months ago (2012-08-10 18:03:02 UTC) #16
mkosiba (inactive)
Sorry for taking most of forever to get another iteration out, was busy with the ...
8 years, 3 months ago (2012-08-29 15:53:01 UTC) #17
mkosiba (inactive)
New version ready for review.
8 years, 3 months ago (2012-08-29 16:24:42 UTC) #18
darin (slow to review)
LGTM w/ these nits fixed. http://codereview.chromium.org/10640019/diff/30001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): http://codereview.chromium.org/10640019/diff/30001/chrome/browser/net/chrome_network_delegate.cc#newcode264 chrome/browser/net/chrome_network_delegate.cc:264: (info && info->Ignored())) { ...
8 years, 3 months ago (2012-08-29 22:01:37 UTC) #19
mkosiba (inactive)
Ok.. this might be the version that's going in. Could you please take a look ...
8 years, 3 months ago (2012-08-30 15:29:43 UTC) #20
darin (slow to review)
http://codereview.chromium.org/10640019/diff/44002/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): http://codereview.chromium.org/10640019/diff/44002/chrome/browser/net/chrome_network_delegate.cc#newcode264 chrome/browser/net/chrome_network_delegate.cc:264: (info && info->WasIgnoredByHandler())) { Sorry, my suggestion was to ...
8 years, 3 months ago (2012-08-30 16:15:18 UTC) #21
mkosiba (inactive)
http://codereview.chromium.org/10640019/diff/44002/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): http://codereview.chromium.org/10640019/diff/44002/chrome/browser/net/chrome_network_delegate.cc#newcode264 chrome/browser/net/chrome_network_delegate.cc:264: (info && info->WasIgnoredByHandler())) { On 2012/08/30 16:15:18, darin wrote: ...
8 years, 3 months ago (2012-08-31 14:45:10 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10640019/40004
8 years, 3 months ago (2012-08-31 14:45:30 UTC) #23
commit-bot: I haz the power
Presubmit check for 10640019-40004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-08-31 14:45:45 UTC) #24
mkosiba (inactive)
Matt, Could you please take a look at net/ changes?
8 years, 3 months ago (2012-08-31 14:59:14 UTC) #25
mmenke
On 2012/08/31 14:59:14, Martin Kosiba wrote: > Matt, > Could you please take a look ...
8 years, 3 months ago (2012-08-31 15:02:59 UTC) #26
darin (slow to review)
LGTM http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc File content/browser/renderer_host/async_resource_handler.cc (right): http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc#newcode326 content/browser/renderer_host/async_resource_handler.cc:326: error_code == net::OK) nit: indentation... realize you are ...
8 years, 3 months ago (2012-08-31 16:15:51 UTC) #27
mmenke
http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc File content/browser/renderer_host/async_resource_handler.cc (right): http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc#newcode330 content/browser/renderer_host/async_resource_handler.cc:330: error_code = net::ERR_FAILED; Random nit: Should also use brackets ...
8 years, 3 months ago (2012-08-31 16:17:23 UTC) #28
darin (slow to review)
http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc File content/browser/renderer_host/async_resource_handler.cc (right): http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc#newcode330 content/browser/renderer_host/async_resource_handler.cc:330: error_code = net::ERR_FAILED; On 2012/08/31 16:17:23, Matt Menke wrote: ...
8 years, 3 months ago (2012-08-31 16:55:51 UTC) #29
mkosiba (inactive)
http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc File content/browser/renderer_host/async_resource_handler.cc (right): http://codereview.chromium.org/10640019/diff/40004/content/browser/renderer_host/async_resource_handler.cc#newcode326 content/browser/renderer_host/async_resource_handler.cc:326: error_code == net::OK) On 2012/08/31 16:15:51, darin wrote: > ...
8 years, 3 months ago (2012-09-06 18:30:22 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10640019/44006
8 years, 3 months ago (2012-09-06 18:30:40 UTC) #31
commit-bot: I haz the power
Try job failure for 10640019-44006 (retry) on win_rel for step "sync_integration_tests". It's a second try, ...
8 years, 3 months ago (2012-09-06 21:48:37 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10640019/44006
8 years, 3 months ago (2012-09-07 15:57:49 UTC) #33
commit-bot: I haz the power
8 years, 3 months ago (2012-09-07 18:24:32 UTC) #34
Change committed as 155427

Powered by Google App Engine
This is Rietveld 408576698