1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_CREDENTIAL_PROVIDER_COMMON_GCP_STRINGS_H_
#define CHROME_CREDENTIAL_PROVIDER_COMMON_GCP_STRINGS_H_
namespace credential_provider {
// The the UI process can exit with the following exit code.
enum UiExitCodes {
// The user completed the sign in successfully.
kUiecSuccess,
// The sign in was aborted by the user.
kUiecAbort,
// The sign in timed out.
kUiecTimeout,
// The process was killed by the GCP.
kUiecKilled,
// The email is not valid for the given user logging in.
kUiecEMailMissmatch,
// The email domain is not an accepted domain.
kUiecInvalidEmailDomain,
// Some signin data was missing.
kUiecMissingSigninData,
kUiecCount,
};
// Names of keys returned on json data from UI process.
extern const char kKeyEmail[];
extern const char kKeyPicture[];
extern const char kKeyFullname[];
extern const char kKeyId[];
extern const char kKeyMdmUrl[];
extern const char kKeyMdmIdToken[];
extern const char kKeyPassword[];
extern const char kKeyRefreshToken[];
extern const char kKeyAccessToken[];
extern const char kKeyMdmAccessToken[];
extern const char kKeySID[];
extern const char kKeyTokenHandle[];
extern const char kKeyUsername[];
extern const char kKeyDomain[];
extern const char kKeyExitCode[];
// AD attributes related to the device.
extern const char kKeyIsAdJoinedUser[];
// Name of registry value that holds user properties.
extern const wchar_t kUserTokenHandle[];
extern const wchar_t kUserEmail[];
extern const wchar_t kUserId[];
extern const wchar_t kUserPictureUrl[];
// Username, password and sid key for special GAIA account to run GLS.
extern const wchar_t kDefaultGaiaAccountName[];
extern const wchar_t kLsaKeyGaiaUsername[];
extern const wchar_t kLsaKeyGaiaPassword[];
extern const wchar_t kLsaKeyGaiaSid[];
// Name of the desktop used on the Window welcome screen for interactive
// logon.
extern const wchar_t kDesktopName[];
extern const wchar_t kDesktopFullName[];
// GUID used by Google Update client for GCPW application.
extern const wchar_t kGcpwUpdateClientGuid[];
// Google Update related registry paths.
extern const wchar_t kRegUpdaterClientStateAppPath[];
extern const wchar_t kRegUpdaterClientsAppPath[];
extern const wchar_t kRegUninstallStringField[];
extern const wchar_t kRegUninstallArgumentsField[];
extern const wchar_t kRegUsageStatsName[];
extern const wchar_t kRegUpdateTracksName[];
extern const wchar_t kRegVersionName[];
// Registry keys to list GCPW in add/remove programs on Windows.
extern const wchar_t kRegUninstall[];
extern const wchar_t kRegUninstallProduct[];
extern const wchar_t kRegUninstallString[];
extern const wchar_t kRegUninstallDisplayName[];
extern const wchar_t kRegInstallLocation[];
extern const wchar_t kRegDisplayIcon[];
extern const wchar_t kRegNoModify[];
extern const wchar_t kRegNoRepair[];
extern const wchar_t kRegPublisherName[];
extern const wchar_t kRegVersion[];
extern const wchar_t kRegDisplayVersion[];
extern const wchar_t kRegInstallDate[];
extern const wchar_t kRegVersionMajor[];
extern const wchar_t kRegVersionMinor[];
extern const wchar_t kRegPublisher[];
// These are command line switches passed to chrome to start it as a process
// used as a logon stub.
extern const char kGcpwSigninSwitch[];
extern const char kPrefillEmailSwitch[];
extern const char kEmailDomainsSwitch[];
extern const char kGaiaIdSwitch[];
extern const char kGcpwEndpointPathSwitch[];
extern const char kGcpwAdditionalOauthScopes[];
extern const char kShowTosSwitch[];
// Parameter appended to sign in URL to pass valid signin domains to the inline
// login handler. These domains are separated by ','.
extern const char kEmailDomainsSigninPromoParameter[];
extern const char kEmailDomainsSeparator[];
extern const char kValidateGaiaIdSigninPromoParameter[];
extern const char kGcpwEndpointPathPromoParameter[];
// Crashpad related constants.
extern const wchar_t kRunAsCrashpadHandlerEntryPoint[];
// Flags to manipulate behavior of Chrome when importing credentials for the
// account signs in through GCPW.
extern const wchar_t kAllowImportOnlyOnFirstRun[];
extern const wchar_t kAllowImportWhenPrimaryAccountExists[];
// HKCU account information path in the hive of the OS user.
extern const wchar_t kRegHkcuAccountsPath[];
} // namespace credential_provider
#endif // CHROME_CREDENTIAL_PROVIDER_COMMON_GCP_STRINGS_H_
|