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

Unified Diff: google_apis/gaia/ubertoken_fetcher.h

Issue 136723009: Move UbertokenFetcher from //chrome to //google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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 | « google_apis/gaia/fake_oauth2_token_service.cc ('k') | google_apis/gaia/ubertoken_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/ubertoken_fetcher.h
diff --git a/chrome/browser/signin/ubertoken_fetcher.h b/google_apis/gaia/ubertoken_fetcher.h
similarity index 82%
rename from chrome/browser/signin/ubertoken_fetcher.h
rename to google_apis/gaia/ubertoken_fetcher.h
index ba20878b1eaa6e62d49570e8c799f472fc6a7074..2a3358d5fa67fc3581d7a6066620ff05421cab4f 100644
--- a/chrome/browser/signin/ubertoken_fetcher.h
+++ b/google_apis/gaia/ubertoken_fetcher.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_
-#define CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_
+#ifndef GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_
+#define GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_
#include "base/memory/scoped_ptr.h"
#include "google_apis/gaia/gaia_auth_consumer.h"
@@ -20,7 +20,10 @@
class GaiaAuthFetcher;
class GoogleServiceAuthError;
-class Profile;
+
+namespace net {
+class URLRequestContextGetter;
+}
// Callback for the |UbertokenFetcher| class.
class UbertokenConsumer {
@@ -35,7 +38,9 @@ class UbertokenConsumer {
class UbertokenFetcher : public GaiaAuthConsumer,
public OAuth2TokenService::Consumer {
public:
- UbertokenFetcher(Profile* profile, UbertokenConsumer* consumer);
+ UbertokenFetcher(OAuth2TokenService* token_service,
+ UbertokenConsumer* consumer,
+ net::URLRequestContextGetter* request_context);
virtual ~UbertokenFetcher();
// Start fetching the token for |account_id|.
@@ -54,12 +59,13 @@ class UbertokenFetcher : public GaiaAuthConsumer,
const GoogleServiceAuthError& error) OVERRIDE;
private:
- Profile* profile_;
+ OAuth2TokenService* token_service_;
UbertokenConsumer* consumer_;
+ net::URLRequestContextGetter* request_context_;
scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_;
scoped_ptr<OAuth2TokenService::Request> access_token_request_;
DISALLOW_COPY_AND_ASSIGN(UbertokenFetcher);
};
-#endif // CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_
+#endif // GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_
« no previous file with comments | « google_apis/gaia/fake_oauth2_token_service.cc ('k') | google_apis/gaia/ubertoken_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698