gaia_switches.h revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef GOOGLE_APIS_GAIA_GAIA_SWITCHES_H_ 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define GOOGLE_APIS_GAIA_GAIA_SWITCHES_H_ 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace switches { 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Supplies custom client login to OAuth2 URL for testing purposes. 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kClientLoginToOAuth2Url[]; 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the backend server used for gaia authentications, like sync or 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// policies for example. The https:// prefix and the trailing slash should be 152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// omitted. The default value is "accounts.google.com". 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaHost[]; 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the path prefix for GAIA authentication URL. It should be used 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for testing in cases where authentication path prefix differs from the one 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// used in production. 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kGaiaUrlPath[]; 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Specifies the backend server used for Google API calls. The https:// prefix 242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// and the trailing slash should be omitted. 252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The default value is "www.googleapis.com". 262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const char kGoogleApisHost[]; 272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Specifies the backend server used for lso authentication calls. 292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The https:// prefix and the trailing slash should be 302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// omitted. The default value is "accounts.google.com". 312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const char kLsoHost[]; 322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// TODO(zelidrag): Get rid of all following since all URLs should be 342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// controlled only with --gaia-host, --lso-host and --google-apis-host. 352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies custom OAuth1 login scope for testing purposes. 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kOAuth1LoginScope[]; 385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies custom OAuth2 issue token URL for testing purposes. 405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kOAuth2IssueTokenUrl[]; 415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies custom OAuth2 token URL for testing purposes. 435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kOAuth2TokenUrl[]; 445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Specifies custom OAuth user info URL for testing purposes. 462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const char kOAuthUserInfoUrl[]; 475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} // namespace switches 485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif // GOOGLE_APIS_GAIA_GAIA_SWITCHES_H_ 50