| 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 "googleurl/src/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 std::string& captcha_url_prefix() const; | 19 const std::string& captcha_url_prefix() const; |
| 20 | 20 |
| 21 const GURL& gaia_url() const; | 21 const GURL& gaia_url() const; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 std::string oauth2_issue_token_url_; | 83 std::string oauth2_issue_token_url_; |
| 84 std::string oauth2_token_info_url_; | 84 std::string oauth2_token_info_url_; |
| 85 std::string oauth2_revoke_url_; | 85 std::string oauth2_revoke_url_; |
| 86 | 86 |
| 87 std::string gaia_login_form_realm_; | 87 std::string gaia_login_form_realm_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(GaiaUrls); | 89 DISALLOW_COPY_AND_ASSIGN(GaiaUrls); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 #endif // GOOGLE_APIS_GAIA_GAIA_URLS_H_ | 92 #endif // GOOGLE_APIS_GAIA_GAIA_URLS_H_ |
| OLD | NEW |