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

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed)

Created:
9 years, 2 months ago by jam
Modified:
9 years, 2 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, mihaip+watch_chromium.org, stuartmorgan+watch_chromium.org, ajwong+watch_chromium.org, stevenjb+watch_chromium.org, dhollowa, GeorgeY, cbentzel+watch_chromium.org, Erik does not do reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, tim (not reviewing), Avi (use Gerrit), creis+watch_chromium.org, Raghu Simha, ncarter (slow), dpranke-watch+content_chromium.org, akalin, tfarina, Aaron Boodman, dyu1, Paweł Hajdan Jr., James Su, davemoore+watch_chromium.org
Visibility:
Public.

Description

Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old URLFetcher delegate callback while I'm touching all of them. BUG=98716, 83592 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106949

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : fix cros unittests #

Patch Set 4 : take out CHECKs #

Total comments: 2

Patch Set 5 : sync and remove unncessary forward declares #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1047 lines, -1139 lines) Patch
M chrome/browser/alternate_nav_url_fetcher.h View 1 2 3 4 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/alternate_nav_url_fetcher.cc View 1 2 3 4 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 4 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/autofill/autofill_download.h View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_download.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/bug_report_util.cc View 1 2 3 4 4 chunks +8 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/customization_document.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/customization_document.cc View 1 2 3 4 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/auth_response_handler.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/client_login_response_handler.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/client_login_response_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/cookie_fetcher.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/cookie_fetcher.cc View 1 2 3 4 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/image_downloader.h View 1 2 3 4 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/image_downloader.cc View 1 2 3 4 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/issue_response_handler.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/issue_response_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/mock_auth_response_handler.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/mock_auth_response_handler.cc View 1 2 3 4 2 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/login/mock_url_fetchers.h View 1 2 3 4 8 chunks +40 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/mock_url_fetchers.cc View 1 2 3 4 5 chunks +105 lines, -60 lines 0 comments Download
M chrome/browser/chromeos/login/profile_image_downloader.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/profile_image_downloader.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/apps_promo.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/apps_promo.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_management_browsertest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_updater.h View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_install_helper.h View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/webstore_install_helper.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google/google_url_tracker.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 3 4 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/importer/toolbar_importer.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/importer/toolbar_importer.cc View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.cc View 1 2 3 4 4 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 chunks +10 lines, -12 lines 1 comment Download
M chrome/browser/net/gaia/gaia_oauth_fetcher.h View 1 2 3 4 5 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/net/gaia/gaia_oauth_fetcher.cc View 1 2 3 4 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc View 1 2 3 4 4 chunks +31 lines, -8 lines 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/plugin_download_helper.h View 1 2 3 4 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/plugin_download_helper.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/device_management_service.h View 1 2 3 4 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/policy/device_management_service.cc View 1 2 3 4 4 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/policy/device_management_service_browsertest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/device_management_service_unittest.cc View 1 2 3 4 9 chunks +42 lines, -54 lines 0 comments Download
M chrome/browser/policy/testing_policy_url_fetcher_factory.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/testing_policy_url_fetcher_factory.cc View 1 2 3 4 4 chunks +23 lines, -10 lines 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_proxy_service.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.h View 1 2 3 4 4 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 3 4 2 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 3 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_cache.h View 1 2 3 4 3 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_cache.cc View 1 2 3 4 3 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 3 4 8 chunks +24 lines, -25 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_test.cc View 1 2 3 4 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher.cc View 1 2 3 4 4 chunks +9 lines, -16 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.h View 1 2 3 4 3 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.cc View 1 2 3 4 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.h View 1 2 3 4 4 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.cc View 1 2 3 4 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge_unittest.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/signin_manager_unittest.cc View 1 2 3 4 1 chunk +11 lines, -8 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/spelling_menu_observer.h View 1 2 3 4 3 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/tab_contents/spelling_menu_observer.cc View 1 2 3 4 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/translate/translate_manager.h View 1 2 3 4 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 3 4 5 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/web_resource/web_resource_service.cc View 1 2 3 4 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.h View 1 2 3 4 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.cc View 1 2 3 4 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.h View 1 2 3 4 3 chunks +23 lines, -3 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc View 1 2 3 4 16 chunks +104 lines, -96 lines 0 comments Download
M chrome/common/net/gaia/gaia_oauth_client.cc View 1 2 3 4 6 chunks +13 lines, -32 lines 0 comments Download
M chrome/common/net/gaia/gaia_oauth_client_unittest.cc View 1 2 3 4 4 chunks +24 lines, -9 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.h View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 1 2 3 4 2 chunks +16 lines, -20 lines 0 comments Download
M chrome/service/gaia/service_gaia_authenticator.h View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/service/gaia/service_gaia_authenticator.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/geolocation/network_location_request.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/geolocation/network_location_request.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/speech/speech_recognition_request.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/speech/speech_recognition_request.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M content/common/net/url_fetcher.h View 1 2 3 4 9 chunks +19 lines, -37 lines 2 comments Download
M content/common/net/url_fetcher.cc View 1 2 3 4 10 chunks +12 lines, -44 lines 0 comments Download
M content/common/net/url_fetcher_unittest.cc View 1 2 3 4 19 chunks +60 lines, -164 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A content/public/common/url_fetcher_delegate.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M content/test/test_url_fetcher_factory.h View 1 2 3 4 8 chunks +11 lines, -6 lines 0 comments Download
M content/test/test_url_fetcher_factory.cc View 1 2 3 4 8 chunks +11 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jam
9 years, 2 months ago (2011-10-22 19:55:49 UTC) #1
Ilya Sherman
http://codereview.chromium.org/8373021/diff/2197/chrome/browser/autofill/autofill_download.cc File chrome/browser/autofill/autofill_download.cc (right): http://codereview.chromium.org/8373021/diff/2197/chrome/browser/autofill/autofill_download.cc#newcode322 chrome/browser/autofill/autofill_download.cc:322: CHECK(source->GetResponseAsString(&response_body)); nit: Do we really need a CHECK() here? ...
9 years, 2 months ago (2011-10-23 00:20:11 UTC) #2
jam
http://codereview.chromium.org/8373021/diff/2197/chrome/browser/autofill/autofill_download.cc File chrome/browser/autofill/autofill_download.cc (right): http://codereview.chromium.org/8373021/diff/2197/chrome/browser/autofill/autofill_download.cc#newcode322 chrome/browser/autofill/autofill_download.cc:322: CHECK(source->GetResponseAsString(&response_body)); On 2011/10/23 00:20:12, Ilya Sherman wrote: > nit: ...
9 years, 2 months ago (2011-10-23 01:29:18 UTC) #3
Ilya Sherman
On 2011/10/23 01:29:18, John Abd-El-Malek wrote: > http://codereview.chromium.org/8373021/diff/2197/chrome/browser/autofill/autofill_download.cc > File chrome/browser/autofill/autofill_download.cc (right): > > http://codereview.chromium.org/8373021/diff/2197/chrome/browser/autofill/autofill_download.cc#newcode322 ...
9 years, 2 months ago (2011-10-23 09:17:16 UTC) #4
jam
ah thanks, I hadn't read that thread closely. I didn't know that CHECKs would also ...
9 years, 2 months ago (2011-10-23 22:01:45 UTC) #5
jam
On 2011/10/23 22:01:45, John Abd-El-Malek wrote: > ah thanks, I hadn't read that thread closely. ...
9 years, 2 months ago (2011-10-24 02:30:30 UTC) #6
willchan no longer on Chromium
LGTM http://codereview.chromium.org/8373021/diff/5226/content/public/common/url_fetcher_delegate.h File content/public/common/url_fetcher_delegate.h (right): http://codereview.chromium.org/8373021/diff/5226/content/public/common/url_fetcher_delegate.h#newcode18 content/public/common/url_fetcher_delegate.h:18: class URLRequestStatus; Are these two guys needed?
9 years, 2 months ago (2011-10-24 17:12:33 UTC) #7
jam
http://codereview.chromium.org/8373021/diff/5226/content/public/common/url_fetcher_delegate.h File content/public/common/url_fetcher_delegate.h (right): http://codereview.chromium.org/8373021/diff/5226/content/public/common/url_fetcher_delegate.h#newcode18 content/public/common/url_fetcher_delegate.h:18: class URLRequestStatus; On 2011/10/24 17:12:33, willchan wrote: > Are ...
9 years, 2 months ago (2011-10-24 17:37:10 UTC) #8
Sam Kerner (Chrome)
http://codereview.chromium.org/8373021/diff/10062/content/common/net/url_fetcher.h File content/common/net/url_fetcher.h (left): http://codereview.chromium.org/8373021/diff/10062/content/common/net/url_fetcher.h#oldcode251 content/common/net/url_fetcher.h:251: virtual const std::string& GetResponseStringRef() const; Does GetResponseAsString() cause a ...
9 years, 2 months ago (2011-10-24 18:36:25 UTC) #9
willchan no longer on Chromium
http://codereview.chromium.org/8373021/diff/10062/content/common/net/url_fetcher.h File content/common/net/url_fetcher.h (left): http://codereview.chromium.org/8373021/diff/10062/content/common/net/url_fetcher.h#oldcode251 content/common/net/url_fetcher.h:251: virtual const std::string& GetResponseStringRef() const; On 2011/10/24 18:36:25, Sam ...
9 years, 2 months ago (2011-10-24 18:42:12 UTC) #10
Sam Kerner (Chrome)
On 2011/10/24 18:42:12, willchan wrote: > http://codereview.chromium.org/8373021/diff/10062/content/common/net/url_fetcher.h > File content/common/net/url_fetcher.h (left): > > http://codereview.chromium.org/8373021/diff/10062/content/common/net/url_fetcher.h#oldcode251 > ...
9 years, 2 months ago (2011-10-24 19:43:11 UTC) #11
jam
I agree that people fetching large data shouldn't be storing it in strings. I'm not ...
9 years, 2 months ago (2011-10-24 20:04:29 UTC) #12
willchan no longer on Chromium
9 years, 2 months ago (2011-10-25 18:09:39 UTC) #13
http://codereview.chromium.org/8373021/diff/10062/chrome/browser/metrics/metr...
File chrome/browser/metrics/metrics_service.cc (right):

http://codereview.chromium.org/8373021/diff/10062/chrome/browser/metrics/metr...
chrome/browser/metrics/metrics_service.cc:1076: current_fetch_.reset(NULL);  //
We're not allowed to re-use it.
Here's the URLFetcher getting deleted. current_fetch_ == source. This is the
result of the use-after-free crashes.

Powered by Google App Engine
This is Rietveld 408576698