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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 // Enables the chrome://memory-internals/ page. | 548 // Enables the chrome://memory-internals/ page. |
549 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; | 549 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; |
550 | 550 |
551 // Runs the Native Client inside the renderer process and enables GPU plugin | 551 // Runs the Native Client inside the renderer process and enables GPU plugin |
552 // (internally adds lEnableGpuPlugin to the command line). | 552 // (internally adds lEnableGpuPlugin to the command line). |
553 const char kEnableNaCl[] = "enable-nacl"; | 553 const char kEnableNaCl[] = "enable-nacl"; |
554 | 554 |
555 // Enables debugging via RSP over a socket. | 555 // Enables debugging via RSP over a socket. |
556 const char kEnableNaClDebug[] = "enable-nacl-debug"; | 556 const char kEnableNaClDebug[] = "enable-nacl-debug"; |
557 | 557 |
558 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by | |
559 // debug stub. | |
560 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses | |
561 // the same syntax as patterns in Chrome extension manifest. The only difference | |
562 // is that * scheme matches all schemes instead of matching only http and https. | |
563 // If the value doesn't start with !, a program will be debugged if manifest URL | |
564 // matches any pattern. If the value starts with !, a program will be debugged | |
565 // if manifest URL does not match any pattern. | |
566 const char kNaClDebugMask[] = "nacl-debug-mask"; | |
567 | |
568 // Enables hardware exception handling via debugger process. | 558 // Enables hardware exception handling via debugger process. |
569 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling"; | 559 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling"; |
570 | 560 |
571 // Enables the native Autofill UI, which is part of the browser process rather | 561 // Enables the native Autofill UI, which is part of the browser process rather |
572 // than part of the renderer process. http://crbug.com/51644 | 562 // than part of the renderer process. http://crbug.com/51644 |
573 const char kEnableNativeAutofillUi[] = "enable-new-autofill-ui"; | 563 const char kEnableNativeAutofillUi[] = "enable-new-autofill-ui"; |
574 | 564 |
575 // Enables the network-related benchmarking extensions. | 565 // Enables the network-related benchmarking extensions. |
576 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; | 566 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; |
577 | 567 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 // Enables the recording of metrics reports but disables reporting. In contrast | 858 // Enables the recording of metrics reports but disables reporting. In contrast |
869 // to kDisableMetrics, this executes all the code that a normal client would | 859 // to kDisableMetrics, this executes all the code that a normal client would |
870 // use for reporting, except the report is dropped rather than sent to the | 860 // use for reporting, except the report is dropped rather than sent to the |
871 // server. This is useful for finding issues in the metrics code during UI and | 861 // server. This is useful for finding issues in the metrics code during UI and |
872 // performance tests. | 862 // performance tests. |
873 const char kMetricsRecordingOnly[] = "metrics-recording-only"; | 863 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
874 | 864 |
875 // Enables multiprofile Chrome. | 865 // Enables multiprofile Chrome. |
876 const char kMultiProfiles[] = "multi-profiles"; | 866 const char kMultiProfiles[] = "multi-profiles"; |
877 | 867 |
| 868 // Causes the process to run as a NativeClient broker |
| 869 // (used for launching NaCl loader processes on 64-bit Windows). |
| 870 const char kNaClBrokerProcess[] = "nacl-broker"; |
| 871 |
| 872 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by |
| 873 // debug stub. |
| 874 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses |
| 875 // the same syntax as patterns in Chrome extension manifest. The only difference |
| 876 // is that * scheme matches all schemes instead of matching only http and https. |
| 877 // If the value doesn't start with !, a program will be debugged if manifest URL |
| 878 // matches any pattern. If the value starts with !, a program will be debugged |
| 879 // if manifest URL does not match any pattern. |
| 880 const char kNaClDebugMask[] = "nacl-debug-mask"; |
| 881 |
878 // Native Client GDB debugger for loader. It needs switches calculated | 882 // Native Client GDB debugger for loader. It needs switches calculated |
879 // at run time in order to work correctly. That's why NaClLoadCmdPrefix | 883 // at run time in order to work correctly. That's why NaClLoadCmdPrefix |
880 // flag can't be used. | 884 // flag can't be used. |
881 const char kNaClGdb[] = "nacl-gdb"; | 885 const char kNaClGdb[] = "nacl-gdb"; |
882 | 886 |
883 // GDB script to pass to the nacl-gdb debugger at startup. | 887 // GDB script to pass to the nacl-gdb debugger at startup. |
884 const char kNaClGdbScript[] = "nacl-gdb-script"; | 888 const char kNaClGdbScript[] = "nacl-gdb-script"; |
885 | 889 |
| 890 // Causes the process to run as a NativeClient loader. |
| 891 const char kNaClLoaderProcess[] = "nacl-loader"; |
| 892 |
886 // On POSIX only: the contents of this flag are prepended to the nacl-loader | 893 // On POSIX only: the contents of this flag are prepended to the nacl-loader |
887 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | 894 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". |
888 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; | 895 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; |
889 | 896 |
890 // List of native messaging hosts outside of the default location. Used for | 897 // List of native messaging hosts outside of the default location. Used for |
891 // tests. The value must be comma-separate lists of key-value pairs separated | 898 // tests. The value must be comma-separate lists of key-value pairs separated |
892 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". | 899 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". |
893 const char kNativeMessagingHosts[] = "native-messaging-hosts"; | 900 const char kNativeMessagingHosts[] = "native-messaging-hosts"; |
894 | 901 |
895 // Sets the base logging level for the net log. Log 0 logs the most data. | 902 // Sets the base logging level for the net log. Log 0 logs the most data. |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 | 1680 |
1674 // ----------------------------------------------------------------------------- | 1681 // ----------------------------------------------------------------------------- |
1675 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1682 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1676 // | 1683 // |
1677 // You were going to just dump your switches here, weren't you? Instead, please | 1684 // You were going to just dump your switches here, weren't you? Instead, please |
1678 // put them in alphabetical order above, or in order inside the appropriate | 1685 // put them in alphabetical order above, or in order inside the appropriate |
1679 // ifdef at the bottom. The order should match the header. | 1686 // ifdef at the bottom. The order should match the header. |
1680 // ----------------------------------------------------------------------------- | 1687 // ----------------------------------------------------------------------------- |
1681 | 1688 |
1682 } // namespace switches | 1689 } // namespace switches |
OLD | NEW |