| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // "noinstall" to disable them. This property is usually set in the | 51 // "noinstall" to disable them. This property is usually set in the |
| 52 // master_preferences and copied into the profile preferences on first run. | 52 // master_preferences and copied into the profile preferences on first run. |
| 53 // Defaults apps are installed only when creating a new profile. | 53 // Defaults apps are installed only when creating a new profile. |
| 54 const char kDefaultApps[] = "default_apps"; | 54 const char kDefaultApps[] = "default_apps"; |
| 55 | 55 |
| 56 // Disables screenshot accelerators and extension APIs. | 56 // Disables screenshot accelerators and extension APIs. |
| 57 // This setting resides both in profile prefs and local state. Accelerator | 57 // This setting resides both in profile prefs and local state. Accelerator |
| 58 // handling code reads local state, while extension APIs use profile pref. | 58 // handling code reads local state, while extension APIs use profile pref. |
| 59 const char kDisableScreenshots[] = "disable_screenshots"; | 59 const char kDisableScreenshots[] = "disable_screenshots"; |
| 60 | 60 |
| 61 // Prevents certain types of downloads based on integre value: |
| 62 // 0 - Allow all downloads (default) |
| 63 // 1 - Disable Safe Browsing dangerous files |
| 64 // 2 - Disable Safe Browsing potentially dangerous files |
| 65 // 3 - Disable all downloads |
| 66 const char kDownloadRestrictions[] = "download_restrictions"; |
| 67 |
| 61 // If set to true profiles are created in ephemeral mode and do not store their | 68 // If set to true profiles are created in ephemeral mode and do not store their |
| 62 // data in the profile folder on disk but only in memory. | 69 // data in the profile folder on disk but only in memory. |
| 63 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; | 70 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; |
| 64 | 71 |
| 65 // A boolean specifying whether the New Tab page is the home page or not. | 72 // A boolean specifying whether the New Tab page is the home page or not. |
| 66 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; | 73 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; |
| 67 | 74 |
| 68 // This is the URL of the page to load when opening new tabs. | 75 // This is the URL of the page to load when opening new tabs. |
| 69 const char kHomePage[] = "homepage"; | 76 const char kHomePage[] = "homepage"; |
| 70 | 77 |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2382 // default search engine, if it is the Google search engine. | 2389 // default search engine, if it is the Google search engine. |
| 2383 const char kGoogleDSEGeolocationSetting[] = "google_dse_geolocation_setting"; | 2390 const char kGoogleDSEGeolocationSetting[] = "google_dse_geolocation_setting"; |
| 2384 | 2391 |
| 2385 // A dictionary of manifest URLs of Web Share Targets to a dictionary containing | 2392 // A dictionary of manifest URLs of Web Share Targets to a dictionary containing |
| 2386 // attributes of its share_target field found in its manifest. Each key in the | 2393 // attributes of its share_target field found in its manifest. Each key in the |
| 2387 // dictionary is the name of the attribute, and the value is the corresponding | 2394 // dictionary is the name of the attribute, and the value is the corresponding |
| 2388 // value. | 2395 // value. |
| 2389 const char kWebShareVisitedTargets[] = "profile.web_share.visited_targets"; | 2396 const char kWebShareVisitedTargets[] = "profile.web_share.visited_targets"; |
| 2390 | 2397 |
| 2391 } // namespace prefs | 2398 } // namespace prefs |
| OLD | NEW |