Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/common/net/gaia/gaia_urls.h

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/net/gaia/gaia_switches.cc ('k') | chrome/common/net/gaia/gaia_urls.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_COMMON_NET_GAIA_GAIA_URLS_H_
6 #define CHROME_COMMON_NET_GAIA_GAIA_URLS_H_
7
8 #include <string>
9
10 #include "base/memory/singleton.h"
11
12 // A signleton that provides all the URLs that are used for connecting to GAIA.
13 class GaiaUrls {
14 public:
15 static GaiaUrls* GetInstance();
16
17 // The URLs for different calls in the Google Accounts programmatic login API.
18 const std::string& captcha_url_prefix();
19
20 const std::string& gaia_origin_url();
21 const std::string& client_login_url();
22 const std::string& service_login_url();
23 const std::string& issue_auth_token_url();
24 const std::string& get_user_info_url();
25 const std::string& token_auth_url();
26 const std::string& merge_session_url();
27 const std::string& get_oauth_token_url();
28 const std::string& oauth_get_access_token_url();
29 const std::string& oauth_wrap_bridge_url();
30 const std::string& oauth_user_info_url();
31 const std::string& oauth_revoke_token_url();
32 const std::string& oauth1_login_url();
33
34 const std::string& oauth1_login_scope();
35 const std::string& oauth_wrap_bridge_user_info_scope();
36 const std::string& client_oauth_url();
37
38 const std::string& oauth2_chrome_client_id();
39 const std::string& oauth2_chrome_client_secret();
40 const std::string& client_login_to_oauth2_url();
41 const std::string& oauth2_token_url();
42 const std::string& oauth2_issue_token_url();
43
44 const std::string& gaia_login_form_realm();
45
46 private:
47 GaiaUrls();
48 ~GaiaUrls();
49
50 friend struct DefaultSingletonTraits<GaiaUrls>;
51
52 std::string captcha_url_prefix_;
53
54 std::string gaia_origin_url_;
55 std::string client_login_url_;
56 std::string service_login_url_;
57 std::string issue_auth_token_url_;
58 std::string get_user_info_url_;
59 std::string token_auth_url_;
60 std::string merge_session_url_;
61 std::string get_oauth_token_url_;
62 std::string oauth_get_access_token_url_;
63 std::string oauth_wrap_bridge_url_;
64 std::string oauth_user_info_url_;
65 std::string oauth_revoke_token_url_;
66 std::string oauth1_login_url_;
67
68 std::string oauth1_login_scope_;
69 std::string oauth_wrap_bridge_user_info_scope_;
70 std::string client_oauth_url_;
71
72 std::string oauth2_chrome_client_id_;
73 std::string oauth2_chrome_client_secret_;
74 std::string client_login_to_oauth2_url_;
75 std::string oauth2_token_url_;
76 std::string oauth2_issue_token_url_;
77
78 std::string gaia_login_form_realm_;
79
80 DISALLOW_COPY_AND_ASSIGN(GaiaUrls);
81 };
82
83 #endif // CHROME_COMMON_NET_GAIA_GAIA_URLS_H_
OLDNEW
« no previous file with comments | « chrome/common/net/gaia/gaia_switches.cc ('k') | chrome/common/net/gaia/gaia_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698