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

Side by Side Diff: google_apis/gaia/gaia_urls.cc

Issue 1344443002: Implement new password separated sign in flow for chrome desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged Created 5 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 | « google_apis/gaia/gaia_urls.h ('k') | tools/metrics/histograms/histograms.xml » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "google_apis/gaia/gaia_urls.h" 5 #include "google_apis/gaia/gaia_urls.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "google_apis/gaia/gaia_switches.h" 10 #include "google_apis/gaia/gaia_switches.h"
(...skipping 14 matching lines...) Expand all
25 const char kServiceLogoutUrlSuffix[] = "Logout"; 25 const char kServiceLogoutUrlSuffix[] = "Logout";
26 const char kIssueAuthTokenUrlSuffix[] = "IssueAuthToken"; 26 const char kIssueAuthTokenUrlSuffix[] = "IssueAuthToken";
27 const char kGetUserInfoUrlSuffix[] = "GetUserInfo"; 27 const char kGetUserInfoUrlSuffix[] = "GetUserInfo";
28 const char kTokenAuthUrlSuffix[] = "TokenAuth"; 28 const char kTokenAuthUrlSuffix[] = "TokenAuth";
29 const char kMergeSessionUrlSuffix[] = "MergeSession"; 29 const char kMergeSessionUrlSuffix[] = "MergeSession";
30 const char kOAuthGetAccessTokenUrlSuffix[] = "OAuthGetAccessToken"; 30 const char kOAuthGetAccessTokenUrlSuffix[] = "OAuthGetAccessToken";
31 const char kOAuthWrapBridgeUrlSuffix[] = "OAuthWrapBridge"; 31 const char kOAuthWrapBridgeUrlSuffix[] = "OAuthWrapBridge";
32 const char kOAuth1LoginUrlSuffix[] = "OAuthLogin"; 32 const char kOAuth1LoginUrlSuffix[] = "OAuthLogin";
33 const char kOAuthRevokeTokenUrlSuffix[] = "AuthSubRevokeToken"; 33 const char kOAuthRevokeTokenUrlSuffix[] = "AuthSubRevokeToken";
34 const char kListAccountsSuffix[] = "ListAccounts?json=standard"; 34 const char kListAccountsSuffix[] = "ListAccounts?json=standard";
35 const char kEmbeddedSigninSuffix[] = "EmbeddedSignIn"; 35 const char kPasswordCombinedEmbeddedSigninSuffix[] = "EmbeddedSignIn";
36 const char kEmbeddedSigninSuffix[] = "embedded/setup/chrome/usermenu";
36 const char kAddAccountSuffix[] = "AddSession"; 37 const char kAddAccountSuffix[] = "AddSession";
37 const char kGetCheckConnectionInfoSuffix[] = "GetCheckConnectionInfo"; 38 const char kGetCheckConnectionInfoSuffix[] = "GetCheckConnectionInfo";
38 39
39 // API calls from accounts.google.com (LSO) 40 // API calls from accounts.google.com (LSO)
40 const char kGetOAuthTokenUrlSuffix[] = "o/oauth/GetOAuthToken/"; 41 const char kGetOAuthTokenUrlSuffix[] = "o/oauth/GetOAuthToken/";
41 const char kClientLoginToOAuth2UrlSuffix[] = "o/oauth2/programmatic_auth"; 42 const char kClientLoginToOAuth2UrlSuffix[] = "o/oauth2/programmatic_auth";
42 const char kOAuth2AuthUrlSuffix[] = "o/oauth2/auth"; 43 const char kOAuth2AuthUrlSuffix[] = "o/oauth2/auth";
43 const char kOAuth2RevokeUrlSuffix[] = "o/oauth2/revoke"; 44 const char kOAuth2RevokeUrlSuffix[] = "o/oauth2/revoke";
44 const char kOAuth2IFrameUrlSuffix[] = "o/oauth2/iframerpc"; 45 const char kOAuth2IFrameUrlSuffix[] = "o/oauth2/iframerpc";
45 46
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 issue_auth_token_url_ = gaia_url_.Resolve(kIssueAuthTokenUrlSuffix); 105 issue_auth_token_url_ = gaia_url_.Resolve(kIssueAuthTokenUrlSuffix);
105 get_user_info_url_ = gaia_url_.Resolve(kGetUserInfoUrlSuffix); 106 get_user_info_url_ = gaia_url_.Resolve(kGetUserInfoUrlSuffix);
106 token_auth_url_ = gaia_url_.Resolve(kTokenAuthUrlSuffix); 107 token_auth_url_ = gaia_url_.Resolve(kTokenAuthUrlSuffix);
107 merge_session_url_ = gaia_url_.Resolve(kMergeSessionUrlSuffix); 108 merge_session_url_ = gaia_url_.Resolve(kMergeSessionUrlSuffix);
108 oauth_get_access_token_url_ = 109 oauth_get_access_token_url_ =
109 gaia_url_.Resolve(kOAuthGetAccessTokenUrlSuffix); 110 gaia_url_.Resolve(kOAuthGetAccessTokenUrlSuffix);
110 oauth_wrap_bridge_url_ = gaia_url_.Resolve(kOAuthWrapBridgeUrlSuffix); 111 oauth_wrap_bridge_url_ = gaia_url_.Resolve(kOAuthWrapBridgeUrlSuffix);
111 oauth_revoke_token_url_ = gaia_url_.Resolve(kOAuthRevokeTokenUrlSuffix); 112 oauth_revoke_token_url_ = gaia_url_.Resolve(kOAuthRevokeTokenUrlSuffix);
112 oauth1_login_url_ = gaia_url_.Resolve(kOAuth1LoginUrlSuffix); 113 oauth1_login_url_ = gaia_url_.Resolve(kOAuth1LoginUrlSuffix);
113 list_accounts_url_ = gaia_url_.Resolve(kListAccountsSuffix); 114 list_accounts_url_ = gaia_url_.Resolve(kListAccountsSuffix);
115 password_combined_embedded_signin_url_ =
116 gaia_url_.Resolve(kPasswordCombinedEmbeddedSigninSuffix);
114 embedded_signin_url_ = gaia_url_.Resolve(kEmbeddedSigninSuffix); 117 embedded_signin_url_ = gaia_url_.Resolve(kEmbeddedSigninSuffix);
115 add_account_url_ = gaia_url_.Resolve(kAddAccountSuffix); 118 add_account_url_ = gaia_url_.Resolve(kAddAccountSuffix);
116 get_check_connection_info_url_ = 119 get_check_connection_info_url_ =
117 gaia_url_.Resolve(kGetCheckConnectionInfoSuffix); 120 gaia_url_.Resolve(kGetCheckConnectionInfoSuffix);
118 121
119 // URLs from accounts.google.com (LSO). 122 // URLs from accounts.google.com (LSO).
120 get_oauth_token_url_ = lso_origin_url_.Resolve(kGetOAuthTokenUrlSuffix); 123 get_oauth_token_url_ = lso_origin_url_.Resolve(kGetOAuthTokenUrlSuffix);
121 client_login_to_oauth2_url_ = 124 client_login_to_oauth2_url_ =
122 lso_origin_url_.Resolve(kClientLoginToOAuth2UrlSuffix); 125 lso_origin_url_.Resolve(kClientLoginToOAuth2UrlSuffix);
123 oauth2_auth_url_ = lso_origin_url_.Resolve(kOAuth2AuthUrlSuffix); 126 oauth2_auth_url_ = lso_origin_url_.Resolve(kOAuth2AuthUrlSuffix);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 217 }
215 218
216 const GURL& GaiaUrls::oauth1_login_url() const { 219 const GURL& GaiaUrls::oauth1_login_url() const {
217 return oauth1_login_url_; 220 return oauth1_login_url_;
218 } 221 }
219 222
220 const GURL& GaiaUrls::embedded_signin_url() const { 223 const GURL& GaiaUrls::embedded_signin_url() const {
221 return embedded_signin_url_; 224 return embedded_signin_url_;
222 } 225 }
223 226
227 const GURL& GaiaUrls::password_combined_embedded_signin_url() const {
228 return password_combined_embedded_signin_url_;
229 }
230
224 const GURL& GaiaUrls::add_account_url() const { 231 const GURL& GaiaUrls::add_account_url() const {
225 return add_account_url_; 232 return add_account_url_;
226 } 233 }
227 234
228 const std::string& GaiaUrls::oauth2_chrome_client_id() const { 235 const std::string& GaiaUrls::oauth2_chrome_client_id() const {
229 return oauth2_chrome_client_id_; 236 return oauth2_chrome_client_id_;
230 } 237 }
231 238
232 const std::string& GaiaUrls::oauth2_chrome_client_secret() const { 239 const std::string& GaiaUrls::oauth2_chrome_client_secret() const {
233 return oauth2_chrome_client_secret_; 240 return oauth2_chrome_client_secret_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 return source.empty() 288 return source.empty()
282 ? get_check_connection_info_url_ 289 ? get_check_connection_info_url_
283 : get_check_connection_info_url_.Resolve( 290 : get_check_connection_info_url_.Resolve(
284 base::StringPrintf("?source=%s", source.c_str())); 291 base::StringPrintf("?source=%s", source.c_str()));
285 } 292 }
286 293
287 GURL GaiaUrls::signin_completed_continue_url() const { 294 GURL GaiaUrls::signin_completed_continue_url() const {
288 return 295 return
289 GURL("chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/success.html"); 296 GURL("chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/success.html");
290 } 297 }
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_urls.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698