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

Unified Diff: chrome/browser/chromeos/login/oauth2_token_fetcher.h

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: chrome/browser/chromeos/login/oauth2_token_fetcher.h
diff --git a/chrome/browser/chromeos/login/oauth2_token_fetcher.h b/chrome/browser/chromeos/login/oauth2_token_fetcher.h
index b5e5d8ea97385f1c608088aa0bfbebd694057e95..18ad7625dc4e2aeeee8b17ca13db0384cdcc6a5d 100644
--- a/chrome/browser/chromeos/login/oauth2_token_fetcher.h
+++ b/chrome/browser/chromeos/login/oauth2_token_fetcher.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_TOKEN_FETCHER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_TOKEN_FETCHER_H_
+#include <string>
+
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/compiler_specific.h"
@@ -36,7 +38,8 @@ class OAuth2TokenFetcher : public base::SupportsWeakPtr<OAuth2TokenFetcher>,
net::URLRequestContextGetter* context_getter);
virtual ~OAuth2TokenFetcher();
- void Start();
+ void StartExchangeFromCookies();
+ void StartExchangeFromAuthCode(const std::string& auth_code);
private:
// Decides how to proceed on GAIA |error|. If the error looks temporary,
@@ -59,6 +62,7 @@ class OAuth2TokenFetcher : public base::SupportsWeakPtr<OAuth2TokenFetcher>,
// The retry counter. Increment this only when failure happened.
int retry_count_;
+ std::string auth_code_;
DISALLOW_COPY_AND_ASSIGN(OAuth2TokenFetcher);
};

Powered by Google App Engine
This is Rietveld 408576698