| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Causes the browser process to throw an assertion on startup. | 101 // Causes the browser process to throw an assertion on startup. |
| 102 const char kBrowserAssertTest[] = "assert-test"; | 102 const char kBrowserAssertTest[] = "assert-test"; |
| 103 | 103 |
| 104 // Causes the browser process to crash on startup. | 104 // Causes the browser process to crash on startup. |
| 105 const char kBrowserCrashTest[] = "crash-test"; | 105 const char kBrowserCrashTest[] = "crash-test"; |
| 106 | 106 |
| 107 // How often (in seconds) to check for updates. Should only be used for | 107 // How often (in seconds) to check for updates. Should only be used for |
| 108 // testing purposes. | 108 // testing purposes. |
| 109 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval"; | 109 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval"; |
| 110 | 110 |
| 111 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run | |
| 112 // as a dependent process of the Chrome Frame plugin. | |
| 113 const char kChromeFrame[] = "chrome-frame"; | |
| 114 | |
| 115 // Tells chrome to load the specified version of chrome.dll on Windows. If | 111 // Tells chrome to load the specified version of chrome.dll on Windows. If |
| 116 // this version cannot be loaded, Chrome will exit. | 112 // this version cannot be loaded, Chrome will exit. |
| 117 const char kChromeVersion[] = "chrome-version"; | 113 const char kChromeVersion[] = "chrome-version"; |
| 118 | 114 |
| 119 // Used with kCloudPrintFile. Tells Chrome to delete the file when | 115 // Used with kCloudPrintFile. Tells Chrome to delete the file when |
| 120 // finished displaying the print dialog. | 116 // finished displaying the print dialog. |
| 121 const char kCloudPrintDeleteFile[] = "cloud-print-delete-file"; | 117 const char kCloudPrintDeleteFile[] = "cloud-print-delete-file"; |
| 122 | 118 |
| 123 // Tells chrome to display the cloud print dialog and upload the | 119 // Tells chrome to display the cloud print dialog and upload the |
| 124 // specified file for printing. | 120 // specified file for printing. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 167 |
| 172 // Disable gpu-accelerated 2d canvas. | 168 // Disable gpu-accelerated 2d canvas. |
| 173 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; | 169 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; |
| 174 | 170 |
| 175 // Disables the hardware acceleration of 3D CSS and animation. | 171 // Disables the hardware acceleration of 3D CSS and animation. |
| 176 const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; | 172 const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; |
| 177 | 173 |
| 178 // Disables GPU accelerated video display. | 174 // Disables GPU accelerated video display. |
| 179 const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; | 175 const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; |
| 180 | 176 |
| 181 // Disables the alternate window station for the renderer. | |
| 182 const char kDisableAltWinstation[] = "disable-winsta"; | |
| 183 | |
| 184 // Replaces the audio IPC layer for <audio> and <video> with a mock audio | 177 // Replaces the audio IPC layer for <audio> and <video> with a mock audio |
| 185 // device, useful when using remote desktop or machines without sound cards. | 178 // device, useful when using remote desktop or machines without sound cards. |
| 186 // This is temporary until we fix the underlying problem. | 179 // This is temporary until we fix the underlying problem. |
| 187 | 180 |
| 188 // Disable CNAME lookup of the host when generating the Kerberos SPN for a | 181 // Disable CNAME lookup of the host when generating the Kerberos SPN for a |
| 189 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN | 182 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN |
| 190 // for more background. | 183 // for more background. |
| 191 const char kDisableAuthNegotiateCnameLookup[] = | 184 const char kDisableAuthNegotiateCnameLookup[] = |
| 192 "disable-auth-negotiate-cname-lookup"; | 185 "disable-auth-negotiate-cname-lookup"; |
| 193 | 186 |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 | 698 |
| 706 // Enables multiprofile Chrome. | 699 // Enables multiprofile Chrome. |
| 707 const char kMultiProfiles[] = "multi-profiles"; | 700 const char kMultiProfiles[] = "multi-profiles"; |
| 708 | 701 |
| 709 // Sets the default IP address (interface) for the stub (normally 127.0.0.1). | 702 // Sets the default IP address (interface) for the stub (normally 127.0.0.1). |
| 710 const char kNaClDebugIP[] = "nacl-debug-ip"; | 703 const char kNaClDebugIP[] = "nacl-debug-ip"; |
| 711 | 704 |
| 712 // Sets the default port range for debugging. | 705 // Sets the default port range for debugging. |
| 713 const char kNaClDebugPorts[] = "nacl-debug-ports"; | 706 const char kNaClDebugPorts[] = "nacl-debug-ports"; |
| 714 | 707 |
| 715 // Causes the process to run as a NativeClient broker | |
| 716 // (used for launching NaCl loader processes on 64-bit Windows). | |
| 717 const char kNaClBrokerProcess[] = "nacl-broker"; | |
| 718 | |
| 719 // On POSIX only: the contents of this flag are prepended to the nacl-loader | 708 // On POSIX only: the contents of this flag are prepended to the nacl-loader |
| 720 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | 709 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". |
| 721 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; | 710 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; |
| 722 | 711 |
| 723 // Causes the Native Client process to display a dialog on launch. | 712 // Causes the Native Client process to display a dialog on launch. |
| 724 const char kNaClStartupDialog[] = "nacl-startup-dialog"; | 713 const char kNaClStartupDialog[] = "nacl-startup-dialog"; |
| 725 | 714 |
| 726 // Sets the base logging level for the net log. Log 0 logs the most data. | 715 // Sets the base logging level for the net log. Log 0 logs the most data. |
| 727 // Intended primarily for use with --log-net-log. | 716 // Intended primarily for use with --log-net-log. |
| 728 const char kNetLogLevel[] = "net-log-level"; | 717 const char kNetLogLevel[] = "net-log-level"; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 // Runs the security test for the NaCl loader sandbox. | 954 // Runs the security test for the NaCl loader sandbox. |
| 966 const char kTestNaClSandbox[] = "test-nacl-sandbox"; | 955 const char kTestNaClSandbox[] = "test-nacl-sandbox"; |
| 967 | 956 |
| 968 // Pass the type of the current test harness ("browser" or "ui") | 957 // Pass the type of the current test harness ("browser" or "ui") |
| 969 const char kTestType[] = "test-type"; | 958 const char kTestType[] = "test-type"; |
| 970 | 959 |
| 971 // The value of this switch tells the app to listen for and broadcast | 960 // The value of this switch tells the app to listen for and broadcast |
| 972 // testing-related messages on IPC channel with the given ID. | 961 // testing-related messages on IPC channel with the given ID. |
| 973 const char kTestingChannelID[] = "testing-channel"; | 962 const char kTestingChannelID[] = "testing-channel"; |
| 974 | 963 |
| 975 // Excludes these plugins from the plugin sandbox. | |
| 976 // This is a comma-separated list of plugin library names. | |
| 977 const char kTrustedPlugins[] = "trusted-plugins"; | |
| 978 | |
| 979 // Experimental. Shows a dialog asking the user to try chrome. This flag | 964 // Experimental. Shows a dialog asking the user to try chrome. This flag |
| 980 // is to be used only by the upgrade process. | 965 // is to be used only by the upgrade process. |
| 981 const char kTryChromeAgain[] = "try-chrome-again"; | 966 const char kTryChromeAgain[] = "try-chrome-again"; |
| 982 | 967 |
| 983 // Runs un-installation steps that were done by chrome first-run. | 968 // Runs un-installation steps that were done by chrome first-run. |
| 984 const char kUninstall[] = "uninstall"; | 969 const char kUninstall[] = "uninstall"; |
| 985 | 970 |
| 986 // Use a pure Views implementation when available (rather rather than platform | 971 // Use a pure Views implementation when available (rather rather than platform |
| 987 // native implementation such as GTK). | 972 // native implementation such as GTK). |
| 988 const char kUsePureViews[] = "use-pure-views"; | 973 const char kUsePureViews[] = "use-pure-views"; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 | 1176 |
| 1192 // ----------------------------------------------------------------------------- | 1177 // ----------------------------------------------------------------------------- |
| 1193 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1178 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1194 // | 1179 // |
| 1195 // You were going to just dump your switches here, weren't you? Instead, | 1180 // You were going to just dump your switches here, weren't you? Instead, |
| 1196 // please put them in alphabetical order above, or in order inside the | 1181 // please put them in alphabetical order above, or in order inside the |
| 1197 // appropriate ifdef at the bottom. The order should match the header. | 1182 // appropriate ifdef at the bottom. The order should match the header. |
| 1198 // ----------------------------------------------------------------------------- | 1183 // ----------------------------------------------------------------------------- |
| 1199 | 1184 |
| 1200 } // namespace switches | 1185 } // namespace switches |
| OLD | NEW |