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

Unified Diff: chrome/browser/net/gaia/gaia_oauth_fetcher.h

Issue 7551026: Adding service_name to GaiaOAuthFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced two instances of kSyncService with kDeviceManagementService Created 9 years, 5 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/browser/net/gaia/gaia_oauth_consumer.h ('k') | chrome/browser/net/gaia/gaia_oauth_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/gaia/gaia_oauth_fetcher.h
diff --git a/chrome/browser/net/gaia/gaia_oauth_fetcher.h b/chrome/browser/net/gaia/gaia_oauth_fetcher.h
index 4a635ced9791fbcdf8897dc79efa75b41e0c6319..be2bea8a6d7e4ecbfcf488c1ed2cf81c9319b74d 100644
--- a/chrome/browser/net/gaia/gaia_oauth_fetcher.h
+++ b/chrome/browser/net/gaia/gaia_oauth_fetcher.h
@@ -53,6 +53,7 @@ class GaiaOAuthFetcher : public URLFetcher::Delegate,
GaiaOAuthFetcher(GaiaOAuthConsumer* consumer,
net::URLRequestContextGetter* getter,
Profile* profile,
+ const std::string& service_name,
const std::string& service_scope);
virtual ~GaiaOAuthFetcher();
@@ -92,13 +93,15 @@ class GaiaOAuthFetcher : public URLFetcher::Delegate,
// wrap_token_duration is typically one hour,
// which is also the max -- you can only decrease it.
//
- // oauth2_scope should be specific to a service. For example, Chromium Sync
- // uses https://www.googleapis.com/auth/chromesync as it's OAuth2 scope.
+ // service_name and service_scope should be specific to a service. For
+ // example, Chromium Sync uses https://www.googleapis.com/auth/chromesync as
+ // its OAuth2 service scope.
virtual void StartOAuthWrapBridge(
const std::string& oauth1_access_token,
const std::string& oauth1_access_token_secret,
const std::string& wrap_token_duration,
- const std::string& oauth2_scope);
+ const std::string& service_name,
+ const std::string& service_scope);
// Obtains user information related to an OAuth2 access token
//
@@ -230,7 +233,6 @@ class GaiaOAuthFetcher : public URLFetcher::Delegate,
GaiaOAuthConsumer* const consumer_;
net::URLRequestContextGetter* const getter_;
Profile* profile_;
- std::string service_scope_;
Browser* popup_;
NotificationRegistrar registrar_;
@@ -238,6 +240,8 @@ class GaiaOAuthFetcher : public URLFetcher::Delegate,
scoped_ptr<URLFetcher> fetcher_;
std::string request_body_;
std::string request_headers_;
+ std::string service_name_;
+ std::string service_scope_;
bool fetch_pending_;
AutoFetchLimit auto_fetch_limit_;
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_consumer.h ('k') | chrome/browser/net/gaia/gaia_oauth_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698