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

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed)

Created:
8 years, 7 months ago by akalin
Modified:
8 years, 7 months ago
CC:
chromium-reviews, MAD, nkostylev+watch_chromium.org, dhollowa+watch_chromium.org, ajwong+watch_chromium.org, Ilya Sherman, ncarter (slow), jar (doing other things), stevenjb+watch_chromium.org, achuith+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, tim (not reviewing), dbeam+watch-ntp_chromium.org, Avi (use Gerrit), creis+watch_chromium.org, tbarzic+watch_chromium.org, Raghu Simha, cbentzel+watch_chromium.org, mihaip-chromium-reviews_chromium.org, tfarina, Aaron Boodman, Satish, dyu1, estade+watch_chromium.org, James Su, davemoore+watch_chromium.org, Nico
Visibility:
Public.

Description

Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ Temporarily make a shim content::URLFetcherDelegate class. A future CL will replace all instances of content::URLFetcherDelegate with net::URLFetcherDelegate and remove that class. Move most URLFetcher methods to net::URLFetcher, except for the static methods (which will be handled in a future CL) and AssociateWithRenderView, which is content-specific. Replace all instances of content::URLFetcher* in the URLFetcherDelegate callbacks with net::URLFetcher* (except for rlz, which required its own special hack). BUG=118220 TEST= TBR=mnissler@chromium.org,jhawkins@chromium.org,cpu@chromium.org,estade@chromium.org,sky@chromium.org,joth@chromium.org,satish@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136514

Patch Set 1 #

Patch Set 2 : Fix minor nits #

Patch Set 3 : Fix rlz #

Patch Set 4 : Fix chromeos, move some fn defs out of line #

Patch Set 5 : Sync to head #

Patch Set 6 : sync to head, fix win component build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -610 lines) Patch
M chrome/browser/alternate_nav_url_fetcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/alternate_nav_url_fetcher.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_download.h View 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_download.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chrome_to_mobile_service.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chrome_to_mobile_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/customization_document.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/customization_document.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.h View 8 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.cc View 1 2 3 4 9 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/imageburner/burn_manager.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/imageburner/burn_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/apps_promo.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/apps_promo.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/updater/extension_downloader.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/updater/extension_downloader.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_install_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/webstore_install_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/feedback/feedback_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/google/google_url_tracker.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/importer/toolbar_importer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/importer/toolbar_importer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/intents/cws_intents_registry.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/intents/cws_intents_registry.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/intranet_redirect_detector.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/gaia/gaia_oauth_fetcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/gaia/gaia_oauth_fetcher.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/device_management_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_management_service.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_downloader.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_downloader.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.h View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/malware_details_cache.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_cache.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_test.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_fetcher.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spelling_service_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spelling_service_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/http_bridge.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/http_bridge.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_source_discovery.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_source_discovery.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/web_resource/web_resource_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/web_resource/web_resource_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_oauth_client.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/net/gaia/oauth2_access_token_fetcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/net/gaia/oauth2_access_token_fetcher.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/common/net/gaia/oauth2_api_call_flow.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/net/gaia/oauth2_api_call_flow.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_fetcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_fetcher.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_flow.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_flow.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/net/gaia/oauth2_revocation_fetcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/net/gaia/oauth2_revocation_fetcher.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_auth.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_auth.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_connector.h View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_connector.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.h View 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc View 1 2 3 4 5 11 chunks +12 lines, -12 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_wipeout.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_wipeout.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/job_status_updater.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/job_status_updater.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/printer_job_handler.h View 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/service/cloud_print/printer_job_handler.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M chrome/service/gaia/service_gaia_authenticator.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/gaia/service_gaia_authenticator.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/geolocation/network_location_request.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/geolocation/network_location_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/google_one_shot_remote_engine.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/google_one_shot_remote_engine.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/net/url_fetcher_impl_unittest.cc View 1 2 3 4 5 26 chunks +28 lines, -28 lines 0 comments Download
M content/content_common.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/url_fetcher.h View 1 2 chunks +6 lines, -199 lines 0 comments Download
M content/public/common/url_fetcher_delegate.h View 1 chunk +8 lines, -40 lines 0 comments Download
D content/public/common/url_fetcher_delegate.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A + net/url_request/url_fetcher.h View 1 2 3 4 5 9 chunks +15 lines, -53 lines 0 comments Download
A + net/url_request/url_fetcher.cc View 1 2 3 4 5 1 chunk +4 lines, -6 lines 0 comments Download
A + net/url_request/url_fetcher_delegate.h View 1 2 3 3 chunks +19 lines, -11 lines 0 comments Download
A net/url_request/url_fetcher_delegate.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
akalin
+willchan for review This CL touches a lot of files, but most of them are ...
8 years, 7 months ago (2012-05-09 23:57:06 UTC) #1
akalin
+thakis FYI, since once this is ready to land, we'll have to also land an ...
8 years, 7 months ago (2012-05-10 00:00:13 UTC) #2
akalin
Also, I expect the Mac/Win trybots to fail because of rlz needing to be updated. ...
8 years, 7 months ago (2012-05-10 00:01:26 UTC) #3
akalin
On 2012/05/10 00:01:26, akalin wrote: > Also, I expect the Mac/Win trybots to fail because ...
8 years, 7 months ago (2012-05-10 08:48:01 UTC) #4
willchan no longer on Chromium
lgtm
8 years, 7 months ago (2012-05-10 18:13:27 UTC) #5
akalin
+jam for content/ and content/public/ OWNERS TBRing all other owners since they're just mechanical changes
8 years, 7 months ago (2012-05-10 19:59:57 UTC) #6
darin (slow to review)
LGTM for src/content/ changes. Maybe the net/url_request class could be better named? How about URLRequestProxy? ...
8 years, 7 months ago (2012-05-10 23:33:33 UTC) #7
akalin
On 2012/05/10 23:33:33, darin wrote: > LGTM for src/content/ changes. > > Maybe the net/url_request ...
8 years, 7 months ago (2012-05-10 23:40:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10386063/2116
8 years, 7 months ago (2012-05-10 23:43:48 UTC) #9
commit-bot: I haz the power
Try job failure for 10386063-2116 (retry) on android for steps "Compile, build". It's a second ...
8 years, 7 months ago (2012-05-11 00:09:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10386063/2117
8 years, 7 months ago (2012-05-11 04:09:13 UTC) #11
commit-bot: I haz the power
Change committed as 136514
8 years, 7 months ago (2012-05-11 05:32:27 UTC) #12
jam
just to be clear, this interface in content that derives from an interface/implementation in net ...
8 years, 7 months ago (2012-05-11 22:18:38 UTC) #13
akalin
On 2012/05/11 22:18:38, John Abd-El-Malek wrote: > just to be clear, this interface in content ...
8 years, 7 months ago (2012-05-11 22:23:35 UTC) #14
willchan no longer on Chromium
8 years, 7 months ago (2012-05-11 22:29:05 UTC) #15
I think I said what Fred said, but the point was that the net::URLFetcher
interface would be dramatically simpler.

On Fri, May 11, 2012 at 3:23 PM, <akalin@chromium.org> wrote:

> On 2012/05/11 22:18:38, John Abd-El-Malek wrote:
>
>> just to be clear, this interface in content that derives from an
>> interface/implementation in net is just temporarily right (per the email
>> discussion that we had about this)?
>>
>
> Hmm.  I thought we agreed that content::URLFetcher would derive from
> net::URLFetcher, but content::URLFetcherImpl and net::URLFetcherImpl would
> be
> separate implementations that would forward to a URLFetcherCore?  Did I
> misunderstand?
>
>
http://codereview.chromium.**org/10386063/<http://codereview.chromium.org/103...
>

Powered by Google App Engine
This is Rietveld 408576698