Chromium Code Reviews| Index: chrome/common/net/gaia/gaia_auth_fetcher.h |
| =================================================================== |
| --- chrome/common/net/gaia/gaia_auth_fetcher.h (revision 123466) |
| +++ chrome/common/net/gaia/gaia_auth_fetcher.h (working copy) |
| @@ -30,7 +30,6 @@ |
| namespace net { |
| class URLRequestContextGetter; |
| class URLRequestStatus; |
| -typedef std::vector<std::string> ResponseCookies; |
| } |
| class GaiaAuthFetcher : public content::URLFetcherDelegate { |
| @@ -89,7 +88,8 @@ |
| void StartMergeSession(const std::string& auth_token); |
| // Start a request to get an uber-auth token. The given |access_token| must |
| - // be an OAuth2 valid access token. |
| + // be an OAuth2 valid access token. If |access_token| is an empty string, |
| + // then the cookie jar is used with the request. |
| void StartUberAuthTokenFetch(const std::string& access_token); |
| // Implementation of content::URLFetcherDelegate |
| @@ -182,7 +182,8 @@ |
| const net::URLRequestStatus& status, |
| int response_code); |
| - void OnTokenAuthFetched(const std::string& data, |
| + void OnTokenAuthFetched(const net::ResponseCookies& cookies, |
| + const std::string& data, |
| const net::URLRequestStatus& status, |
| int response_code); |
| @@ -265,7 +266,7 @@ |
| const std::string& body, |
| const std::string& headers, |
| const GURL& gaia_gurl, |
| - bool use_cookies, |
| + int load_flags, |
|
Andrew T Wilson (Slow)
2012/02/27 18:00:41
Can we document |load_flags|?
Roger Tawa OOO till Jul 10th
2012/02/29 18:46:53
Done.
|
| content::URLFetcherDelegate* delegate); |
| // From a URLFetcher result, generate an appropriate error. |