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

Unified Diff: chrome/common/net/gaia/oauth2_access_token_fetcher.cc

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/net/gaia/oauth2_access_token_fetcher.h ('k') | chrome/common/net/gaia/oauth2_api_call_flow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/oauth2_access_token_fetcher.cc
diff --git a/chrome/common/net/gaia/oauth2_access_token_fetcher.cc b/chrome/common/net/gaia/oauth2_access_token_fetcher.cc
index d6db81ed65e54d12453cdefabdf7bee42dab3a4c..da5b8641dfadcf17a8572498be6158f4c334375f 100644
--- a/chrome/common/net/gaia/oauth2_access_token_fetcher.cc
+++ b/chrome/common/net/gaia/oauth2_access_token_fetcher.cc
@@ -110,7 +110,8 @@ void OAuth2AccessTokenFetcher::StartGetAccessToken() {
fetcher_->Start(); // OnURLFetchComplete will be called.
}
-void OAuth2AccessTokenFetcher::EndGetAccessToken(const URLFetcher* source) {
+void OAuth2AccessTokenFetcher::EndGetAccessToken(
+ const net::URLFetcher* source) {
CHECK_EQ(GET_ACCESS_TOKEN_STARTED, state_);
state_ = GET_ACCESS_TOKEN_DONE;
@@ -144,7 +145,8 @@ void OAuth2AccessTokenFetcher::OnGetTokenFailure(
consumer_->OnGetTokenFailure(error);
}
-void OAuth2AccessTokenFetcher::OnURLFetchComplete(const URLFetcher* source) {
+void OAuth2AccessTokenFetcher::OnURLFetchComplete(
+ const net::URLFetcher* source) {
CHECK(source);
CHECK(state_ == GET_ACCESS_TOKEN_STARTED);
EndGetAccessToken(source);
@@ -185,7 +187,7 @@ std::string OAuth2AccessTokenFetcher::MakeGetAccessTokenBody(
// static
bool OAuth2AccessTokenFetcher::ParseGetAccessTokenResponse(
- const URLFetcher* source,
+ const net::URLFetcher* source,
std::string* access_token) {
CHECK(source);
CHECK(access_token);
« no previous file with comments | « chrome/common/net/gaia/oauth2_access_token_fetcher.h ('k') | chrome/common/net/gaia/oauth2_api_call_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698