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