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

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

Issue 9271025: Update Gaia URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits, fix unit_tests failure and update license headers Created 8 years, 11 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
OLDNEW
1 // Copyright (c) 2011 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 CHROME_COMMON_NET_GAIA_GAIA_URLS_H_ 5 #ifndef CHROME_COMMON_NET_GAIA_GAIA_URLS_H_
6 #define CHROME_COMMON_NET_GAIA_GAIA_URLS_H_ 6 #define CHROME_COMMON_NET_GAIA_GAIA_URLS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.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(); 19 const std::string& captcha_url_prefix();
20 20
21 const std::string& gaia_origin_url(); 21 const std::string& gaia_origin_url();
22 const std::string& client_login_url(); 22 const std::string& client_login_url();
23 const std::string& service_login_url();
23 const std::string& issue_auth_token_url(); 24 const std::string& issue_auth_token_url();
24 const std::string& get_user_info_url(); 25 const std::string& get_user_info_url();
25 const std::string& token_auth_url(); 26 const std::string& token_auth_url();
26 const std::string& merge_session_url(); 27 const std::string& merge_session_url();
27 const std::string& get_oauth_token_url(); 28 const std::string& get_oauth_token_url();
28 const std::string& oauth_get_access_token_url(); 29 const std::string& oauth_get_access_token_url();
29 const std::string& oauth_wrap_bridge_url(); 30 const std::string& oauth_wrap_bridge_url();
30 const std::string& oauth_user_info_url(); 31 const std::string& oauth_user_info_url();
31 const std::string& oauth_revoke_token_url(); 32 const std::string& oauth_revoke_token_url();
32 const std::string& oauth1_login_url(); 33 const std::string& oauth1_login_url();
33 34
34 const std::string& oauth1_login_scope(); 35 const std::string& oauth1_login_scope();
35 const std::string& oauth_wrap_bridge_user_info_scope(); 36 const std::string& oauth_wrap_bridge_user_info_scope();
36 37
37 const std::string& oauth2_chrome_client_id(); 38 const std::string& oauth2_chrome_client_id();
38 const std::string& oauth2_chrome_client_secret(); 39 const std::string& oauth2_chrome_client_secret();
39 const std::string& client_login_to_oauth2_url(); 40 const std::string& client_login_to_oauth2_url();
40 const std::string& oauth2_token_url(); 41 const std::string& oauth2_token_url();
41 42
42 private: 43 private:
43 GaiaUrls(); 44 GaiaUrls();
44 ~GaiaUrls(); 45 ~GaiaUrls();
45 46
46 friend struct DefaultSingletonTraits<GaiaUrls>; 47 friend struct DefaultSingletonTraits<GaiaUrls>;
47 48
48 std::string captcha_url_prefix_; 49 std::string captcha_url_prefix_;
49 50
50 std::string gaia_origin_url_; 51 std::string gaia_origin_url_;
51 std::string client_login_url_; 52 std::string client_login_url_;
53 std::string service_login_url_;
52 std::string issue_auth_token_url_; 54 std::string issue_auth_token_url_;
53 std::string get_user_info_url_; 55 std::string get_user_info_url_;
54 std::string token_auth_url_; 56 std::string token_auth_url_;
55 std::string merge_session_url_; 57 std::string merge_session_url_;
56 std::string get_oauth_token_url_; 58 std::string get_oauth_token_url_;
57 std::string oauth_get_access_token_url_; 59 std::string oauth_get_access_token_url_;
58 std::string oauth_wrap_bridge_url_; 60 std::string oauth_wrap_bridge_url_;
59 std::string oauth_user_info_url_; 61 std::string oauth_user_info_url_;
60 std::string oauth_revoke_token_url_; 62 std::string oauth_revoke_token_url_;
61 std::string oauth1_login_url_; 63 std::string oauth1_login_url_;
62 64
63 std::string oauth1_login_scope_; 65 std::string oauth1_login_scope_;
64 std::string oauth_wrap_bridge_user_info_scope_; 66 std::string oauth_wrap_bridge_user_info_scope_;
65 67
66 std::string oauth2_chrome_client_id_; 68 std::string oauth2_chrome_client_id_;
67 std::string oauth2_chrome_client_secret_; 69 std::string oauth2_chrome_client_secret_;
68 std::string client_login_to_oauth2_url_; 70 std::string client_login_to_oauth2_url_;
69 std::string oauth2_token_url_; 71 std::string oauth2_token_url_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(GaiaUrls); 73 DISALLOW_COPY_AND_ASSIGN(GaiaUrls);
72 }; 74 };
73 75
74 #endif // CHROME_COMMON_NET_GAIA_GAIA_URLS_H_ 76 #endif // CHROME_COMMON_NET_GAIA_GAIA_URLS_H_
OLDNEW
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc ('k') | chrome/common/net/gaia/gaia_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698