pref_names.h revision 72a454cd3513ac24fbdd0e0cb9ad70b86a99b801
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 kWebKitStandardFontIsSerif[];
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 kPluginsPluginsBlacklist[];
208extern const char kPluginsEnabledInternalPDF[];
209extern const char kPluginsShowSetReaderDefaultInfobar[];
210extern const char kPluginsShowDetails[];
211extern const char kCheckDefaultBrowser[];
212extern const char kDefaultBrowserSettingEnabled[];
213#if defined(OS_MACOSX)
214extern const char kShowUpdatePromotionInfoBar[];
215#endif
216extern const char kUseCustomChromeFrame[];
217extern const char kShowOmniboxSearchHint[];
218extern const char kDesktopNotificationDefaultContentSetting[];
219extern const char kDesktopNotificationAllowedOrigins[];
220extern const char kDesktopNotificationDeniedOrigins[];
221extern const char kDesktopNotificationPosition[];
222extern const char kDefaultContentSettings[];
223extern const char kPerHostContentSettings[];  // OBSOLETE
224extern const char kContentSettingsVersion[];
225extern const char kContentSettingsPatterns[];
226extern const char kBlockThirdPartyCookies[];
227extern const char kBlockNonsandboxedPlugins[];
228extern const char kClearSiteDataOnExit[];
229extern const char kDefaultZoomLevel[];
230extern const char kPerHostZoomLevels[];
231extern const char kAutoFillEnabled[];
232extern const char kAutoFillAuxiliaryProfilesEnabled[];
233extern const char kAutoFillDialogPlacement[];
234extern const char kAutoFillPositiveUploadRate[];
235extern const char kAutoFillNegativeUploadRate[];
236extern const char kAutoFillPersonalDataManagerFirstRun[];
237
238extern const char kUseVerticalTabs[];
239extern const char kEnableTranslate[];
240extern const char kPinnedTabs[];
241extern const char kPolicyRefreshRate[];
242
243// Local state
244extern const char kMetricsClientID[];
245extern const char kMetricsSessionID[];
246extern const char kMetricsClientIDTimestamp[];
247extern const char kMetricsReportingEnabled[];
248extern const char kMetricsInitialLogs[];
249extern const char kMetricsOngoingLogs[];
250
251extern const char kProfileMetrics[];
252extern const char kProfilePrefix[];
253
254extern const char kStabilityExitedCleanly[];
255extern const char kStabilityStatsVersion[];
256extern const char kStabilityStatsBuildTime[];
257extern const char kStabilitySessionEndCompleted[];
258extern const char kStabilityLaunchCount[];
259extern const char kStabilityCrashCount[];
260extern const char kStabilityIncompleteSessionEndCount[];
261extern const char kStabilityPageLoadCount[];
262extern const char kStabilityRendererCrashCount[];
263extern const char kStabilityExtensionRendererCrashCount[];
264extern const char kStabilityLaunchTimeSec[];
265extern const char kStabilityLastTimestampSec[];
266extern const char kStabilityRendererHangCount[];
267extern const char kStabilityChildProcessCrashCount[];
268extern const char kStabilityOtherUserCrashCount[];
269extern const char kStabilityKernelCrashCount[];
270extern const char kStabilitySystemUncleanShutdownCount[];
271
272extern const char kStabilityBreakpadRegistrationSuccess[];
273extern const char kStabilityBreakpadRegistrationFail[];
274extern const char kStabilityDebuggerPresent[];
275extern const char kStabilityDebuggerNotPresent[];
276
277extern const char kStabilityPluginStats[];
278extern const char kStabilityPluginName[];
279extern const char kStabilityPluginLaunches[];
280extern const char kStabilityPluginInstances[];
281extern const char kStabilityPluginCrashes[];
282
283extern const char kUninstallMetricsPageLoadCount[];
284extern const char kUninstallLaunchCount[];
285
286extern const char kUninstallMetricsInstallDate[];
287extern const char kUninstallMetricsUptimeSec[];
288extern const char kUninstallLastLaunchTimeSec[];
289extern const char kUninstallLastObservedRunTimeSec[];
290
291extern const char kBrowserWindowPlacement[];
292extern const char kTaskManagerWindowPlacement[];
293extern const char kKeywordEditorWindowPlacement[];
294extern const char kPreferencesWindowPlacement[];
295extern const char kMemoryCacheSize[];
296
297extern const char kDownloadDefaultDirectory[];
298extern const char kDownloadExtensionsToOpen[];
299extern const char kDownloadDirUpgraded[];
300
301extern const char kSaveFileDefaultDirectory[];
302extern const char kSaveFileType[];
303
304extern const char kSelectFileLastDirectory[];
305
306extern const char kHungPluginDetectFrequency[];
307extern const char kPluginMessageResponseTimeout[];
308
309extern const char kSpellCheckDictionary[];
310
311extern const char kExcludedSchemes[];
312
313extern const char kSafeBrowsingClientKey[];
314extern const char kSafeBrowsingWrappedKey[];
315
316extern const char kOptionsWindowLastTabIndex[];
317extern const char kContentSettingsWindowLastTabIndex[];
318extern const char kCertificateManagerWindowLastTabIndex[];
319extern const char kShouldShowFirstRunBubble[];
320extern const char kShouldUseOEMFirstRunBubble[];
321extern const char kShouldUseMinimalFirstRunBubble[];
322extern const char kShouldShowWelcomePage[];
323
324extern const char kLastKnownGoogleURL[];
325extern const char kLastPromptedGoogleURL[];
326extern const char kLastKnownIntranetRedirectOrigin[];
327
328extern const char kCountryIDAtInstall[];
329extern const char kGeoIDAtInstall[];  // OBSOLETE
330
331extern const char kShutdownType[];
332extern const char kShutdownNumProcesses[];
333extern const char kShutdownNumProcessesSlow[];
334
335extern const char kRestartLastSessionOnShutdown[];
336
337extern const char kNumBookmarksOnBookmarkBar[];
338extern const char kNumFoldersOnBookmarkBar[];
339extern const char kNumBookmarksInOtherBookmarkFolder[];
340extern const char kNumFoldersInOtherBookmarkFolder[];
341
342extern const char kNumKeywords[];
343
344extern const char kDisableVideoAndChat[];
345
346extern const char kDisableExtensions[];
347extern const char kBrowserActionContainerWidth[];
348
349extern const char kLastExtensionsUpdateCheck[];
350extern const char kNextExtensionsUpdateCheck[];
351
352extern const char kExtensionInstallAllowList[];
353extern const char kExtensionInstallDenyList[];
354
355extern const char kExtensionInstallForceList[];
356
357extern const char kExtensionBlacklistUpdateVersion[];
358
359extern const char kExtensionSidebarWidth[];
360
361extern const char kNTPTipsResourceServer[];
362
363extern const char kNTPMostVisitedURLsBlacklist[];
364extern const char kNTPMostVisitedPinnedURLs[];
365extern const char kNTPWebResourceCache[];
366extern const char kNTPWebResourceCacheUpdate[];
367extern const char kNTPWebResourceServer[];
368extern const char kNTPDateResourceServer[];
369extern const char kNTPShownSections[];
370extern const char kNTPPrefVersion[];
371extern const char kNTPCustomLogoStart[];
372extern const char kNTPCustomLogoEnd[];
373extern const char kNTPPromoStart[];
374extern const char kNTPPromoEnd[];
375extern const char kNTPPromoLine[];
376extern const char kNTPPromoClosed[];
377extern const char kNTPPromoGroup[];
378extern const char kNTPPromoGroupTimeSlice[];
379extern const char kNTPPromoBuild[];
380
381extern const char kDevToolsDisabled[];
382extern const char kDevToolsOpenDocked[];
383extern const char kDevToolsSplitLocation[];
384extern const char kSyncSessions[];
385
386extern const char kSyncLastSyncedTime[];
387extern const char kSyncHasSetupCompleted[];
388extern const char kKeepEverythingSynced[];
389extern const char kSyncBookmarks[];
390extern const char kSyncPasswords[];
391extern const char kSyncPreferences[];
392extern const char kSyncApps[];
393extern const char kSyncAutofill[];
394extern const char kSyncAutofillProfile[];
395extern const char kSyncThemes[];
396extern const char kSyncTypedUrls[];
397extern const char kSyncExtensions[];
398extern const char kSyncManaged[];
399extern const char kSyncSuppressStart[];
400extern const char kGoogleServicesUsername[];
401extern const char kSyncCredentialsMigrated[];
402extern const char kSyncUsingSecondaryPassphrase[];
403extern const char kEncryptionBootstrapToken[];
404extern const char kAutofillProfileMigrated[];
405
406extern const char kWebAppCreateOnDesktop[];
407extern const char kWebAppCreateInAppsMenu[];
408extern const char kWebAppCreateInQuickLaunchBar[];
409
410extern const char kGeolocationAccessToken[];
411extern const char kGeolocationDefaultContentSetting[];
412extern const char kGeolocationContentSettings[];
413
414extern const char kLoginDatabaseMigrated[];
415
416extern const char kCloudPrintServiceURL[];
417extern const char kCloudPrintDialogWidth[];
418extern const char kCloudPrintDialogHeight[];
419extern const char kCloudPrintProxyEnabled[];
420extern const char kCloudPrintProxyId[];
421extern const char kCloudPrintAuthToken[];
422extern const char kCloudPrintXMPPAuthToken[];
423extern const char kCloudPrintEmail[];
424extern const char kCloudPrintPrintSystemSettings[];
425
426extern const char kRemotingHasSetupCompleted[];
427extern const char kRemotingHostEnabled[];
428
429extern const char kProxy[];
430
431extern const char kManagedDefaultCookiesSetting[];
432extern const char kManagedDefaultImagesSetting[];
433extern const char kManagedDefaultJavaScriptSetting[];
434extern const char kManagedDefaultPluginsSetting[];
435extern const char kManagedDefaultPopupsSetting[];
436
437#if defined(OS_CHROMEOS)
438extern const char kSignedSettingsTempStorage[];
439extern const char kHardwareKeyboardLayout[];
440#endif
441
442extern const char kRegisteredBackgroundContents[];
443
444extern const char kAuthSchemes[];
445extern const char kDisableAuthNegotiateCnameLookup[];
446extern const char kEnableAuthNegotiatePort[];
447extern const char kAuthServerWhitelist[];
448extern const char kAuthNegotiateDelegateWhitelist[];
449extern const char kGSSAPILibraryName[];
450
451extern const char kKnownBackgroundPages[];
452
453extern const char kDisable3DAPIs[];
454
455}  // namespace prefs
456
457#endif  // CHROME_COMMON_PREF_NAMES_H_
458