diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 01:12:22 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 01:12:22 +0000 |
commit | 36aea270be00f58680c3eff2cfeb7061c35276d5 (patch) | |
tree | 08066a2eef66b64f9a98fb16160b9ac90c1a82b1 /chrome/common/net | |
parent | 28973f008ca89d623ec9ce48518a04436b1c71e4 (diff) | |
download | chromium_src-36aea270be00f58680c3eff2cfeb7061c35276d5.zip chromium_src-36aea270be00f58680c3eff2cfeb7061c35276d5.tar.gz chromium_src-36aea270be00f58680c3eff2cfeb7061c35276d5.tar.bz2 |
Convert chrome callers of UrlFetcher to use the interface. I'll switch tests to use composition instead of inheritence in a future change.
BUG=98716
Review URL: http://codereview.chromium.org/8395023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net')
-rw-r--r-- | chrome/common/net/gaia/gaia_auth_fetcher.cc | 10 | ||||
-rw-r--r-- | chrome/common/net/gaia/gaia_oauth_client.cc | 5 |
2 files changed, 6 insertions, 9 deletions
diff --git a/chrome/common/net/gaia/gaia_auth_fetcher.cc b/chrome/common/net/gaia/gaia_auth_fetcher.cc index 08cb74b..992cb06 100644 --- a/chrome/common/net/gaia/gaia_auth_fetcher.cc +++ b/chrome/common/net/gaia/gaia_auth_fetcher.cc @@ -16,7 +16,7 @@ #include "chrome/common/net/gaia/gaia_urls.h" #include "chrome/common/net/gaia/google_service_auth_error.h" #include "chrome/common/net/http_return.h" -#include "content/common/net/url_fetcher.h" +#include "content/public/common/url_fetcher.h" #include "net/base/escape.h" #include "net/base/load_flags.h" #include "net/url_request/url_request_context_getter.h" @@ -131,12 +131,8 @@ content::URLFetcher* GaiaAuthFetcher::CreateGaiaFetcher( const GURL& gaia_gurl, bool send_cookies, content::URLFetcherDelegate* delegate) { - - URLFetcher* to_return = - URLFetcher::Create(0, - gaia_gurl, - URLFetcher::POST, - delegate); + content::URLFetcher* to_return = content::URLFetcher::Create( + 0, gaia_gurl, content::URLFetcher::POST, delegate); to_return->SetRequestContext(getter); to_return->SetUploadData("application/x-www-form-urlencoded", body); diff --git a/chrome/common/net/gaia/gaia_oauth_client.cc b/chrome/common/net/gaia/gaia_oauth_client.cc index 5a1e5b5..7c0bcaa 100644 --- a/chrome/common/net/gaia/gaia_oauth_client.cc +++ b/chrome/common/net/gaia/gaia_oauth_client.cc @@ -8,7 +8,7 @@ #include "base/memory/scoped_ptr.h" #include "base/values.h" #include "chrome/common/net/http_return.h" -#include "content/common/net/url_fetcher.h" +#include "content/public/common/url_fetcher.h" #include "content/public/common/url_fetcher_delegate.h" #include "googleurl/src/gurl.h" #include "net/base/escape.h" @@ -96,7 +96,8 @@ void GaiaOAuthClient::Core::MakeGaiaRequest( DCHECK(!request_.get()) << "Tried to fetch two things at once!"; delegate_ = delegate; num_retries_ = 0; - request_.reset(URLFetcher::Create(0, gaia_url_, URLFetcher::POST, this)); + request_.reset(content::URLFetcher::Create( + 0, gaia_url_, content::URLFetcher::POST, this)); request_->SetRequestContext(request_context_getter_); request_->SetUploadData("application/x-www-form-urlencoded", post_body); request_->SetMaxRetries(max_retries); |