| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 // Disables background mode (background apps will not keep chrome running in | 267 // Disables background mode (background apps will not keep chrome running in |
| 268 // the background). | 268 // the background). |
| 269 const char kDisableBackgroundMode[] = "disable-background-mode"; | 269 const char kDisableBackgroundMode[] = "disable-background-mode"; |
| 270 | 270 |
| 271 // Disable several subsystems which run network requests in the background. | 271 // Disable several subsystems which run network requests in the background. |
| 272 // This is for use when doing network performance testing to avoid noise in the | 272 // This is for use when doing network performance testing to avoid noise in the |
| 273 // measurements. | 273 // measurements. |
| 274 const char kDisableBackgroundNetworking[] = "disable-background-networking"; | 274 const char kDisableBackgroundNetworking[] = "disable-background-networking"; |
| 275 | 275 |
| 276 // Disables the bundled PPAPI version of Flash. | |
| 277 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash"; | |
| 278 | |
| 279 // Disables the bookmark autocomplete provider (BookmarkProvider). | 276 // Disables the bookmark autocomplete provider (BookmarkProvider). |
| 280 const char kDisableBookmarkAutocompleteProvider[] = | 277 const char kDisableBookmarkAutocompleteProvider[] = |
| 281 "disable-bookmark-autocomplete-provider"; | 278 "disable-bookmark-autocomplete-provider"; |
| 282 | 279 |
| 283 // Disables the client-side phishing detection feature. Note that even if | 280 // Disables the client-side phishing detection feature. Note that even if |
| 284 // client-side phishing detection is enabled, it will only be active if the | 281 // client-side phishing detection is enabled, it will only be active if the |
| 285 // user has opted in to UMA stats and SafeBrowsing is enabled in the | 282 // user has opted in to UMA stats and SafeBrowsing is enabled in the |
| 286 // preferences. | 283 // preferences. |
| 287 const char kDisableClientSidePhishingDetection[] = | 284 const char kDisableClientSidePhishingDetection[] = |
| 288 "disable-client-side-phishing-detection"; | 285 "disable-client-side-phishing-detection"; |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 584 |
| 588 // Enables metrics recording and reporting in the browser startup sequence, as | 585 // Enables metrics recording and reporting in the browser startup sequence, as |
| 589 // if this was an official Chrome build where the user allowed metrics | 586 // if this was an official Chrome build where the user allowed metrics |
| 590 // reporting. This is used for testing only. | 587 // reporting. This is used for testing only. |
| 591 const char kEnableMetricsReportingForTesting[] = | 588 const char kEnableMetricsReportingForTesting[] = |
| 592 "enable-metrics-reporting-for-testing"; | 589 "enable-metrics-reporting-for-testing"; |
| 593 | 590 |
| 594 // Enables the chrome://memory-internals/ page. | 591 // Enables the chrome://memory-internals/ page. |
| 595 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; | 592 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; |
| 596 | 593 |
| 597 // Runs the Native Client inside the renderer process and enables GPU plugin | |
| 598 // (internally adds lEnableGpuPlugin to the command line). | |
| 599 const char kEnableNaCl[] = "enable-nacl"; | |
| 600 | |
| 601 // Enables debugging via RSP over a socket. | |
| 602 const char kEnableNaClDebug[] = "enable-nacl-debug"; | |
| 603 | |
| 604 // Enables the network-related benchmarking extensions. | 594 // Enables the network-related benchmarking extensions. |
| 605 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; | 595 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; |
| 606 | 596 |
| 607 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. | 597 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. |
| 608 const char kEnableNpn[] = "enable-npn"; | 598 const char kEnableNpn[] = "enable-npn"; |
| 609 | 599 |
| 610 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. | 600 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. |
| 611 // HTTP is still used for all requests. | 601 // HTTP is still used for all requests. |
| 612 const char kEnableNpnHttpOnly[] = "enable-npn-http"; | 602 const char kEnableNpnHttpOnly[] = "enable-npn-http"; |
| 613 | 603 |
| 614 // Enables panels (always on-top docked pop-up windows). | 604 // Enables panels (always on-top docked pop-up windows). |
| 615 const char kEnablePanels[] = "enable-panels"; | 605 const char kEnablePanels[] = "enable-panels"; |
| 616 | 606 |
| 617 // Enables password generation when we detect that the user is going through | 607 // Enables password generation when we detect that the user is going through |
| 618 // account creation. | 608 // account creation. |
| 619 const char kEnablePasswordGeneration[] = "enable-password-generation"; | 609 const char kEnablePasswordGeneration[] = "enable-password-generation"; |
| 620 | 610 |
| 621 // Enables the installation and usage of Portable Native Client. | |
| 622 const char kEnablePnacl[] = "enable-pnacl"; | |
| 623 | |
| 624 // Enables tracking of tasks in profiler for viewing via about:profiler. | 611 // Enables tracking of tasks in profiler for viewing via about:profiler. |
| 625 // To predominantly disable tracking (profiling), use the command line switch: | 612 // To predominantly disable tracking (profiling), use the command line switch: |
| 626 // --enable-profiling=0 | 613 // --enable-profiling=0 |
| 627 // Some tracking will still take place at startup, but it will be turned off | 614 // Some tracking will still take place at startup, but it will be turned off |
| 628 // during chrome_browser_main. | 615 // during chrome_browser_main. |
| 629 const char kEnableProfiling[] = "enable-profiling"; | 616 const char kEnableProfiling[] = "enable-profiling"; |
| 630 | 617 |
| 631 // Enables support for the QUIC protocol. This is a temporary testing flag. | 618 // Enables support for the QUIC protocol. This is a temporary testing flag. |
| 632 const char kEnableQuic[] = "enable-quic"; | 619 const char kEnableQuic[] = "enable-quic"; |
| 633 | 620 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 // Enables the recording of metrics reports but disables reporting. In contrast | 883 // Enables the recording of metrics reports but disables reporting. In contrast |
| 897 // to kDisableMetrics, this executes all the code that a normal client would | 884 // to kDisableMetrics, this executes all the code that a normal client would |
| 898 // use for reporting, except the report is dropped rather than sent to the | 885 // use for reporting, except the report is dropped rather than sent to the |
| 899 // server. This is useful for finding issues in the metrics code during UI and | 886 // server. This is useful for finding issues in the metrics code during UI and |
| 900 // performance tests. | 887 // performance tests. |
| 901 const char kMetricsRecordingOnly[] = "metrics-recording-only"; | 888 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
| 902 | 889 |
| 903 // Enables multiprofile Chrome. | 890 // Enables multiprofile Chrome. |
| 904 const char kMultiProfiles[] = "multi-profiles"; | 891 const char kMultiProfiles[] = "multi-profiles"; |
| 905 | 892 |
| 906 // Causes the process to run as a NativeClient broker | |
| 907 // (used for launching NaCl loader processes on 64-bit Windows). | |
| 908 const char kNaClBrokerProcess[] = "nacl-broker"; | |
| 909 | |
| 910 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by | |
| 911 // debug stub. | |
| 912 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses | |
| 913 // the same syntax as patterns in Chrome extension manifest. The only difference | |
| 914 // is that * scheme matches all schemes instead of matching only http and https. | |
| 915 // If the value doesn't start with !, a program will be debugged if manifest URL | |
| 916 // matches any pattern. If the value starts with !, a program will be debugged | |
| 917 // if manifest URL does not match any pattern. | |
| 918 const char kNaClDebugMask[] = "nacl-debug-mask"; | |
| 919 | |
| 920 // Native Client GDB debugger for loader. It needs switches calculated | |
| 921 // at run time in order to work correctly. That's why NaClLoadCmdPrefix | |
| 922 // flag can't be used. | |
| 923 const char kNaClGdb[] = "nacl-gdb"; | |
| 924 | |
| 925 // GDB script to pass to the nacl-gdb debugger at startup. | |
| 926 const char kNaClGdbScript[] = "nacl-gdb-script"; | |
| 927 | |
| 928 // Causes the process to run as a NativeClient loader. | |
| 929 const char kNaClLoaderProcess[] = "nacl-loader"; | |
| 930 | |
| 931 // On POSIX only: the contents of this flag are prepended to the nacl-loader | |
| 932 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | |
| 933 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; | |
| 934 | |
| 935 // List of native messaging hosts outside of the default location. Used for | 893 // List of native messaging hosts outside of the default location. Used for |
| 936 // tests. The value must be comma-separate lists of key-value pairs separated | 894 // tests. The value must be comma-separate lists of key-value pairs separated |
| 937 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". | 895 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". |
| 938 const char kNativeMessagingHosts[] = "native-messaging-hosts"; | 896 const char kNativeMessagingHosts[] = "native-messaging-hosts"; |
| 939 | 897 |
| 940 // Sets the base logging level for the net log. Log 0 logs the most data. | 898 // Sets the base logging level for the net log. Log 0 logs the most data. |
| 941 // Intended primarily for use with --log-net-log. | 899 // Intended primarily for use with --log-net-log. |
| 942 const char kNetLogLevel[] = "net-log-level"; | 900 const char kNetLogLevel[] = "net-log-level"; |
| 943 | 901 |
| 944 // Use new profile management system, including profile sign-out and new | 902 // Use new profile management system, including profile sign-out and new |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 // such as extension-related occurrences and crashes. Optionally, this may be | 1018 // such as extension-related occurrences and crashes. Optionally, this may be |
| 1061 // run with an integer value representing the interval between the timed | 1019 // run with an integer value representing the interval between the timed |
| 1062 // metric gatherings, measured in seconds (if invalid or not provided, the | 1020 // metric gatherings, measured in seconds (if invalid or not provided, the |
| 1063 // default interval is used). | 1021 // default interval is used). |
| 1064 const char kPerformanceMonitorGathering[] = "performance-monitor-gathering"; | 1022 const char kPerformanceMonitorGathering[] = "performance-monitor-gathering"; |
| 1065 | 1023 |
| 1066 // Read previously recorded data from the cache. Only cached data is read. | 1024 // Read previously recorded data from the cache. Only cached data is read. |
| 1067 // See kRecordMode. | 1025 // See kRecordMode. |
| 1068 const char kPlaybackMode[] = "playback-mode"; | 1026 const char kPlaybackMode[] = "playback-mode"; |
| 1069 | 1027 |
| 1070 // Overrides the path to the location that PNaCl is installed. | |
| 1071 const char kPnaclDir[] = "pnacl-dir"; | |
| 1072 | |
| 1073 // Forces the PPAPI version of Flash (if it's being used) to run in the | |
| 1074 // renderer process rather than in a separate plugin process. | |
| 1075 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; | |
| 1076 | |
| 1077 // Use the PPAPI (Pepper) Flash found at the given path. | |
| 1078 const char kPpapiFlashPath[] = "ppapi-flash-path"; | |
| 1079 | |
| 1080 // Report the given version for the PPAPI (Pepper) Flash. The version should be | |
| 1081 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it | |
| 1082 // defaults to "10.2.999.999". | |
| 1083 const char kPpapiFlashVersion[] = "ppapi-flash-version"; | |
| 1084 | |
| 1085 // Triggers prerendering of pages from suggestions in the omnibox. Only has an | 1028 // Triggers prerendering of pages from suggestions in the omnibox. Only has an |
| 1086 // effect when Instant is either disabled or restricted to search, and when | 1029 // effect when Instant is either disabled or restricted to search, and when |
| 1087 // prerender is enabled. | 1030 // prerender is enabled. |
| 1088 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; | 1031 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; |
| 1089 // These are the values the kPrerenderFromOmnibox switch may have, as in | 1032 // These are the values the kPrerenderFromOmnibox switch may have, as in |
| 1090 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. | 1033 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. |
| 1091 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; | 1034 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; |
| 1092 // disabled: No prerendering. | 1035 // disabled: No prerendering. |
| 1093 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; | 1036 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; |
| 1094 // enabled: Guaranteed prerendering. | 1037 // enabled: Guaranteed prerendering. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 | 1324 |
| 1382 // Enables tab dragging to create a real browser. | 1325 // Enables tab dragging to create a real browser. |
| 1383 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; | 1326 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; |
| 1384 | 1327 |
| 1385 // Enables tab capture. | 1328 // Enables tab capture. |
| 1386 const char kTabCapture[] = "enable-tab-capture"; | 1329 const char kTabCapture[] = "enable-tab-capture"; |
| 1387 | 1330 |
| 1388 // Passes the name of the current running automated test to Chrome. | 1331 // Passes the name of the current running automated test to Chrome. |
| 1389 const char kTestName[] = "test-name"; | 1332 const char kTestName[] = "test-name"; |
| 1390 | 1333 |
| 1391 // Runs the security test for the NaCl loader sandbox. | |
| 1392 const char kTestNaClSandbox[] = "test-nacl-sandbox"; | |
| 1393 | |
| 1394 // Type of the current test harness ("browser" or "ui"). | 1334 // Type of the current test harness ("browser" or "ui"). |
| 1395 const char kTestType[] = "test-type"; | 1335 const char kTestType[] = "test-type"; |
| 1396 | 1336 |
| 1397 // Tells the app to listen for and broadcast testing-related messages on IPC | 1337 // Tells the app to listen for and broadcast testing-related messages on IPC |
| 1398 // channel with the given ID. | 1338 // channel with the given ID. |
| 1399 const char kTestingChannelID[] = "testing-channel"; | 1339 const char kTestingChannelID[] = "testing-channel"; |
| 1400 | 1340 |
| 1401 // Enables tracking the amount of non-idle time spent viewing pages. | 1341 // Enables tracking the amount of non-idle time spent viewing pages. |
| 1402 const char kTrackActiveVisitTime[] = "track-active-visit-time"; | 1342 const char kTrackActiveVisitTime[] = "track-active-visit-time"; |
| 1403 | 1343 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 | 1531 |
| 1592 // ----------------------------------------------------------------------------- | 1532 // ----------------------------------------------------------------------------- |
| 1593 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1533 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1594 // | 1534 // |
| 1595 // You were going to just dump your switches here, weren't you? Instead, please | 1535 // You were going to just dump your switches here, weren't you? Instead, please |
| 1596 // put them in alphabetical order above, or in order inside the appropriate | 1536 // put them in alphabetical order above, or in order inside the appropriate |
| 1597 // ifdef at the bottom. The order should match the header. | 1537 // ifdef at the bottom. The order should match the header. |
| 1598 // ----------------------------------------------------------------------------- | 1538 // ----------------------------------------------------------------------------- |
| 1599 | 1539 |
| 1600 } // namespace switches | 1540 } // namespace switches |
| OLD | NEW |