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

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: cleanup 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
« no previous file with comments | « chrome/browser/signin/signin_global_error.cc ('k') | chrome/browser/signin/signin_header_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..39fd1fbc6d332c242fef284bc046a581d162f23d 100644
--- a/chrome/browser/signin/signin_header_helper.h
+++ b/chrome/browser/signin/signin_header_helper.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_SIGNIN_SIGNIN_HEADER_HELPER_H_
#define CHROME_BROWSER_SIGNIN_SIGNIN_HEADER_HELPER_H_
+#include <string>
+
namespace net {
class URLRequest;
}
@@ -41,7 +43,23 @@ 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();
};
// Adds X-Chrome-Connected header to all Gaia requests from a connected profile,
@@ -55,14 +73,6 @@ bool AppendMirrorRequestHeaderIfPossible(
int child_id,
int route_id);
-// Returns the parameters contained in the X-Chrome-Manage-Accounts response
-// header.
-// If the request does not have a response header or if the header contains
-// garbage, then |service_type| is set to |GAIA_SERVICE_TYPE_NONE|.
-// Must be called on IO thread.
-ManageAccountsParams GetManageAccountsParams(net::URLRequest* request,
- ProfileIOData* io_data);
-
// Looks for the X-Chrome-Manage-Accounts response header, and if found,
// tries to show the avatar bubble in the browser identified by the
// child/route id. Must be called on IO thread.
« no previous file with comments | « chrome/browser/signin/signin_global_error.cc ('k') | chrome/browser/signin/signin_header_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698