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

Unified Diff: components/signin/core/browser/signin_header_helper.h

Issue 2925083002: [signin] Move Mirror code to ChromeConnectedHeaderHelper (Closed)
Patch Set: fix comment Created 3 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: components/signin/core/browser/signin_header_helper.h
diff --git a/components/signin/core/browser/signin_header_helper.h b/components/signin/core/browser/signin_header_helper.h
index af88d450a271f7e282049659aad0488b7edd7c83..948d8718c90dd3371c399001b4dc478fe9a9fdea 100644
--- a/components/signin/core/browser/signin_header_helper.h
+++ b/components/signin/core/browser/signin_header_helper.h
@@ -5,9 +5,10 @@
#ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_
#define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_
+#include <map>
#include <string>
-#include "build/build_config.h" // For OS_IOS
+#include "build/build_config.h"
namespace content_settings {
class CookieSettings;
@@ -88,6 +89,14 @@ class SigninHeaderHelper {
SigninHeaderHelper() {}
virtual ~SigninHeaderHelper() {}
+ // Dictionary of fields in a account consistency response header.
+ using ResponseHeaderDictionary = std::map<std::string, std::string>;
+
+ // Parses the account consistency response header. Its expected format is
+ // "key1=value1,key2=value2,...".
+ static ResponseHeaderDictionary ParseAccountConsistencyResponseHeader(
+ const std::string& header_value);
+
// Returns the value of the request header, or empty if the header should not
// be added. Calls into BuildRequestHeader() which is customized by
// subclasses.
@@ -137,13 +146,6 @@ void AppendOrRemoveAccountConsistentyRequestHeader(
// header.
ManageAccountsParams BuildManageAccountsParams(const std::string& header_value);
-// 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|.
-ManageAccountsParams BuildManageAccountsParamsIfExists(net::URLRequest* request,
- bool is_off_the_record);
-
} // namespace signin
#endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698