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

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (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, Ilya Sherman, 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

Create a content::UrlFetcher interface that lives in content/public/common and convert users to it. I have added a static create function, but will switch instantiations to use it in another change since this has grown a lot. Basically this change converts function names away from unix_hacker style, which they shouldn't have been using anyways since some are virtual, and made all of the other functions virtual. BUG=98716 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107151

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : sync #

Total comments: 13

Patch Set 8 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1064 lines, -925 lines) Patch
M chrome/browser/alternate_nav_url_fetcher.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/alternate_nav_url_fetcher.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_download.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_download.cc View 1 2 3 4 5 6 6 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/autofill/autofill_download_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/bug_report_util.cc View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/customization_document.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/customization_document.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/auth_response_handler.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/client_login_response_handler.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/client_login_response_handler.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/cookie_fetcher.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/cookie_fetcher.cc View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/cookie_fetcher_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/image_downloader.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/image_downloader.cc View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/issue_response_handler.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/issue_response_handler.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/mock_auth_response_handler.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/mock_url_fetchers.h View 1 2 3 4 5 6 5 chunks +19 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/login/mock_url_fetchers.cc View 1 2 3 4 5 6 5 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/login/profile_image_downloader.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/profile_image_downloader.cc View 1 2 3 4 5 6 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 1 2 3 4 5 6 7 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup.cc View 1 2 3 4 5 6 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/extensions/apps_promo.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/apps_promo.cc View 1 2 3 4 5 6 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_management_browsertest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_updater.h View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 2 3 4 5 6 6 chunks +18 lines, -19 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 1 2 3 4 5 6 10 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.cc View 1 2 3 4 5 6 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/extensions/webstore_install_helper.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_install_helper.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/google/google_url_tracker.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/importer/toolbar_importer.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/importer/toolbar_importer.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.cc View 1 2 3 4 5 6 2 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 5 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/net/gaia/gaia_oauth_fetcher.h View 1 2 3 4 5 6 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/net/gaia/gaia_oauth_fetcher.cc View 1 2 3 4 5 6 4 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.cc View 1 2 3 4 5 6 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/plugin_download_helper.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/plugin_download_helper.cc View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/device_management_service.h View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_management_service.cc View 1 2 3 4 5 6 4 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/policy/device_management_service_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/device_management_service_unittest.cc View 1 2 3 4 5 6 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/policy/testing_policy_url_fetcher_factory.cc View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.h View 1 2 3 4 5 6 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 3 4 5 6 7 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_cache.h View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_cache.cc View 1 2 3 4 5 6 5 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 2 3 4 5 6 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 3 4 5 6 11 chunks +38 lines, -37 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_test.cc View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher.cc View 1 2 3 4 5 6 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.cc View 1 2 3 4 5 6 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/spelling_menu_observer.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/spelling_menu_observer.cc View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_manager.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 3 4 5 6 4 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/web_resource/web_resource_service.cc View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.h View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.cc View 1 2 3 4 5 6 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.h View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/net/gaia/gaia_oauth_client.cc View 1 2 3 4 5 6 5 chunks +16 lines, -14 lines 0 comments Download
M chrome/common/net/gaia/gaia_oauth_client_unittest.cc View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_proxy_backend.cc View 1 2 3 4 5 6 9 chunks +15 lines, -15 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.h View 1 2 3 4 5 6 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 1 2 3 4 5 6 5 chunks +19 lines, -18 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc View 1 2 3 4 5 6 11 chunks +18 lines, -16 lines 0 comments Download
M chrome/service/cloud_print/job_status_updater.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/job_status_updater.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/printer_job_handler.h View 1 2 3 4 5 6 2 chunks +12 lines, -12 lines 0 comments Download
M chrome/service/cloud_print/printer_job_handler.cc View 1 2 3 4 5 6 11 chunks +11 lines, -11 lines 0 comments Download
M chrome/service/gaia/service_gaia_authenticator.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/gaia/service_gaia_authenticator.cc View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M content/browser/geolocation/network_location_provider_unittest.cc View 1 2 3 4 5 6 7 chunks +10 lines, -9 lines 0 comments Download
M content/browser/geolocation/network_location_request.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/geolocation/network_location_request.cc View 1 2 3 4 5 6 3 chunks +7 lines, -6 lines 0 comments Download
M content/browser/speech/speech_recognition_request.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/speech/speech_recognition_request.cc View 1 2 3 4 5 6 2 chunks +7 lines, -6 lines 0 comments Download
M content/browser/speech/speech_recognition_request_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/speech_recognizer_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/net/url_fetcher.h View 1 2 3 4 5 6 4 chunks +46 lines, -199 lines 0 comments Download
M content/common/net/url_fetcher.cc View 1 2 3 4 5 6 7 10 chunks +47 lines, -28 lines 0 comments Download
M content/common/net/url_fetcher_unittest.cc View 1 2 3 4 5 6 17 chunks +56 lines, -51 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A content/public/common/url_fetcher.h View 1 2 3 4 5 6 7 1 chunk +224 lines, -0 lines 0 comments Download
M content/public/common/url_fetcher_delegate.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/test/test_url_fetcher_factory.h View 1 2 3 4 5 6 2 chunks +8 lines, -8 lines 0 comments Download
M content/test/test_url_fetcher_factory.cc View 1 2 3 4 5 6 4 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jam
9 years, 2 months ago (2011-10-24 23:13:52 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/8375039/diff/1186/content/common/net/url_fetcher.h File content/common/net/url_fetcher.h (right): http://codereview.chromium.org/8375039/diff/1186/content/common/net/url_fetcher.h#newcode24 content/common/net/url_fetcher.h:24: class CONTENT_EXPORT URLFetcher : public content::URLFetcher{ This is still ...
9 years, 2 months ago (2011-10-25 16:59:49 UTC) #2
jam
http://codereview.chromium.org/8375039/diff/1186/content/common/net/url_fetcher.h File content/common/net/url_fetcher.h (right): http://codereview.chromium.org/8375039/diff/1186/content/common/net/url_fetcher.h#newcode24 content/common/net/url_fetcher.h:24: class CONTENT_EXPORT URLFetcher : public content::URLFetcher{ On 2011/10/25 16:59:49, ...
9 years, 2 months ago (2011-10-25 17:16:20 UTC) #3
willchan no longer on Chromium
lgtm http://codereview.chromium.org/8375039/diff/1186/content/public/common/url_fetcher.h File content/public/common/url_fetcher.h (right): http://codereview.chromium.org/8375039/diff/1186/content/public/common/url_fetcher.h#newcode68 content/public/common/url_fetcher.h:68: static const int kInvalidHttpResponseCode; On 2011/10/25 17:16:20, John ...
9 years, 2 months ago (2011-10-25 17:22:57 UTC) #4
jam
9 years, 2 months ago (2011-10-25 17:27:10 UTC) #5
On 2011/10/25 17:22:57, willchan wrote:
> lgtm
> 
>
http://codereview.chromium.org/8375039/diff/1186/content/public/common/url_fe...
> File content/public/common/url_fetcher.h (right):
> 
>
http://codereview.chromium.org/8375039/diff/1186/content/public/common/url_fe...
> content/public/common/url_fetcher.h:68: static const int
> kInvalidHttpResponseCode;
> On 2011/10/25 17:16:20, John Abd-El-Malek wrote:
> > On 2011/10/25 16:59:49, willchan wrote:
> > > I don't think this actually needs to be public. I think it's local to
> > > url_fetcher.cc. I'd get rid of this.
> > 
> > it's referenced below in GetResponseCode
> 
> Oh, good point. I just did a grep and no one's checking for this, heh. Maybe
> it's better off just to use an enum set to -1. Whatever.

good idea, done

Powered by Google App Engine
This is Rietveld 408576698