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

Issue 1868763002: Remove URLRequest::IsHandledProtocol and IsHandledURL (Closed)

Created:
4 years, 8 months ago by mgersh
Modified:
3 years, 7 months ago
CC:
android-webview-reviews_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, halliwell+watch_chromium.org, jam, jochen+watch_chromium.org, lcwu+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo, sdefresne+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove URLRequest::IsHandledProtocol and IsHandledURL These methods are being removed as part of a refactor, with the eventual goal of deleting the URLRequestJobManager and handling http/https and ws/wss in the same way as other protocols. The call to URLRequest::IsHandledURL in ChildProcessSecurityPolicyImpl::CanRequestURL was replaced by adding to the hardcoded lists in the various ContentBrowserClient::IsHandledURL overrides. This behavior change on the ContentBrowserClient side should be safe because those methods have no other callers. BUG=488166

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase again #

Patch Set 4 : replace some hardcoded strings #

Total comments: 4

Patch Set 5 : finish removing URLRequest::IsHandledProtocol() #

Total comments: 11

Patch Set 6 : rebase (needs fixing) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -77 lines) Patch
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 2 chunks +11 lines, -7 lines 0 comments Download
M android_webview/browser/net/aw_url_request_job_factory.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 4 5 1 chunk +5 lines, -6 lines 0 comments Download
M components/omnibox/browser/autocomplete_provider_unittest.cc View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M components/omnibox/browser/keyword_provider_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M components/omnibox/browser/test_scheme_classifier.cc View 1 chunk +13 lines, -5 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 1 chunk +4 lines, -6 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 1 chunk +6 lines, -8 lines 0 comments Download
M ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M ios/chrome/browser/chrome_url_util.mm View 1 chunk +9 lines, -7 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 1 chunk +0 lines, -11 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 1 chunk +0 lines, -15 lines 0 comments Download
M net/url_request/url_request_job_factory_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_job_manager.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (4 generated)
mgersh
PTAL. (Other CL with more refactoring is also ready for review, sending it next.)
4 years, 8 months ago (2016-04-21 18:00:06 UTC) #2
mmenke
Thanks for doing this! I started reviewing CLs aimed at removing the URLRequestJobManager 3-4 years ...
4 years, 8 months ago (2016-04-21 18:24:19 UTC) #3
mgersh
https://codereview.chromium.org/1868763002/diff/60001/android_webview/browser/net/aw_url_request_job_factory.cc File android_webview/browser/net/aw_url_request_job_factory.cc (right): https://codereview.chromium.org/1868763002/diff/60001/android_webview/browser/net/aw_url_request_job_factory.cc#newcode58 android_webview/browser/net/aw_url_request_job_factory.cc:58: if (net::URLRequest::IsHandledProtocol(scheme)) On 2016/04/21 18:24:19, mmenke wrote: > Can't ...
4 years, 8 months ago (2016-04-21 19:04:45 UTC) #5
mmenke
LGTM! Not sure I'll get to your other CL today, if not, definitely tomorrow. https://codereview.chromium.org/1868763002/diff/80001/android_webview/browser/net/aw_url_request_job_factory.cc ...
4 years, 8 months ago (2016-04-21 19:13:33 UTC) #6
mgersh
https://codereview.chromium.org/1868763002/diff/80001/android_webview/browser/net/aw_url_request_job_factory.cc File android_webview/browser/net/aw_url_request_job_factory.cc (right): https://codereview.chromium.org/1868763002/diff/80001/android_webview/browser/net/aw_url_request_job_factory.cc#newcode56 android_webview/browser/net/aw_url_request_job_factory.cc:56: // added to the relevant URLRequestJobFactory. On 2016/04/21 19:13:33, ...
4 years, 8 months ago (2016-04-22 14:33:18 UTC) #7
mmenke
https://codereview.chromium.org/1868763002/diff/80001/android_webview/browser/net/aw_url_request_job_factory.cc File android_webview/browser/net/aw_url_request_job_factory.cc (right): https://codereview.chromium.org/1868763002/diff/80001/android_webview/browser/net/aw_url_request_job_factory.cc#newcode56 android_webview/browser/net/aw_url_request_job_factory.cc:56: // added to the relevant URLRequestJobFactory. On 2016/04/22 14:33:18, ...
4 years, 8 months ago (2016-04-22 14:54:36 UTC) #8
mmenke
https://codereview.chromium.org/1868763002/diff/80001/android_webview/browser/net/aw_url_request_job_factory.cc File android_webview/browser/net/aw_url_request_job_factory.cc (right): https://codereview.chromium.org/1868763002/diff/80001/android_webview/browser/net/aw_url_request_job_factory.cc#newcode56 android_webview/browser/net/aw_url_request_job_factory.cc:56: // added to the relevant URLRequestJobFactory. On 2016/04/22 14:54:36, ...
4 years, 8 months ago (2016-04-22 14:56:00 UTC) #9
mgersh
creis: PTAL at content/ jamescook: PTAL at extensions/shell/ sdefresne: PTAL at components/ and ios/ sgurun: ...
4 years, 7 months ago (2016-04-28 20:47:45 UTC) #11
James Cook
extensions/shell lgtm
4 years, 7 months ago (2016-04-28 21:07:27 UTC) #12
Charlie Reis
One concern about the CanRequestURL change below. https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc#newcode615 content/browser/child_process_security_policy_impl.cc:615: return !GetContentClient()->browser()->IsHandledURL(url); ...
4 years, 7 months ago (2016-04-28 21:45:36 UTC) #13
mgersh
https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc#newcode615 content/browser/child_process_security_policy_impl.cc:615: return !GetContentClient()->browser()->IsHandledURL(url); On 2016/04/28 21:45:35, Charlie Reis wrote: > ...
4 years, 7 months ago (2016-04-28 22:30:14 UTC) #14
halliwell
On 2016/04/28 22:30:14, mgersh wrote: > https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc > File content/browser/child_process_security_policy_impl.cc (right): > > https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc#newcode615 > ...
4 years, 7 months ago (2016-04-29 00:06:34 UTC) #15
Charlie Reis
https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc#newcode615 content/browser/child_process_security_policy_impl.cc:615: return !GetContentClient()->browser()->IsHandledURL(url); On 2016/04/28 22:30:13, mgersh wrote: > On ...
4 years, 7 months ago (2016-04-29 00:14:45 UTC) #16
mmenke
https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc#newcode615 content/browser/child_process_security_policy_impl.cc:615: return !GetContentClient()->browser()->IsHandledURL(url); On 2016/04/29 00:14:44, Charlie Reis wrote: > ...
4 years, 7 months ago (2016-04-29 00:27:24 UTC) #17
mmenke
https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/1868763002/diff/80001/content/browser/child_process_security_policy_impl.cc#newcode615 content/browser/child_process_security_policy_impl.cc:615: return !GetContentClient()->browser()->IsHandledURL(url); On 2016/04/29 00:27:24, mmenke wrote: > On ...
4 years, 7 months ago (2016-04-29 00:32:15 UTC) #18
sgurun-gerrit only
4 years, 7 months ago (2016-04-29 22:25:06 UTC) #19
aw lgtm

Powered by Google App Engine
This is Rietveld 408576698