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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 | 591 |
592 // Enables metrics recording and reporting in the browser startup sequence, as | 592 // Enables metrics recording and reporting in the browser startup sequence, as |
593 // if this was an official Chrome build where the user allowed metrics | 593 // if this was an official Chrome build where the user allowed metrics |
594 // reporting. This is used for testing only. | 594 // reporting. This is used for testing only. |
595 const char kEnableMetricsReportingForTesting[] = | 595 const char kEnableMetricsReportingForTesting[] = |
596 "enable-metrics-reporting-for-testing"; | 596 "enable-metrics-reporting-for-testing"; |
597 | 597 |
598 // Enables the chrome://memory-internals/ page. | 598 // Enables the chrome://memory-internals/ page. |
599 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; | 599 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; |
600 | 600 |
601 // Runs the Native Client inside the renderer process and enables GPU plugin | |
602 // (internally adds lEnableGpuPlugin to the command line). | |
603 const char kEnableNaCl[] = "enable-nacl"; | |
604 | |
605 // Enables debugging via RSP over a socket. | |
606 const char kEnableNaClDebug[] = "enable-nacl-debug"; | |
607 | |
608 // Enables the network-related benchmarking extensions. | 601 // Enables the network-related benchmarking extensions. |
609 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; | 602 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; |
610 | 603 |
611 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. | 604 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. |
612 const char kEnableNpn[] = "enable-npn"; | 605 const char kEnableNpn[] = "enable-npn"; |
613 | 606 |
614 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. | 607 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. |
615 // HTTP is still used for all requests. | 608 // HTTP is still used for all requests. |
616 const char kEnableNpnHttpOnly[] = "enable-npn-http"; | 609 const char kEnableNpnHttpOnly[] = "enable-npn-http"; |
617 | 610 |
618 // Enables omnibox auto-completion when IME is active. The auto-completion for | 611 // Enables omnibox auto-completion when IME is active. The auto-completion for |
619 // IME is shown in the same style as the normal(non-IME) auto-completion. | 612 // IME is shown in the same style as the normal(non-IME) auto-completion. |
620 const char kEnableOmniboxAutoCompletionForIme[] = | 613 const char kEnableOmniboxAutoCompletionForIme[] = |
621 "enable-omnibox-auto-completion-for-ime"; | 614 "enable-omnibox-auto-completion-for-ime"; |
622 | 615 |
623 // Enables panels (always on-top docked pop-up windows). | 616 // Enables panels (always on-top docked pop-up windows). |
624 const char kEnablePanels[] = "enable-panels"; | 617 const char kEnablePanels[] = "enable-panels"; |
625 | 618 |
626 // Enables password generation when we detect that the user is going through | 619 // Enables password generation when we detect that the user is going through |
627 // account creation. | 620 // account creation. |
628 const char kEnablePasswordGeneration[] = "enable-password-generation"; | 621 const char kEnablePasswordGeneration[] = "enable-password-generation"; |
629 | 622 |
630 // Enables the installation and usage of Portable Native Client. | |
631 const char kEnablePnacl[] = "enable-pnacl"; | |
632 | |
633 // Enables tracking of tasks in profiler for viewing via about:profiler. | 623 // Enables tracking of tasks in profiler for viewing via about:profiler. |
634 // To predominantly disable tracking (profiling), use the command line switch: | 624 // To predominantly disable tracking (profiling), use the command line switch: |
635 // --enable-profiling=0 | 625 // --enable-profiling=0 |
636 // Some tracking will still take place at startup, but it will be turned off | 626 // Some tracking will still take place at startup, but it will be turned off |
637 // during chrome_browser_main. | 627 // during chrome_browser_main. |
638 const char kEnableProfiling[] = "enable-profiling"; | 628 const char kEnableProfiling[] = "enable-profiling"; |
639 | 629 |
640 // Enables support for the QUIC protocol. This is a temporary testing flag. | 630 // Enables support for the QUIC protocol. This is a temporary testing flag. |
641 const char kEnableQuic[] = "enable-quic"; | 631 const char kEnableQuic[] = "enable-quic"; |
642 | 632 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 // Enables the recording of metrics reports but disables reporting. In contrast | 886 // Enables the recording of metrics reports but disables reporting. In contrast |
897 // to kDisableMetrics, this executes all the code that a normal client would | 887 // 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 | 888 // 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 | 889 // server. This is useful for finding issues in the metrics code during UI and |
900 // performance tests. | 890 // performance tests. |
901 const char kMetricsRecordingOnly[] = "metrics-recording-only"; | 891 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
902 | 892 |
903 // Enables multiprofile Chrome. | 893 // Enables multiprofile Chrome. |
904 const char kMultiProfiles[] = "multi-profiles"; | 894 const char kMultiProfiles[] = "multi-profiles"; |
905 | 895 |
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 | 896 // 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 | 897 // 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". | 898 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". |
938 const char kNativeMessagingHosts[] = "native-messaging-hosts"; | 899 const char kNativeMessagingHosts[] = "native-messaging-hosts"; |
939 | 900 |
940 // Sets the base logging level for the net log. Log 0 logs the most data. | 901 // Sets the base logging level for the net log. Log 0 logs the most data. |
941 // Intended primarily for use with --log-net-log. | 902 // Intended primarily for use with --log-net-log. |
942 const char kNetLogLevel[] = "net-log-level"; | 903 const char kNetLogLevel[] = "net-log-level"; |
943 | 904 |
944 // Use new profile management system, including profile sign-out and new | 905 // 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 | 1021 // such as extension-related occurrences and crashes. Optionally, this may be |
1061 // run with an integer value representing the interval between the timed | 1022 // run with an integer value representing the interval between the timed |
1062 // metric gatherings, measured in seconds (if invalid or not provided, the | 1023 // metric gatherings, measured in seconds (if invalid or not provided, the |
1063 // default interval is used). | 1024 // default interval is used). |
1064 const char kPerformanceMonitorGathering[] = "performance-monitor-gathering"; | 1025 const char kPerformanceMonitorGathering[] = "performance-monitor-gathering"; |
1065 | 1026 |
1066 // Read previously recorded data from the cache. Only cached data is read. | 1027 // Read previously recorded data from the cache. Only cached data is read. |
1067 // See kRecordMode. | 1028 // See kRecordMode. |
1068 const char kPlaybackMode[] = "playback-mode"; | 1029 const char kPlaybackMode[] = "playback-mode"; |
1069 | 1030 |
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 | 1031 // 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. | 1032 // renderer process rather than in a separate plugin process. |
1075 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; | 1033 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; |
1076 | 1034 |
1077 // Use the PPAPI (Pepper) Flash found at the given path. | 1035 // Use the PPAPI (Pepper) Flash found at the given path. |
1078 const char kPpapiFlashPath[] = "ppapi-flash-path"; | 1036 const char kPpapiFlashPath[] = "ppapi-flash-path"; |
1079 | 1037 |
1080 // Report the given version for the PPAPI (Pepper) Flash. The version should be | 1038 // 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 | 1039 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it |
1082 // defaults to "10.2.999.999". | 1040 // defaults to "10.2.999.999". |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 | 1339 |
1382 // Enables tab dragging to create a real browser. | 1340 // Enables tab dragging to create a real browser. |
1383 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; | 1341 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; |
1384 | 1342 |
1385 // Enables tab capture. | 1343 // Enables tab capture. |
1386 const char kTabCapture[] = "enable-tab-capture"; | 1344 const char kTabCapture[] = "enable-tab-capture"; |
1387 | 1345 |
1388 // Passes the name of the current running automated test to Chrome. | 1346 // Passes the name of the current running automated test to Chrome. |
1389 const char kTestName[] = "test-name"; | 1347 const char kTestName[] = "test-name"; |
1390 | 1348 |
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"). | 1349 // Type of the current test harness ("browser" or "ui"). |
1395 const char kTestType[] = "test-type"; | 1350 const char kTestType[] = "test-type"; |
1396 | 1351 |
1397 // Tells the app to listen for and broadcast testing-related messages on IPC | 1352 // Tells the app to listen for and broadcast testing-related messages on IPC |
1398 // channel with the given ID. | 1353 // channel with the given ID. |
1399 const char kTestingChannelID[] = "testing-channel"; | 1354 const char kTestingChannelID[] = "testing-channel"; |
1400 | 1355 |
1401 // Enables tracking the amount of non-idle time spent viewing pages. | 1356 // Enables tracking the amount of non-idle time spent viewing pages. |
1402 const char kTrackActiveVisitTime[] = "track-active-visit-time"; | 1357 const char kTrackActiveVisitTime[] = "track-active-visit-time"; |
1403 | 1358 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1594 | 1549 |
1595 // ----------------------------------------------------------------------------- | 1550 // ----------------------------------------------------------------------------- |
1596 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1551 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1597 // | 1552 // |
1598 // You were going to just dump your switches here, weren't you? Instead, please | 1553 // You were going to just dump your switches here, weren't you? Instead, please |
1599 // put them in alphabetical order above, or in order inside the appropriate | 1554 // put them in alphabetical order above, or in order inside the appropriate |
1600 // ifdef at the bottom. The order should match the header. | 1555 // ifdef at the bottom. The order should match the header. |
1601 // ----------------------------------------------------------------------------- | 1556 // ----------------------------------------------------------------------------- |
1602 | 1557 |
1603 } // namespace switches | 1558 } // namespace switches |
OLD | NEW |