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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 | 594 |
595 // Enables metrics recording and reporting in the browser startup sequence, as | 595 // Enables metrics recording and reporting in the browser startup sequence, as |
596 // if this was an official Chrome build where the user allowed metrics | 596 // if this was an official Chrome build where the user allowed metrics |
597 // reporting. This is used for testing only. | 597 // reporting. This is used for testing only. |
598 const char kEnableMetricsReportingForTesting[] = | 598 const char kEnableMetricsReportingForTesting[] = |
599 "enable-metrics-reporting-for-testing"; | 599 "enable-metrics-reporting-for-testing"; |
600 | 600 |
601 // Enables the chrome://memory-internals/ page. | 601 // Enables the chrome://memory-internals/ page. |
602 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; | 602 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; |
603 | 603 |
604 // Runs the Native Client inside the renderer process and enables GPU plugin | |
605 // (internally adds lEnableGpuPlugin to the command line). | |
606 const char kEnableNaCl[] = "enable-nacl"; | |
607 | |
608 // Enables debugging via RSP over a socket. | |
609 const char kEnableNaClDebug[] = "enable-nacl-debug"; | |
610 | |
611 // Enables the network-related benchmarking extensions. | 604 // Enables the network-related benchmarking extensions. |
612 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; | 605 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; |
613 | 606 |
614 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. | 607 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. |
615 const char kEnableNpn[] = "enable-npn"; | 608 const char kEnableNpn[] = "enable-npn"; |
616 | 609 |
617 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. | 610 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. |
618 // HTTP is still used for all requests. | 611 // HTTP is still used for all requests. |
619 const char kEnableNpnHttpOnly[] = "enable-npn-http"; | 612 const char kEnableNpnHttpOnly[] = "enable-npn-http"; |
620 | 613 |
621 // Enables omnibox auto-completion when IME is active. The auto-completion for | 614 // Enables omnibox auto-completion when IME is active. The auto-completion for |
622 // IME is shown in the same style as the normal(non-IME) auto-completion. | 615 // IME is shown in the same style as the normal(non-IME) auto-completion. |
623 const char kEnableOmniboxAutoCompletionForIme[] = | 616 const char kEnableOmniboxAutoCompletionForIme[] = |
624 "enable-omnibox-auto-completion-for-ime"; | 617 "enable-omnibox-auto-completion-for-ime"; |
625 | 618 |
626 // Enables panels (always on-top docked pop-up windows). | 619 // Enables panels (always on-top docked pop-up windows). |
627 const char kEnablePanels[] = "enable-panels"; | 620 const char kEnablePanels[] = "enable-panels"; |
628 | 621 |
629 // Enables password generation when we detect that the user is going through | 622 // Enables password generation when we detect that the user is going through |
630 // account creation. | 623 // account creation. |
631 const char kEnablePasswordGeneration[] = "enable-password-generation"; | 624 const char kEnablePasswordGeneration[] = "enable-password-generation"; |
632 | 625 |
633 // Enables the installation and usage of Portable Native Client. | |
634 const char kEnablePnacl[] = "enable-pnacl"; | |
635 | |
636 // Enables tracking of tasks in profiler for viewing via about:profiler. | 626 // Enables tracking of tasks in profiler for viewing via about:profiler. |
637 // To predominantly disable tracking (profiling), use the command line switch: | 627 // To predominantly disable tracking (profiling), use the command line switch: |
638 // --enable-profiling=0 | 628 // --enable-profiling=0 |
639 // Some tracking will still take place at startup, but it will be turned off | 629 // Some tracking will still take place at startup, but it will be turned off |
640 // during chrome_browser_main. | 630 // during chrome_browser_main. |
641 const char kEnableProfiling[] = "enable-profiling"; | 631 const char kEnableProfiling[] = "enable-profiling"; |
642 | 632 |
643 // Enables support for the QUIC protocol. This is a temporary testing flag. | 633 // Enables support for the QUIC protocol. This is a temporary testing flag. |
644 const char kEnableQuic[] = "enable-quic"; | 634 const char kEnableQuic[] = "enable-quic"; |
645 | 635 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 // Enables the recording of metrics reports but disables reporting. In contrast | 889 // Enables the recording of metrics reports but disables reporting. In contrast |
900 // to kDisableMetrics, this executes all the code that a normal client would | 890 // to kDisableMetrics, this executes all the code that a normal client would |
901 // use for reporting, except the report is dropped rather than sent to the | 891 // use for reporting, except the report is dropped rather than sent to the |
902 // server. This is useful for finding issues in the metrics code during UI and | 892 // server. This is useful for finding issues in the metrics code during UI and |
903 // performance tests. | 893 // performance tests. |
904 const char kMetricsRecordingOnly[] = "metrics-recording-only"; | 894 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
905 | 895 |
906 // Enables multiprofile Chrome. | 896 // Enables multiprofile Chrome. |
907 const char kMultiProfiles[] = "multi-profiles"; | 897 const char kMultiProfiles[] = "multi-profiles"; |
908 | 898 |
909 // Causes the process to run as a NativeClient broker | |
910 // (used for launching NaCl loader processes on 64-bit Windows). | |
911 const char kNaClBrokerProcess[] = "nacl-broker"; | |
912 | |
913 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by | |
914 // debug stub. | |
915 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses | |
916 // the same syntax as patterns in Chrome extension manifest. The only difference | |
917 // is that * scheme matches all schemes instead of matching only http and https. | |
918 // If the value doesn't start with !, a program will be debugged if manifest URL | |
919 // matches any pattern. If the value starts with !, a program will be debugged | |
920 // if manifest URL does not match any pattern. | |
921 const char kNaClDebugMask[] = "nacl-debug-mask"; | |
922 | |
923 // Native Client GDB debugger for loader. It needs switches calculated | |
924 // at run time in order to work correctly. That's why NaClLoadCmdPrefix | |
925 // flag can't be used. | |
926 const char kNaClGdb[] = "nacl-gdb"; | |
927 | |
928 // GDB script to pass to the nacl-gdb debugger at startup. | |
929 const char kNaClGdbScript[] = "nacl-gdb-script"; | |
930 | |
931 // Causes the process to run as a NativeClient loader. | |
932 const char kNaClLoaderProcess[] = "nacl-loader"; | |
933 | |
934 // On POSIX only: the contents of this flag are prepended to the nacl-loader | |
935 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | |
936 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; | |
937 | |
938 // List of native messaging hosts outside of the default location. Used for | 899 // List of native messaging hosts outside of the default location. Used for |
939 // tests. The value must be comma-separate lists of key-value pairs separated | 900 // tests. The value must be comma-separate lists of key-value pairs separated |
940 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". | 901 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". |
941 const char kNativeMessagingHosts[] = "native-messaging-hosts"; | 902 const char kNativeMessagingHosts[] = "native-messaging-hosts"; |
942 | 903 |
943 // Sets the base logging level for the net log. Log 0 logs the most data. | 904 // Sets the base logging level for the net log. Log 0 logs the most data. |
944 // Intended primarily for use with --log-net-log. | 905 // Intended primarily for use with --log-net-log. |
945 const char kNetLogLevel[] = "net-log-level"; | 906 const char kNetLogLevel[] = "net-log-level"; |
946 | 907 |
947 // Use new profile management system, including profile sign-out and new | 908 // Use new profile management system, including profile sign-out and new |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 // such as extension-related occurrences and crashes. Optionally, this may be | 1024 // such as extension-related occurrences and crashes. Optionally, this may be |
1064 // run with an integer value representing the interval between the timed | 1025 // run with an integer value representing the interval between the timed |
1065 // metric gatherings, measured in seconds (if invalid or not provided, the | 1026 // metric gatherings, measured in seconds (if invalid or not provided, the |
1066 // default interval is used). | 1027 // default interval is used). |
1067 const char kPerformanceMonitorGathering[] = "performance-monitor-gathering"; | 1028 const char kPerformanceMonitorGathering[] = "performance-monitor-gathering"; |
1068 | 1029 |
1069 // Read previously recorded data from the cache. Only cached data is read. | 1030 // Read previously recorded data from the cache. Only cached data is read. |
1070 // See kRecordMode. | 1031 // See kRecordMode. |
1071 const char kPlaybackMode[] = "playback-mode"; | 1032 const char kPlaybackMode[] = "playback-mode"; |
1072 | 1033 |
1073 // Overrides the path to the location that PNaCl is installed. | |
1074 const char kPnaclDir[] = "pnacl-dir"; | |
1075 | |
1076 // Forces the PPAPI version of Flash (if it's being used) to run in the | 1034 // Forces the PPAPI version of Flash (if it's being used) to run in the |
1077 // renderer process rather than in a separate plugin process. | 1035 // renderer process rather than in a separate plugin process. |
1078 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; | 1036 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; |
1079 | 1037 |
1080 // Use the PPAPI (Pepper) Flash found at the given path. | 1038 // Use the PPAPI (Pepper) Flash found at the given path. |
1081 const char kPpapiFlashPath[] = "ppapi-flash-path"; | 1039 const char kPpapiFlashPath[] = "ppapi-flash-path"; |
1082 | 1040 |
1083 // Report the given version for the PPAPI (Pepper) Flash. The version should be | 1041 // Report the given version for the PPAPI (Pepper) Flash. The version should be |
1084 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it | 1042 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it |
1085 // defaults to "10.2.999.999". | 1043 // defaults to "10.2.999.999". |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 | 1338 |
1381 // Enables tab dragging to create a real browser. | 1339 // Enables tab dragging to create a real browser. |
1382 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; | 1340 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; |
1383 | 1341 |
1384 // Enables tab capture. | 1342 // Enables tab capture. |
1385 const char kTabCapture[] = "enable-tab-capture"; | 1343 const char kTabCapture[] = "enable-tab-capture"; |
1386 | 1344 |
1387 // Passes the name of the current running automated test to Chrome. | 1345 // Passes the name of the current running automated test to Chrome. |
1388 const char kTestName[] = "test-name"; | 1346 const char kTestName[] = "test-name"; |
1389 | 1347 |
1390 // Runs the security test for the NaCl loader sandbox. | |
1391 const char kTestNaClSandbox[] = "test-nacl-sandbox"; | |
1392 | |
1393 // Type of the current test harness ("browser" or "ui"). | 1348 // Type of the current test harness ("browser" or "ui"). |
1394 const char kTestType[] = "test-type"; | 1349 const char kTestType[] = "test-type"; |
1395 | 1350 |
1396 // Tells the app to listen for and broadcast testing-related messages on IPC | 1351 // Tells the app to listen for and broadcast testing-related messages on IPC |
1397 // channel with the given ID. | 1352 // channel with the given ID. |
1398 const char kTestingChannelID[] = "testing-channel"; | 1353 const char kTestingChannelID[] = "testing-channel"; |
1399 | 1354 |
1400 // Enables tracking the amount of non-idle time spent viewing pages. | 1355 // Enables tracking the amount of non-idle time spent viewing pages. |
1401 const char kTrackActiveVisitTime[] = "track-active-visit-time"; | 1356 const char kTrackActiveVisitTime[] = "track-active-visit-time"; |
1402 | 1357 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1593 | 1548 |
1594 // ----------------------------------------------------------------------------- | 1549 // ----------------------------------------------------------------------------- |
1595 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1550 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1596 // | 1551 // |
1597 // You were going to just dump your switches here, weren't you? Instead, please | 1552 // You were going to just dump your switches here, weren't you? Instead, please |
1598 // put them in alphabetical order above, or in order inside the appropriate | 1553 // put them in alphabetical order above, or in order inside the appropriate |
1599 // ifdef at the bottom. The order should match the header. | 1554 // ifdef at the bottom. The order should match the header. |
1600 // ----------------------------------------------------------------------------- | 1555 // ----------------------------------------------------------------------------- |
1601 | 1556 |
1602 } // namespace switches | 1557 } // namespace switches |
OLD | NEW |