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

Side by Side Diff: components/signin/core/browser/signin_header_helper.h

Issue 2353923003: Fix Mirror header on Drive domains. (Closed)
Patch Set: Extract hard-coded string Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/signin/core/browser/signin_header_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "build/build_config.h" // For OS_IOS 10 #include "build/build_config.h" // For OS_IOS
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 ManageAccountsParams(); 70 ManageAccountsParams();
71 ManageAccountsParams(const ManageAccountsParams& other); 71 ManageAccountsParams(const ManageAccountsParams& other);
72 }; 72 };
73 73
74 // Returns true if signin cookies are allowed. 74 // Returns true if signin cookies are allowed.
75 bool SettingsAllowSigninCookies( 75 bool SettingsAllowSigninCookies(
76 const content_settings::CookieSettings* cookie_settings); 76 const content_settings::CookieSettings* cookie_settings);
77 77
78 // Checks if the url has the required properties to have an 78 // Checks if the url has the required properties to have an
79 // X-CHROME-CONNECTED header. 79 // X-Chrome-Connected header.
80 bool IsUrlEligibleForXChromeConnectedHeader(const GURL& url); 80 bool IsUrlEligibleForXChromeConnectedHeader(const GURL& url);
81 81
82 // Returns the X-CHROME-CONNECTED cookie, or an empty string if it should not be 82 // Returns the CHROME_CONNECTED cookie, or an empty string if it should not be
83 // added to the request to |url|. 83 // added to the request to |url|.
84 std::string BuildMirrorRequestCookieIfPossible( 84 std::string BuildMirrorRequestCookieIfPossible(
85 const GURL& url, 85 const GURL& url,
86 const std::string& account_id, 86 const std::string& account_id,
87 const content_settings::CookieSettings* cookie_settings, 87 const content_settings::CookieSettings* cookie_settings,
88 int profile_mode_mask); 88 int profile_mode_mask);
89 89
90 // Adds X-Chrome-Connected header to all Gaia requests from a connected profile, 90 // Adds X-Chrome-Connected header to all Gaia requests from a connected profile,
91 // with the exception of requests from gaia webview. 91 // with the exception of requests from gaia webview.
92 // Removes the header in case it should not be transfered to a redirected url. 92 // Removes the header in case it should not be transfered to a redirected url.
(...skipping 11 matching lines...) Expand all
104 // Returns the parameters contained in the X-Chrome-Manage-Accounts response 104 // Returns the parameters contained in the X-Chrome-Manage-Accounts response
105 // header. 105 // header.
106 // If the request does not have a response header or if the header contains 106 // If the request does not have a response header or if the header contains
107 // garbage, then |service_type| is set to |GAIA_SERVICE_TYPE_NONE|. 107 // garbage, then |service_type| is set to |GAIA_SERVICE_TYPE_NONE|.
108 ManageAccountsParams BuildManageAccountsParamsIfExists(net::URLRequest* request, 108 ManageAccountsParams BuildManageAccountsParamsIfExists(net::URLRequest* request,
109 bool is_off_the_record); 109 bool is_off_the_record);
110 110
111 } // namespace signin 111 } // namespace signin
112 112
113 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_ 113 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_HEADER_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | components/signin/core/browser/signin_header_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698