1 // Copyright (c) 2011 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 // Constants for the names of various preferences, for easier changing. 6 7 #ifndef CHROME_COMMON_PREF_NAMES_H_ 8 #define CHROME_COMMON_PREF_NAMES_H_ 9 #pragma once 10 11 #include "build/build_config.h" 12 13 namespace prefs { 14 15 // Profile prefs. Please add Local State prefs below instead. 16 extern const char kAppsPromoCounter[]; 17 extern const char kDefaultAppsInstalled[]; 18 extern const char kHomePageIsNewTabPage[]; 19 extern const char kHomePage[]; 20 extern const char kSessionExitedCleanly[]; 21 extern const char kRestoreOnStartup[]; 22 extern const char kURLsToRestoreOnStartup[]; 23 24 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state 25 // and user's profile. Global property determines locale of login screen, 26 // while user's profile determines his personal locale preference. 27 extern const char kApplicationLocale[]; 28 #if defined(OS_CHROMEOS) 29 extern const char kApplicationLocaleBackup[]; 30 extern const char kApplicationLocaleAccepted[]; 31 extern const char kOwnerLocale[]; 32 #endif 33 34 extern const char kDefaultCharset[]; 35 extern const char kAcceptLanguages[]; 36 extern const char kStaticEncodings[]; 37 extern const char kPopupWhitelistedHosts[]; 38 extern const char kShowBookmarkBar[]; 39 extern const char kWebKitStandardFontFamily[]; 40 extern const char kWebKitFixedFontFamily[]; 41 extern const char kWebKitSerifFontFamily[]; 42 extern const char kWebKitSansSerifFontFamily[]; 43 extern const char kWebKitCursiveFontFamily[]; 44 extern const char kWebKitFantasyFontFamily[]; 45 extern const char kWebKitDefaultFontSize[]; 46 extern const char kWebKitDefaultFixedFontSize[]; 47 extern const char kWebKitMinimumFontSize[]; 48 extern const char kWebKitMinimumLogicalFontSize[]; 49 extern const char kWebKitJavascriptEnabled[]; 50 extern const char kWebKitWebSecurityEnabled[]; 51 extern const char kWebKitJavascriptCanOpenWindowsAutomatically[]; 52 extern const char kWebKitLoadsImagesAutomatically[]; 53 extern const char kWebKitPluginsEnabled[]; 54 extern const char kWebKitDomPasteEnabled[]; 55 extern const char kWebKitShrinksStandaloneImagesToFit[]; 56 extern const char kWebKitInspectorSettings[]; 57 extern const char kWebKitUsesUniversalDetector[]; 58 extern const char kWebKitTextAreasAreResizable[]; 59 extern const char kWebKitJavaEnabled[]; 60 extern const char kWebkitTabsToLinks[]; 61 extern const char kPasswordManagerEnabled[]; 62 extern const char kPasswordManagerAllowShowPasswords[]; 63 extern const char kSafeBrowsingEnabled[]; 64 extern const char kSafeBrowsingReportingEnabled[]; 65 extern const char kIncognitoEnabled[]; 66 extern const char kSearchSuggestEnabled[]; 67 extern const char kConfirmToQuitEnabled[]; 68 extern const char kCookieBehavior[]; // OBSOLETE 69 extern const char kDefaultSearchProviderEnabled[]; 70 extern const char kDefaultSearchProviderSearchURL[]; 71 extern const char kDefaultSearchProviderSuggestURL[]; 72 extern const char kDefaultSearchProviderInstantURL[]; 73 extern const char kDefaultSearchProviderIconURL[]; 74 extern const char kDefaultSearchProviderEncodings[]; 75 extern const char kDefaultSearchProviderName[]; 76 extern const char kDefaultSearchProviderKeyword[]; 77 extern const char kDefaultSearchProviderID[]; 78 extern const char kDefaultSearchProviderPrepopulateID[]; 79 extern const char kSearchProviderOverrides[]; 80 extern const char kSearchProviderOverridesVersion[]; 81 extern const char kPromptForDownload[]; 82 extern const char kAlternateErrorPagesEnabled[]; 83 extern const char kDnsStartupPrefetchList[]; // OBSOLETE 84 extern const char kDnsPrefetchingStartupList[]; 85 extern const char kDnsHostReferralList[]; // OBSOLETE 86 extern const char kDnsPrefetchingHostReferralList[]; 87 extern const char kDisableSpdy[]; 88 extern const char kDisabledSchemes[]; 89 extern const char kInstantConfirmDialogShown[]; 90 extern const char kInstantEnabled[]; 91 extern const char kInstantEnabledOnce[]; 92 extern const char kInstantEnabledTime[]; 93 extern const char kInstantPromo[]; 94 extern const char kMultipleProfilePrefMigration[]; 95 extern const char kNetworkPredictionEnabled[]; 96 #if defined(OS_CHROMEOS) 97 extern const char kAudioMute[]; 98 extern const char kAudioVolume[]; 99 extern const char kTapToClickEnabled[]; 100 extern const char kTouchpadSensitivity[]; 101 extern const char kUse24HourClock[]; 102 extern const char kLanguageCurrentInputMethod[]; 103 extern const char kLanguagePreviousInputMethod[]; 104 extern const char kLanguageHotkeyNextEngineInMenu[]; 105 extern const char kLanguageHotkeyPreviousEngine[]; 106 extern const char kLanguagePreferredLanguages[]; 107 extern const char kLanguagePreloadEngines[]; 108 extern const char kLanguageChewingAutoShiftCur[]; 109 extern const char kLanguageChewingAddPhraseDirection[]; 110 extern const char kLanguageChewingEasySymbolInput[]; 111 extern const char kLanguageChewingEscCleanAllBuf[]; 112 extern const char kLanguageChewingForceLowercaseEnglish[]; 113 extern const char kLanguageChewingPlainZhuyin[]; 114 extern const char kLanguageChewingPhraseChoiceRearward[]; 115 extern const char kLanguageChewingSpaceAsSelection[]; 116 extern const char kLanguageChewingMaxChiSymbolLen[]; 117 extern const char kLanguageChewingCandPerPage[]; 118 extern const char kLanguageChewingKeyboardType[]; 119 extern const char kLanguageChewingSelKeys[]; 120 extern const char kLanguageChewingHsuSelKeyType[]; 121 extern const char kLanguageHangulKeyboard[]; 122 extern const char kLanguageHangulHanjaKeys[]; 123 extern const char kLanguagePinyinCorrectPinyin[]; 124 extern const char kLanguagePinyinFuzzyPinyin[]; 125 extern const char kLanguagePinyinLookupTablePageSize[]; 126 extern const char kLanguagePinyinShiftSelectCandidate[]; 127 extern const char kLanguagePinyinMinusEqualPage[]; 128 extern const char kLanguagePinyinCommaPeriodPage[]; 129 extern const char kLanguagePinyinAutoCommit[]; 130 extern const char kLanguagePinyinDoublePinyin[]; 131 extern const char kLanguagePinyinDoublePinyinSchema[]; 132 extern const char kLanguagePinyinInitChinese[]; 133 extern const char kLanguagePinyinInitFull[]; 134 extern const char kLanguagePinyinInitFullPunct[]; 135 extern const char kLanguagePinyinInitSimplifiedChinese[]; 136 extern const char kLanguagePinyinTradCandidate[]; 137 extern const char kLanguageMozcPreeditMethod[]; 138 extern const char kLanguageMozcSessionKeymap[]; 139 extern const char kLanguageMozcPunctuationMethod[]; 140 extern const char kLanguageMozcSymbolMethod[]; 141 extern const char kLanguageMozcSpaceCharacterForm[]; 142 extern const char kLanguageMozcHistoryLearningLevel[]; 143 extern const char kLanguageMozcSelectionShortcut[]; 144 extern const char kLanguageMozcShiftKeyModeSwitch[]; 145 extern const char kLanguageMozcNumpadCharacterForm[]; 146 extern const char kLanguageMozcIncognitoMode[]; 147 extern const char kLanguageMozcUseAutoImeTurnOff[]; 148 extern const char kLanguageMozcUseDateConversion[]; 149 extern const char kLanguageMozcUseSingleKanjiConversion[]; 150 extern const char kLanguageMozcUseSymbolConversion[]; 151 extern const char kLanguageMozcUseNumberConversion[]; 152 extern const char kLanguageMozcUseHistorySuggest[]; 153 extern const char kLanguageMozcUseDictionarySuggest[]; 154 extern const char kLanguageMozcSuggestionsSize[]; 155 extern const char kLanguageXkbRemapSearchKeyTo[]; 156 extern const char kLanguageXkbRemapControlKeyTo[]; 157 extern const char kLanguageXkbRemapAltKeyTo[]; 158 extern const char kLanguageXkbAutoRepeatEnabled[]; 159 extern const char kLanguageXkbAutoRepeatDelay[]; 160 extern const char kLanguageXkbAutoRepeatInterval[]; 161 extern const char kAccessibilityEnabled[]; 162 extern const char kLabsAdvancedFilesystemEnabled[]; 163 extern const char kLabsMediaplayerEnabled[]; 164 extern const char kEnableScreenLock[]; 165 extern const char kShowPlanNotifications[]; 166 extern const char kShow3gPromoNotification[]; 167 extern const char kCarrierDealPromoShown[]; 168 extern const char kLastUsedFileBrowserHandlers[]; 169 #endif 170 extern const char kIpcDisabledMessages[]; 171 extern const char kShowHomeButton[]; 172 extern const char kRecentlySelectedEncoding[]; 173 extern const char kDeleteBrowsingHistory[]; 174 extern const char kDeleteDownloadHistory[]; 175 extern const char kDeleteCache[]; 176 extern const char kDeleteCookies[]; 177 extern const char kDeletePasswords[]; 178 extern const char kDeleteFormData[]; 179 extern const char kEnableSpellCheck[]; 180 extern const char kEnabledLabsExperiments[]; 181 extern const char kEnableAutoSpellCorrect[]; 182 extern const char kSavingBrowserHistoryDisabled[]; 183 extern const char kDeleteTimePeriod[]; 184 extern const char kPrintingEnabled[]; 185 extern const char kPrintingPageHeaderLeft[]; 186 extern const char kPrintingPageHeaderCenter[]; 187 extern const char kPrintingPageHeaderRight[]; 188 extern const char kPrintingPageFooterLeft[]; 189 extern const char kPrintingPageFooterCenter[]; 190 extern const char kPrintingPageFooterRight[]; 191 #if defined(TOOLKIT_USES_GTK) 192 extern const char kUsesSystemTheme[]; 193 #endif 194 extern const char kCurrentThemePackFilename[]; 195 extern const char kCurrentThemeID[]; 196 extern const char kCurrentThemeImages[]; 197 extern const char kCurrentThemeColors[]; 198 extern const char kCurrentThemeTints[]; 199 extern const char kCurrentThemeDisplayProperties[]; 200 extern const char kExtensionsUIDeveloperMode[]; 201 extern const char kExtensionToolbarSize[]; 202 extern const char kPluginsLastInternalDirectory[]; 203 extern const char kPluginsPluginsList[]; 204 extern const char kPluginsDisabledPlugins[]; 205 extern const char kPluginsDisabledPluginsExceptions[]; 206 extern const char kPluginsEnabledPlugins[]; 207 extern const char kPluginsEnabledInternalPDF[]; 208 extern const char kPluginsShowSetReaderDefaultInfobar[]; 209 extern const char kPluginsShowDetails[]; 210 extern const char kPluginsAllowOutdated[]; 211 extern const char kCheckDefaultBrowser[]; 212 extern const char kDefaultBrowserSettingEnabled[]; 213 #if defined(OS_MACOSX) 214 extern const char kShowUpdatePromotionInfoBar[]; 215 #endif 216 extern const char kUseCustomChromeFrame[]; 217 extern const char kShowOmniboxSearchHint[]; 218 extern const char kDesktopNotificationDefaultContentSetting[]; 219 extern const char kDesktopNotificationAllowedOrigins[]; 220 extern const char kDesktopNotificationDeniedOrigins[]; 221 extern const char kDesktopNotificationPosition[]; 222 extern const char kDefaultContentSettings[]; 223 extern const char kPerHostContentSettings[]; // OBSOLETE 224 extern const char kContentSettingsVersion[]; 225 extern const char kContentSettingsPatterns[]; 226 extern const char kBlockThirdPartyCookies[]; 227 extern const char kBlockNonsandboxedPlugins[]; 228 extern const char kClearSiteDataOnExit[]; 229 extern const char kDefaultZoomLevel[]; 230 extern const char kPerHostZoomLevels[]; 231 extern const char kAutofillEnabled[]; 232 extern const char kAutofillAuxiliaryProfilesEnabled[]; 233 extern const char kAutofillDialogPlacement[]; 234 extern const char kAutofillPositiveUploadRate[]; 235 extern const char kAutofillNegativeUploadRate[]; 236 extern const char kAutofillPersonalDataManagerFirstRun[]; 237 extern const char kEditBookmarksEnabled[]; 238 239 extern const char kUseVerticalTabs[]; 240 extern const char kEnableTranslate[]; 241 extern const char kEnableBookmarkBar[]; 242 extern const char kPinnedTabs[]; 243 extern const char kHttpThrottlingEnabled[]; 244 245 extern const char kPolicyRefreshRate[]; 246 247 extern const char kDisable3DAPIs[]; 248 extern const char kEnableHyperlinkAuditing[]; 249 extern const char kEnableReferrers[]; 250 251 // Local state prefs. Please add Profile prefs above instead. 252 extern const char kCertRevocationCheckingEnabled[]; 253 extern const char kSSL3Enabled[]; 254 extern const char kTLS1Enabled[]; 255 256 extern const char kMetricsClientID[]; 257 extern const char kMetricsSessionID[]; 258 extern const char kMetricsClientIDTimestamp[]; 259 extern const char kMetricsReportingEnabled[]; 260 extern const char kMetricsInitialLogs[]; 261 extern const char kMetricsOngoingLogs[]; 262 263 extern const char kProfileMetrics[]; 264 extern const char kProfilePrefix[]; 265 266 extern const char kStabilityExitedCleanly[]; 267 extern const char kStabilityStatsVersion[]; 268 extern const char kStabilityStatsBuildTime[]; 269 extern const char kStabilitySessionEndCompleted[]; 270 extern const char kStabilityLaunchCount[]; 271 extern const char kStabilityCrashCount[]; 272 extern const char kStabilityIncompleteSessionEndCount[]; 273 extern const char kStabilityPageLoadCount[]; 274 extern const char kStabilityRendererCrashCount[]; 275 extern const char kStabilityExtensionRendererCrashCount[]; 276 extern const char kStabilityLaunchTimeSec[]; 277 extern const char kStabilityLastTimestampSec[]; 278 extern const char kStabilityRendererHangCount[]; 279 extern const char kStabilityChildProcessCrashCount[]; 280 extern const char kStabilityOtherUserCrashCount[]; 281 extern const char kStabilityKernelCrashCount[]; 282 extern const char kStabilitySystemUncleanShutdownCount[]; 283 284 extern const char kStabilityBreakpadRegistrationSuccess[]; 285 extern const char kStabilityBreakpadRegistrationFail[]; 286 extern const char kStabilityDebuggerPresent[]; 287 extern const char kStabilityDebuggerNotPresent[]; 288 289 extern const char kStabilityPluginStats[]; 290 extern const char kStabilityPluginName[]; 291 extern const char kStabilityPluginLaunches[]; 292 extern const char kStabilityPluginInstances[]; 293 extern const char kStabilityPluginCrashes[]; 294 295 extern const char kUninstallMetricsPageLoadCount[]; 296 extern const char kUninstallLaunchCount[]; 297 298 extern const char kUninstallMetricsInstallDate[]; 299 extern const char kUninstallMetricsUptimeSec[]; 300 extern const char kUninstallLastLaunchTimeSec[]; 301 extern const char kUninstallLastObservedRunTimeSec[]; 302 303 extern const char kBrowserWindowPlacement[]; 304 extern const char kTaskManagerWindowPlacement[]; 305 extern const char kKeywordEditorWindowPlacement[]; 306 extern const char kPreferencesWindowPlacement[]; 307 extern const char kMemoryCacheSize[]; 308 309 extern const char kDownloadDefaultDirectory[]; 310 extern const char kDownloadExtensionsToOpen[]; 311 extern const char kDownloadDirUpgraded[]; 312 313 extern const char kSaveFileDefaultDirectory[]; 314 extern const char kSaveFileType[]; 315 316 extern const char kAllowFileSelectionDialogs[]; 317 318 extern const char kSelectFileLastDirectory[]; 319 320 extern const char kHungPluginDetectFrequency[]; 321 extern const char kPluginMessageResponseTimeout[]; 322 323 extern const char kSpellCheckDictionary[]; 324 325 extern const char kExcludedSchemes[]; 326 327 extern const char kSafeBrowsingClientKey[]; 328 extern const char kSafeBrowsingWrappedKey[]; 329 330 extern const char kOptionsWindowLastTabIndex[]; 331 extern const char kContentSettingsWindowLastTabIndex[]; 332 extern const char kCertificateManagerWindowLastTabIndex[]; 333 extern const char kShouldShowFirstRunBubble[]; 334 extern const char kShouldUseOEMFirstRunBubble[]; 335 extern const char kShouldUseMinimalFirstRunBubble[]; 336 extern const char kShouldShowWelcomePage[]; 337 338 extern const char kLastKnownGoogleURL[]; 339 extern const char kLastPromptedGoogleURL[]; 340 extern const char kLastKnownIntranetRedirectOrigin[]; 341 342 extern const char kCountryIDAtInstall[]; 343 extern const char kGeoIDAtInstall[]; // OBSOLETE 344 345 extern const char kShutdownType[]; 346 extern const char kShutdownNumProcesses[]; 347 extern const char kShutdownNumProcessesSlow[]; 348 349 extern const char kRestartLastSessionOnShutdown[]; 350 351 extern const char kNumBookmarksOnBookmarkBar[]; 352 extern const char kNumFoldersOnBookmarkBar[]; 353 extern const char kNumBookmarksInOtherBookmarkFolder[]; 354 extern const char kNumFoldersInOtherBookmarkFolder[]; 355 356 extern const char kNumKeywords[]; 357 358 extern const char kDisableVideoAndChat[]; 359 360 extern const char kDisableExtensions[]; 361 extern const char kDisablePluginFinder[]; 362 extern const char kBrowserActionContainerWidth[]; 363 364 extern const char kLastExtensionsUpdateCheck[]; 365 extern const char kNextExtensionsUpdateCheck[]; 366 367 extern const char kExtensionInstallAllowList[]; 368 extern const char kExtensionInstallDenyList[]; 369 370 extern const char kExtensionInstallForceList[]; 371 372 extern const char kExtensionBlacklistUpdateVersion[]; 373 374 extern const char kExtensionSidebarWidth[]; 375 376 extern const char kNTPTipsResourceServer[]; 377 378 extern const char kNTPMostVisitedURLsBlacklist[]; 379 extern const char kNTPMostVisitedPinnedURLs[]; 380 extern const char kNTPPromoResourceCache[]; 381 extern const char kNTPPromoResourceCacheUpdate[]; 382 extern const char kNTPPromoResourceServer[]; 383 extern const char kNTPDateResourceServer[]; 384 extern const char kNTPShownSections[]; 385 extern const char kNTPPrefVersion[]; 386 extern const char kNTPCustomLogoStart[]; 387 extern const char kNTPCustomLogoEnd[]; 388 extern const char kNTPPromoVersion[]; 389 extern const char kNTPPromoLocale[]; 390 extern const char kNTPPromoStart[]; 391 extern const char kNTPPromoEnd[]; 392 extern const char kNTPPromoLine[]; 393 extern const char kNTPPromoClosed[]; 394 extern const char kNTPPromoGroup[]; 395 extern const char kNTPPromoGroupTimeSlice[]; 396 extern const char kNTPPromoBuild[]; 397 extern const char kNTPWebStorePromoLastId[]; 398 extern const char kNTPWebStorePromoId[]; 399 extern const char kNTPWebStorePromoHeader[]; 400 extern const char kNTPWebStorePromoButton[]; 401 extern const char kNTPWebStorePromoLink[]; 402 extern const char kNTPWebStorePromoExpire[]; 403 404 extern const char kGpuBlacklist[]; 405 extern const char kGpuBlacklistUpdate[]; 406 407 extern const char kDevToolsDisabled[]; 408 extern const char kDevToolsOpenDocked[]; 409 extern const char kDevToolsSplitLocation[]; 410 extern const char kSyncSessions[]; 411 412 extern const char kSyncLastSyncedTime[]; 413 extern const char kSyncHasSetupCompleted[]; 414 extern const char kKeepEverythingSynced[]; 415 extern const char kSyncBookmarks[]; 416 extern const char kSyncPasswords[]; 417 extern const char kSyncPreferences[]; 418 extern const char kSyncApps[]; 419 extern const char kSyncAutofill[]; 420 extern const char kSyncAutofillProfile[]; 421 extern const char kSyncThemes[]; 422 extern const char kSyncTypedUrls[]; 423 extern const char kSyncExtensions[]; 424 extern const char kSyncManaged[]; 425 extern const char kSyncSuppressStart[]; 426 extern const char kGoogleServicesUsername[]; 427 extern const char kSyncUsingSecondaryPassphrase[]; 428 extern const char kEncryptionBootstrapToken[]; 429 extern const char kAutofillProfileMigrated[]; 430 431 extern const char kWebAppCreateOnDesktop[]; 432 extern const char kWebAppCreateInAppsMenu[]; 433 extern const char kWebAppCreateInQuickLaunchBar[]; 434 435 extern const char kGeolocationAccessToken[]; 436 extern const char kGeolocationDefaultContentSetting[]; 437 extern const char kGeolocationContentSettings[]; 438 439 extern const char kLoginDatabaseMigrated[]; 440 441 extern const char kCloudPrintServiceURL[]; 442 extern const char kCloudPrintDialogWidth[]; 443 extern const char kCloudPrintDialogHeight[]; 444 extern const char kCloudPrintProxyEnabled[]; 445 extern const char kCloudPrintProxyId[]; 446 extern const char kCloudPrintAuthToken[]; 447 extern const char kCloudPrintXMPPAuthToken[]; 448 extern const char kCloudPrintEmail[]; 449 extern const char kCloudPrintPrintSystemSettings[]; 450 extern const char kCloudPrintEnableJobPoll[]; 451 452 extern const char kRemotingHasSetupCompleted[]; 453 extern const char kRemotingHostEnabled[]; 454 455 extern const char kProxy[]; 456 457 extern const char kManagedDefaultCookiesSetting[]; 458 extern const char kManagedDefaultImagesSetting[]; 459 extern const char kManagedDefaultJavaScriptSetting[]; 460 extern const char kManagedDefaultPluginsSetting[]; 461 extern const char kManagedDefaultPopupsSetting[]; 462 463 extern const char kManagedCookiesAllowedForUrls[]; 464 extern const char kManagedCookiesBlockedForUrls[]; 465 extern const char kManagedCookiesSessionOnlyForUrls[]; 466 extern const char kManagedImagesAllowedForUrls[]; 467 extern const char kManagedImagesBlockedForUrls[]; 468 extern const char kManagedJavaScriptAllowedForUrls[]; 469 extern const char kManagedJavaScriptBlockedForUrls[]; 470 extern const char kManagedPluginsAllowedForUrls[]; 471 extern const char kManagedPluginsBlockedForUrls[]; 472 extern const char kManagedPopupsAllowedForUrls[]; 473 extern const char kManagedPopupsBlockedForUrls[]; 474 475 #if defined(OS_CHROMEOS) 476 extern const char kSignedSettingsTempStorage[]; 477 extern const char kHardwareKeyboardLayout[]; 478 #endif 479 480 extern const char kClearPluginLSODataEnabled[]; 481 482 extern const char kRegisteredBackgroundContents[]; 483 484 extern const char kAuthSchemes[]; 485 extern const char kDisableAuthNegotiateCnameLookup[]; 486 extern const char kEnableAuthNegotiatePort[]; 487 extern const char kAuthServerWhitelist[]; 488 extern const char kAuthNegotiateDelegateWhitelist[]; 489 extern const char kGSSAPILibraryName[]; 490 491 extern const char kKnownBackgroundPages[]; 492 493 extern const char kRegisteredProtocolHandlers[]; 494 495 extern const char kUserCreatedLoginItem[]; 496 497 } // namespace prefs 498 499 #endif // CHROME_COMMON_PREF_NAMES_H_ 500