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