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 #include "google_apis/gaia/gaia_urls.h" | 5 #include "google_apis/gaia/gaia_urls.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "google_apis/gaia/gaia_switches.h" | 10 #include "google_apis/gaia/gaia_switches.h" |
11 #include "google_apis/google_api_keys.h" | 11 #include "google_apis/google_api_keys.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // Gaia service constants | 15 // Gaia service constants |
16 const char kDefaultGoogleUrl[] = "http://.google.com"; | 16 const char kDefaultGoogleUrl[] = "http://google.com"; |
17 const char kDefaultGaiaUrl[] = "https://accounts.google.com"; | 17 const char kDefaultGaiaUrl[] = "https://accounts.google.com"; |
18 const char kDefaultGoogleApisBaseUrl[] = "https://www.googleapis.com"; | 18 const char kDefaultGoogleApisBaseUrl[] = "https://www.googleapis.com"; |
19 | 19 |
20 // API calls from accounts.google.com | 20 // API calls from accounts.google.com |
21 const char kClientLoginUrlSuffix[] = "ClientLogin"; | 21 const char kClientLoginUrlSuffix[] = "ClientLogin"; |
22 const char kServiceLoginUrlSuffix[] = "ServiceLogin"; | 22 const char kServiceLoginUrlSuffix[] = "ServiceLogin"; |
23 const char kEmbeddedSetupChromeOsUrlSuffix[] = "embedded/setup/chromeos"; | 23 const char kEmbeddedSetupChromeOsUrlSuffix[] = "embedded/setup/chromeos"; |
24 const char kServiceLoginAuthUrlSuffix[] = "ServiceLoginAuth"; | 24 const char kServiceLoginAuthUrlSuffix[] = "ServiceLoginAuth"; |
25 const char kServiceLogoutUrlSuffix[] = "Logout"; | 25 const char kServiceLogoutUrlSuffix[] = "Logout"; |
26 const char kIssueAuthTokenUrlSuffix[] = "IssueAuthToken"; | 26 const char kIssueAuthTokenUrlSuffix[] = "IssueAuthToken"; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 return source.empty() | 290 return source.empty() |
291 ? get_check_connection_info_url_ | 291 ? get_check_connection_info_url_ |
292 : get_check_connection_info_url_.Resolve( | 292 : get_check_connection_info_url_.Resolve( |
293 base::StringPrintf("?source=%s", source.c_str())); | 293 base::StringPrintf("?source=%s", source.c_str())); |
294 } | 294 } |
295 | 295 |
296 GURL GaiaUrls::signin_completed_continue_url() const { | 296 GURL GaiaUrls::signin_completed_continue_url() const { |
297 return | 297 return |
298 GURL("chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/success.html"); | 298 GURL("chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/success.html"); |
299 } | 299 } |
OLD | NEW |