Change most content::URLFetcher references to net::URLFetcher
The only remaining use of content::URLFetcher is content::URLFetcher::Create.
Make content::URLFetcher not inherit from net::URLFetcher.
Also make code that directly create URLFetcherImpl instead call content::URLFetcher::Create.
BUG=118220
TEST=
[email protected],[email protected],[email protected],[email protected]
Review URL: https://chromiumcodereview.appspot.com/10412050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138443 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc
index f1bdaa8..6e18fd5 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -136,7 +136,7 @@
}
// Helper to start a url request using |fetcher| with the common flags.
-void StartFetch(content::URLFetcher* fetcher,
+void StartFetch(net::URLFetcher* fetcher,
net::URLRequestContextGetter* context_getter,
bool save_to_file) {
fetcher->SetRequestContext(context_getter);
@@ -325,7 +325,7 @@
scoped_ptr<Config> config_;
- scoped_ptr<content::URLFetcher> url_fetcher_;
+ scoped_ptr<net::URLFetcher> url_fetcher_;
typedef std::vector<CrxUpdateItem*> UpdateItems;
UpdateItems work_items_;
@@ -507,7 +507,7 @@
context->id = item->id;
context->installer = item->component.installer;
url_fetcher_.reset(content::URLFetcher::Create(
- 0, item->crx_url, content::URLFetcher::GET,
+ 0, item->crx_url, net::URLFetcher::GET,
MakeContextDelegate(this, context)));
StartFetch(url_fetcher_.get(), config_->RequestContext(), true);
return;
@@ -568,7 +568,7 @@
query,
config_->ExtraRequestParams());
url_fetcher_.reset(content::URLFetcher::Create(
- 0, GURL(full_query), content::URLFetcher::GET,
+ 0, GURL(full_query), net::URLFetcher::GET,
MakeContextDelegate(this, new UpdateContext())));
StartFetch(url_fetcher_.get(), config_->RequestContext(), false);
}