| 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/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const char kAllowFileAccess[] = "allow-file-access"; | 30 const char kAllowFileAccess[] = "allow-file-access"; |
| 31 | 31 |
| 32 // Allows non-https URL for background_page for hosted apps. | 32 // Allows non-https URL for background_page for hosted apps. |
| 33 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; | 33 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; |
| 34 | 34 |
| 35 // Allows the browser to load extensions that lack a modern manifest when that | 35 // Allows the browser to load extensions that lack a modern manifest when that |
| 36 // would otherwise be forbidden. | 36 // would otherwise be forbidden. |
| 37 const char kAllowLegacyExtensionManifests[] = | 37 const char kAllowLegacyExtensionManifests[] = |
| 38 "allow-legacy-extension-manifests"; | 38 "allow-legacy-extension-manifests"; |
| 39 | 39 |
| 40 // Specifies comma-separated list of extension ids to grant access to TCP/UDP | 40 // Specifies comma-separated list of extension ids or hosts to grant |
| 41 // socket APIs. | 41 // access to TCP/UDP socket APIs. |
| 42 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; | 42 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; |
| 43 | 43 |
| 44 // Don't block outdated plugins. | 44 // Don't block outdated plugins. |
| 45 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; | 45 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; |
| 46 | 46 |
| 47 // By default, an https page cannot run JavaScript, CSS or plug-ins from http | 47 // By default, an https page cannot run JavaScript, CSS or plug-ins from http |
| 48 // URLs. This provides an override to get the old insecure behavior. | 48 // URLs. This provides an override to get the old insecure behavior. |
| 49 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; | 49 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; |
| 50 | 50 |
| 51 // Allows injecting extensions and user scripts on the extensions gallery | 51 // Allows injecting extensions and user scripts on the extensions gallery |
| (...skipping 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1690 | 1690 |
| 1691 // ----------------------------------------------------------------------------- | 1691 // ----------------------------------------------------------------------------- |
| 1692 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1692 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1693 // | 1693 // |
| 1694 // You were going to just dump your switches here, weren't you? Instead, please | 1694 // You were going to just dump your switches here, weren't you? Instead, please |
| 1695 // put them in alphabetical order above, or in order inside the appropriate | 1695 // put them in alphabetical order above, or in order inside the appropriate |
| 1696 // ifdef at the bottom. The order should match the header. | 1696 // ifdef at the bottom. The order should match the header. |
| 1697 // ----------------------------------------------------------------------------- | 1697 // ----------------------------------------------------------------------------- |
| 1698 | 1698 |
| 1699 } // namespace switches | 1699 } // namespace switches |
| OLD | NEW |