Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / google_apis / gaia / gaia_urls.h
blob07623f605c77af05d64188eee0679b06d40259f3
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
3 // found in the LICENSE file.
5 #ifndef GOOGLE_APIS_GAIA_GAIA_URLS_H_
6 #define GOOGLE_APIS_GAIA_GAIA_URLS_H_
8 #include <string>
10 #include "base/memory/singleton.h"
11 #include "url/gurl.h"
13 // A signleton that provides all the URLs that are used for connecting to GAIA.
14 class GaiaUrls {
15 public:
16 static GaiaUrls* GetInstance();
18 // The URLs for different calls in the Google Accounts programmatic login API.
19 const GURL& google_url() const;
20 const GURL& gaia_url() const;
21 const GURL& captcha_base_url() const;
22 const GURL& client_login_url() const;
23 const GURL& service_login_url() const;
24 const GURL& embedded_setup_chromeos_url() const;
25 const GURL& service_login_auth_url() const;
26 const GURL& service_logout_url() const;
27 const GURL& issue_auth_token_url() const;
28 const GURL& get_user_info_url() const;
29 const GURL& token_auth_url() const;
30 const GURL& merge_session_url() const;
31 const GURL& get_oauth_token_url() const;
32 const GURL& oauth_get_access_token_url() const;
33 const GURL& oauth_wrap_bridge_url() const;
34 const GURL& oauth_user_info_url() const;
35 const GURL& oauth_revoke_token_url() const;
36 const GURL& oauth1_login_url() const;
37 const GURL& embedded_signin_url() const;
38 const GURL& add_account_url() const;
40 const std::string& oauth2_chrome_client_id() const;
41 const std::string& oauth2_chrome_client_secret() const;
42 const GURL& client_login_to_oauth2_url() const;
43 const GURL& oauth2_auth_url() const;
44 const GURL& oauth2_token_url() const;
45 const GURL& oauth2_issue_token_url() const;
46 const GURL& oauth2_token_info_url() const;
47 const GURL& oauth2_revoke_url() const;
48 const GURL& oauth2_iframe_url() const;
50 const GURL& gaia_login_form_realm() const;
52 GURL ListAccountsURLWithSource(const std::string& source);
53 GURL LogOutURLWithSource(const std::string& source);
54 GURL GetCheckConnectionInfoURLWithSource(const std::string& source);
56 // Continue URL used to signal the completion of the signin flow.
57 GURL signin_completed_continue_url() const;
59 private:
60 GaiaUrls();
61 ~GaiaUrls();
63 friend struct DefaultSingletonTraits<GaiaUrls>;
65 GURL google_url_;
66 GURL gaia_url_;
67 GURL captcha_base_url_;
69 GURL lso_origin_url_;
70 GURL google_apis_origin_url_;
72 GURL client_login_url_;
73 GURL service_login_url_;
74 GURL embedded_setup_chromeos_url_;
75 GURL service_login_auth_url_;
76 GURL service_logout_url_;
77 GURL issue_auth_token_url_;
78 GURL get_user_info_url_;
79 GURL token_auth_url_;
80 GURL merge_session_url_;
81 GURL get_oauth_token_url_;
82 GURL oauth_get_access_token_url_;
83 GURL oauth_wrap_bridge_url_;
84 GURL oauth_user_info_url_;
85 GURL oauth_revoke_token_url_;
86 GURL oauth1_login_url_;
87 GURL list_accounts_url_;
88 GURL embedded_signin_url_;
89 GURL add_account_url_;
90 GURL get_check_connection_info_url_;
92 std::string oauth2_chrome_client_id_;
93 std::string oauth2_chrome_client_secret_;
95 GURL client_login_to_oauth2_url_;
96 GURL oauth2_auth_url_;
97 GURL oauth2_token_url_;
98 GURL oauth2_issue_token_url_;
99 GURL oauth2_token_info_url_;
100 GURL oauth2_revoke_url_;
101 GURL oauth2_iframe_url_;
103 GURL gaia_login_form_realm_;
105 DISALLOW_COPY_AND_ASSIGN(GaiaUrls);
108 #endif // GOOGLE_APIS_GAIA_GAIA_URLS_H_