| 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 #ifndef GOOGLE_APIS_GAIA_GAIA_URLS_H_ | 5 #ifndef GOOGLE_APIS_GAIA_GAIA_URLS_H_ |
| 6 #define GOOGLE_APIS_GAIA_GAIA_URLS_H_ | 6 #define GOOGLE_APIS_GAIA_GAIA_URLS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 // A signleton that provides all the URLs that are used for connecting to GAIA. | 14 // A signleton that provides all the URLs that are used for connecting to GAIA. |
| 15 class GaiaUrls { | 15 class GaiaUrls { |
| 16 public: | 16 public: |
| 17 static GaiaUrls* GetInstance(); | 17 static GaiaUrls* GetInstance(); |
| 18 | 18 |
| 19 // The URLs for different calls in the Google Accounts programmatic login API. | 19 // The URLs for different calls in the Google Accounts programmatic login API. |
| 20 const GURL& google_url() const; | 20 const GURL& google_url() const; |
| 21 const GURL& gaia_url() const; | 21 const GURL& gaia_url() const; |
| 22 const GURL& captcha_base_url() const; | 22 const GURL& captcha_base_url() const; |
| 23 const GURL& client_login_url() const; | 23 const GURL& client_login_url() const; |
| 24 const GURL& service_login_url() const; | 24 const GURL& service_login_url() const; |
| 25 const GURL& embedded_setup_chromeos_url(unsigned version) const; | 25 const GURL& embedded_setup_chromeos_url() const; |
| 26 const GURL& service_login_auth_url() const; | 26 const GURL& service_login_auth_url() const; |
| 27 const GURL& service_logout_url() const; | 27 const GURL& service_logout_url() const; |
| 28 const GURL& issue_auth_token_url() const; | 28 const GURL& issue_auth_token_url() const; |
| 29 const GURL& get_user_info_url() const; | 29 const GURL& get_user_info_url() const; |
| 30 const GURL& token_auth_url() const; | 30 const GURL& token_auth_url() const; |
| 31 const GURL& merge_session_url() const; | 31 const GURL& merge_session_url() const; |
| 32 const GURL& get_oauth_token_url() const; | 32 const GURL& get_oauth_token_url() const; |
| 33 const GURL& oauth_get_access_token_url() const; | 33 const GURL& oauth_get_access_token_url() const; |
| 34 const GURL& oauth_wrap_bridge_url() const; | 34 const GURL& oauth_wrap_bridge_url() const; |
| 35 const GURL& oauth_user_info_url() const; | 35 const GURL& oauth_user_info_url() const; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 GURL google_url_; | 66 GURL google_url_; |
| 67 GURL gaia_url_; | 67 GURL gaia_url_; |
| 68 GURL captcha_base_url_; | 68 GURL captcha_base_url_; |
| 69 | 69 |
| 70 GURL lso_origin_url_; | 70 GURL lso_origin_url_; |
| 71 GURL google_apis_origin_url_; | 71 GURL google_apis_origin_url_; |
| 72 | 72 |
| 73 GURL client_login_url_; | 73 GURL client_login_url_; |
| 74 GURL service_login_url_; | 74 GURL service_login_url_; |
| 75 GURL embedded_setup_chromeos_url_v1_; | 75 GURL embedded_setup_chromeos_url_; |
| 76 GURL embedded_setup_chromeos_url_v2_; | |
| 77 GURL service_login_auth_url_; | 76 GURL service_login_auth_url_; |
| 78 GURL service_logout_url_; | 77 GURL service_logout_url_; |
| 79 GURL issue_auth_token_url_; | 78 GURL issue_auth_token_url_; |
| 80 GURL get_user_info_url_; | 79 GURL get_user_info_url_; |
| 81 GURL token_auth_url_; | 80 GURL token_auth_url_; |
| 82 GURL merge_session_url_; | 81 GURL merge_session_url_; |
| 83 GURL get_oauth_token_url_; | 82 GURL get_oauth_token_url_; |
| 84 GURL oauth_get_access_token_url_; | 83 GURL oauth_get_access_token_url_; |
| 85 GURL oauth_wrap_bridge_url_; | 84 GURL oauth_wrap_bridge_url_; |
| 86 GURL oauth_user_info_url_; | 85 GURL oauth_user_info_url_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 101 GURL oauth2_token_info_url_; | 100 GURL oauth2_token_info_url_; |
| 102 GURL oauth2_revoke_url_; | 101 GURL oauth2_revoke_url_; |
| 103 GURL oauth2_iframe_url_; | 102 GURL oauth2_iframe_url_; |
| 104 | 103 |
| 105 GURL gaia_login_form_realm_; | 104 GURL gaia_login_form_realm_; |
| 106 | 105 |
| 107 DISALLOW_COPY_AND_ASSIGN(GaiaUrls); | 106 DISALLOW_COPY_AND_ASSIGN(GaiaUrls); |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 #endif // GOOGLE_APIS_GAIA_GAIA_URLS_H_ | 109 #endif // GOOGLE_APIS_GAIA_GAIA_URLS_H_ |
| OLD | NEW |