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

Unified Diff: chrome/browser/signin/signin_header_helper.h

Issue 345533005: Parse extra parameters on x-chrome-manage-accounts header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/signin/signin_header_helper.h
diff --git a/chrome/browser/signin/signin_header_helper.h b/chrome/browser/signin/signin_header_helper.h
index b2b7dba6b11831ff422a1b9937fa9853b593f5a2..f5f9d7af9291e8aa145d9175b30399d8fe9d1478 100644
--- a/chrome/browser/signin/signin_header_helper.h
+++ b/chrome/browser/signin/signin_header_helper.h
@@ -41,7 +41,29 @@ enum GAIAServiceType {
// Struct describing the paramters received in the manage account header.
struct ManageAccountsParams {
+ // The requested service type such as "ADDSESSION".
GAIAServiceType service_type;
+ // The prefilled email.
+ std::string email;
+ // Whether |email| is a saml account.
+ bool is_saml;
+ // The continue URL after the requested service is completed successfully.
+ // Defaults to the current URL if empty.
+ std::string continue_url;
+ // Whether the continue URL should be loaded in the same tab.
+ bool is_same_tab;
+ // The child id associated with the web content of the request.
+ int child_id;
+ // The route id associated with the web content of the request.
+ int route_id;
+
+ ManageAccountsParams() : service_type(GAIA_SERVICE_TYPE_NONE),
+ email(""),
+ is_saml(false),
+ continue_url(""),
+ is_same_tab(false),
+ child_id(0),
+ route_id(0) {}
};
// Adds X-Chrome-Connected header to all Gaia requests from a connected profile,

Powered by Google App Engine
This is Rietveld 408576698