| OLD | NEW |
| 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 "google_apis/gaia/gaia_switches.h" | 9 #include "google_apis/gaia/gaia_switches.h" |
| 10 #include "google_apis/google_api_keys.h" | 10 #include "google_apis/google_api_keys.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 const char kServiceLoginAuthUrlSuffix[] = "ServiceLoginAuth"; | 21 const char kServiceLoginAuthUrlSuffix[] = "ServiceLoginAuth"; |
| 22 const char kServiceLogoutUrlSuffix[] = "Logout"; | 22 const char kServiceLogoutUrlSuffix[] = "Logout"; |
| 23 const char kIssueAuthTokenUrlSuffix[] = "IssueAuthToken"; | 23 const char kIssueAuthTokenUrlSuffix[] = "IssueAuthToken"; |
| 24 const char kGetUserInfoUrlSuffix[] = "GetUserInfo"; | 24 const char kGetUserInfoUrlSuffix[] = "GetUserInfo"; |
| 25 const char kTokenAuthUrlSuffix[] = "TokenAuth"; | 25 const char kTokenAuthUrlSuffix[] = "TokenAuth"; |
| 26 const char kMergeSessionUrlSuffix[] = "MergeSession"; | 26 const char kMergeSessionUrlSuffix[] = "MergeSession"; |
| 27 const char kOAuthGetAccessTokenUrlSuffix[] = "OAuthGetAccessToken"; | 27 const char kOAuthGetAccessTokenUrlSuffix[] = "OAuthGetAccessToken"; |
| 28 const char kOAuthWrapBridgeUrlSuffix[] = "OAuthWrapBridge"; | 28 const char kOAuthWrapBridgeUrlSuffix[] = "OAuthWrapBridge"; |
| 29 const char kOAuth1LoginUrlSuffix[] = "OAuthLogin"; | 29 const char kOAuth1LoginUrlSuffix[] = "OAuthLogin"; |
| 30 const char kOAuthRevokeTokenUrlSuffix[] = "AuthSubRevokeToken"; | 30 const char kOAuthRevokeTokenUrlSuffix[] = "AuthSubRevokeToken"; |
| 31 const char kListAccountsSuffix[] = "ListAccounts"; | 31 const char kListAccountsSuffix[] = "ListAccounts?json=standard"; |
| 32 const char kEmbeddedSigninSuffix[] = "EmbeddedSignIn"; | 32 const char kEmbeddedSigninSuffix[] = "EmbeddedSignIn"; |
| 33 const char kAddAccountSuffix[] = "AddSession"; | 33 const char kAddAccountSuffix[] = "AddSession"; |
| 34 | 34 |
| 35 // OAuth scopes | 35 // OAuth scopes |
| 36 const char kOAuth1LoginScope[] = "https://www.google.com/accounts/OAuthLogin"; | 36 const char kOAuth1LoginScope[] = "https://www.google.com/accounts/OAuthLogin"; |
| 37 const char kOAuthWrapBridgeUserInfoScope[] = | 37 const char kOAuthWrapBridgeUserInfoScope[] = |
| 38 "https://www.googleapis.com/auth/userinfo.email"; | 38 "https://www.googleapis.com/auth/userinfo.email"; |
| 39 | 39 |
| 40 // API calls from accounts.google.com (LSO) | 40 // API calls from accounts.google.com (LSO) |
| 41 const char kGetOAuthTokenUrlSuffix[] = "o/oauth/GetOAuthToken/"; | 41 const char kGetOAuthTokenUrlSuffix[] = "o/oauth/GetOAuthToken/"; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 return oauth2_token_info_url_; | 252 return oauth2_token_info_url_; |
| 253 } | 253 } |
| 254 | 254 |
| 255 const GURL& GaiaUrls::oauth2_revoke_url() const { | 255 const GURL& GaiaUrls::oauth2_revoke_url() const { |
| 256 return oauth2_revoke_url_; | 256 return oauth2_revoke_url_; |
| 257 } | 257 } |
| 258 | 258 |
| 259 const GURL& GaiaUrls::gaia_login_form_realm() const { | 259 const GURL& GaiaUrls::gaia_login_form_realm() const { |
| 260 return gaia_url_; | 260 return gaia_url_; |
| 261 } | 261 } |
| OLD | NEW |