| 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/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 // A signleton that provides all the URLs that are used for connecting to GAIA. | 13 // A signleton that provides all the URLs that are used for connecting to GAIA. |
| 14 class GaiaUrls { | 14 class GaiaUrls { |
| 15 public: | 15 public: |
| 16 static GaiaUrls* GetInstance(); | 16 static GaiaUrls* GetInstance(); |
| 17 | 17 |
| 18 // The URLs for different calls in the Google Accounts programmatic login API. | 18 // The URLs for different calls in the Google Accounts programmatic login API. |
| 19 const GURL& google_url() const; |
| 19 const GURL& gaia_url() const; | 20 const GURL& gaia_url() const; |
| 20 const GURL& captcha_base_url() const; | 21 const GURL& captcha_base_url() const; |
| 21 const GURL& client_login_url() const; | 22 const GURL& client_login_url() const; |
| 22 const GURL& service_login_url() const; | 23 const GURL& service_login_url() const; |
| 23 const GURL& embedded_setup_chromeos_url() const; | 24 const GURL& embedded_setup_chromeos_url() const; |
| 24 const GURL& service_login_auth_url() const; | 25 const GURL& service_login_auth_url() const; |
| 25 const GURL& service_logout_url() const; | 26 const GURL& service_logout_url() const; |
| 26 const GURL& issue_auth_token_url() const; | 27 const GURL& issue_auth_token_url() const; |
| 27 const GURL& get_user_info_url() const; | 28 const GURL& get_user_info_url() const; |
| 28 const GURL& token_auth_url() const; | 29 const GURL& token_auth_url() const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 50 | 51 |
| 51 GURL ListAccountsURLWithSource(const std::string& source); | 52 GURL ListAccountsURLWithSource(const std::string& source); |
| 52 GURL GetCheckConnectionInfoURLWithSource(const std::string& source); | 53 GURL GetCheckConnectionInfoURLWithSource(const std::string& source); |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 GaiaUrls(); | 56 GaiaUrls(); |
| 56 ~GaiaUrls(); | 57 ~GaiaUrls(); |
| 57 | 58 |
| 58 friend struct DefaultSingletonTraits<GaiaUrls>; | 59 friend struct DefaultSingletonTraits<GaiaUrls>; |
| 59 | 60 |
| 61 GURL google_url_; |
| 60 GURL gaia_url_; | 62 GURL gaia_url_; |
| 61 GURL captcha_base_url_; | 63 GURL captcha_base_url_; |
| 62 | 64 |
| 63 GURL lso_origin_url_; | 65 GURL lso_origin_url_; |
| 64 GURL google_apis_origin_url_; | 66 GURL google_apis_origin_url_; |
| 65 | 67 |
| 66 GURL client_login_url_; | 68 GURL client_login_url_; |
| 67 GURL service_login_url_; | 69 GURL service_login_url_; |
| 68 GURL embedded_setup_chromeos_url_; | 70 GURL embedded_setup_chromeos_url_; |
| 69 GURL service_login_auth_url_; | 71 GURL service_login_auth_url_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 93 GURL oauth2_token_info_url_; | 95 GURL oauth2_token_info_url_; |
| 94 GURL oauth2_revoke_url_; | 96 GURL oauth2_revoke_url_; |
| 95 GURL oauth2_iframe_url_; | 97 GURL oauth2_iframe_url_; |
| 96 | 98 |
| 97 GURL gaia_login_form_realm_; | 99 GURL gaia_login_form_realm_; |
| 98 | 100 |
| 99 DISALLOW_COPY_AND_ASSIGN(GaiaUrls); | 101 DISALLOW_COPY_AND_ASSIGN(GaiaUrls); |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 #endif // GOOGLE_APIS_GAIA_GAIA_URLS_H_ | 104 #endif // GOOGLE_APIS_GAIA_GAIA_URLS_H_ |
| OLD | NEW |