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

Unified Diff: chrome/common/net/gaia/oauth_request_signer.h

Issue 8248002: Merge 103908 - Extend GaiaOAuthFetcher with support for revoking tokens. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 years, 2 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/common/net/gaia/oauth_request_signer.h
===================================================================
--- chrome/common/net/gaia/oauth_request_signer.h (revision 105055)
+++ chrome/common/net/gaia/oauth_request_signer.h (working copy)
@@ -72,16 +72,28 @@
//
// If HttpMethod is GET_METHOD, the signed result is the full URL, otherwise
// it is the request parameters, including the oauth_signature field.
- static bool Sign(const GURL& request_base_url,
- const Parameters& parameters,
- SignatureMethod signature_method,
- HttpMethod http_method,
- const std::string& consumer_key,
- const std::string& consumer_secret,
- const std::string& token_key,
- const std::string& token_secret,
- std::string* signed_result);
+ static bool SignURL(const GURL& request_base_url,
+ const Parameters& parameters,
+ SignatureMethod signature_method,
+ HttpMethod http_method,
+ const std::string& consumer_key,
+ const std::string& consumer_secret,
+ const std::string& token_key,
+ const std::string& token_secret,
+ std::string* signed_result);
+ // Similar to SignURL(), but the returned string is not a URL, but the payload
+ // to for an HTTP Authorization header.
+ static bool SignAuthHeader(const GURL& request_base_url,
+ const Parameters& parameters,
+ SignatureMethod signature_method,
+ HttpMethod http_method,
+ const std::string& consumer_key,
+ const std::string& consumer_secret,
+ const std::string& token_key,
+ const std::string& token_secret,
+ std::string* signed_result);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(OAuthRequestSigner);
};
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc ('k') | chrome/common/net/gaia/oauth_request_signer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698