| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/common/features.h" | 9 #include "chrome/common/features.h" |
| 10 #include "chrome/common/pref_font_webkit_names.h" | 10 #include "chrome/common/pref_font_webkit_names.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // successfully checked via ChildAccountService. | 63 // successfully checked via ChildAccountService. |
| 64 const char kChildAccountStatusKnown[] = "child_account_status_known"; | 64 const char kChildAccountStatusKnown[] = "child_account_status_known"; |
| 65 | 65 |
| 66 // A string property indicating whether default apps should be installed | 66 // A string property indicating whether default apps should be installed |
| 67 // in this profile. Use the value "install" to enable defaults apps, or | 67 // in this profile. Use the value "install" to enable defaults apps, or |
| 68 // "noinstall" to disable them. This property is usually set in the | 68 // "noinstall" to disable them. This property is usually set in the |
| 69 // master_preferences and copied into the profile preferences on first run. | 69 // master_preferences and copied into the profile preferences on first run. |
| 70 // Defaults apps are installed only when creating a new profile. | 70 // Defaults apps are installed only when creating a new profile. |
| 71 const char kDefaultApps[] = "default_apps"; | 71 const char kDefaultApps[] = "default_apps"; |
| 72 | 72 |
| 73 // Disable SafeBrowsing checks for files coming from trusted URLs when false. |
| 74 const char kSafeBrowsingForTrustedSourcesEnabled[] = |
| 75 "safebrowsing_for_trusted_sources_enabled"; |
| 76 |
| 73 // Disables screenshot accelerators and extension APIs. | 77 // Disables screenshot accelerators and extension APIs. |
| 74 // This setting resides both in profile prefs and local state. Accelerator | 78 // This setting resides both in profile prefs and local state. Accelerator |
| 75 // handling code reads local state, while extension APIs use profile pref. | 79 // handling code reads local state, while extension APIs use profile pref. |
| 76 const char kDisableScreenshots[] = "disable_screenshots"; | 80 const char kDisableScreenshots[] = "disable_screenshots"; |
| 77 | 81 |
| 78 // Prevents certain types of downloads based on integer value, which corresponds | 82 // Prevents certain types of downloads based on integer value, which corresponds |
| 79 // to DownloadPrefs::DownloadRestriction. | 83 // to DownloadPrefs::DownloadRestriction. |
| 80 // 0 - No special restrictions (default) | 84 // 0 - No special restrictions (default) |
| 81 // 1 - Block dangerous downloads | 85 // 1 - Block dangerous downloads |
| 82 // 2 - Block potentially dangerous downloads | 86 // 2 - Block potentially dangerous downloads |
| (...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 "download.open_pdf_in_system_reader"; | 1509 "download.open_pdf_in_system_reader"; |
| 1506 #endif | 1510 #endif |
| 1507 | 1511 |
| 1508 // String which specifies where to save html files to by default. | 1512 // String which specifies where to save html files to by default. |
| 1509 const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; | 1513 const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; |
| 1510 | 1514 |
| 1511 // The type used to save the page. See the enum SavePackage::SavePackageType in | 1515 // The type used to save the page. See the enum SavePackage::SavePackageType in |
| 1512 // the chrome/browser/download/save_package.h for the possible values. | 1516 // the chrome/browser/download/save_package.h for the possible values. |
| 1513 const char kSaveFileType[] = "savefile.type"; | 1517 const char kSaveFileType[] = "savefile.type"; |
| 1514 | 1518 |
| 1519 // A list of download sources that can be trusted, e.g., enterprise intranet. |
| 1520 const char kTrustedDownloadSources[] = "trusted_download_sources"; |
| 1521 |
| 1515 // String which specifies the last directory that was chosen for uploading | 1522 // String which specifies the last directory that was chosen for uploading |
| 1516 // or opening a file. | 1523 // or opening a file. |
| 1517 const char kSelectFileLastDirectory[] = "selectfile.last_directory"; | 1524 const char kSelectFileLastDirectory[] = "selectfile.last_directory"; |
| 1518 | 1525 |
| 1519 // Boolean that specifies if file selection dialogs are shown. | 1526 // Boolean that specifies if file selection dialogs are shown. |
| 1520 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; | 1527 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; |
| 1521 | 1528 |
| 1522 // Map of default tasks, associated by MIME type. | 1529 // Map of default tasks, associated by MIME type. |
| 1523 const char kDefaultTasksByMimeType[] = | 1530 const char kDefaultTasksByMimeType[] = |
| 1524 "filebrowser.tasks.default_by_mime_type"; | 1531 "filebrowser.tasks.default_by_mime_type"; |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2569 // internal format (int64) in local store. (I.e., this is not a per-profile | 2576 // internal format (int64) in local store. (I.e., this is not a per-profile |
| 2570 // pref.) | 2577 // pref.) |
| 2571 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time"; | 2578 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time"; |
| 2572 #endif | 2579 #endif |
| 2573 | 2580 |
| 2574 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) | 2581 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) |
| 2575 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff"; | 2582 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff"; |
| 2576 #endif | 2583 #endif |
| 2577 | 2584 |
| 2578 } // namespace prefs | 2585 } // namespace prefs |
| OLD | NEW |