| 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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 // Enables the recording of metrics reports but disables reporting. In contrast | 909 // Enables the recording of metrics reports but disables reporting. In contrast |
| 910 // to kDisableMetrics, this executes all the code that a normal client would | 910 // to kDisableMetrics, this executes all the code that a normal client would |
| 911 // use for reporting, except the report is dropped rather than sent to the | 911 // use for reporting, except the report is dropped rather than sent to the |
| 912 // server. This is useful for finding issues in the metrics code during UI and | 912 // server. This is useful for finding issues in the metrics code during UI and |
| 913 // performance tests. | 913 // performance tests. |
| 914 const char kMetricsRecordingOnly[] = "metrics-recording-only"; | 914 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
| 915 | 915 |
| 916 // Enables multiprofile Chrome. | 916 // Enables multiprofile Chrome. |
| 917 const char kMultiProfiles[] = "multi-profiles"; | 917 const char kMultiProfiles[] = "multi-profiles"; |
| 918 | 918 |
| 919 // Causes the process to run as a NativeClient broker | |
| 920 // (used for launching NaCl loader processes on 64-bit Windows). | |
| 921 const char kNaClBrokerProcess[] = "nacl-broker"; | |
| 922 | |
| 923 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by | 919 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by |
| 924 // debug stub. | 920 // debug stub. |
| 925 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses | 921 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses |
| 926 // the same syntax as patterns in Chrome extension manifest. The only difference | 922 // the same syntax as patterns in Chrome extension manifest. The only difference |
| 927 // is that * scheme matches all schemes instead of matching only http and https. | 923 // is that * scheme matches all schemes instead of matching only http and https. |
| 928 // If the value doesn't start with !, a program will be debugged if manifest URL | 924 // If the value doesn't start with !, a program will be debugged if manifest URL |
| 929 // matches any pattern. If the value starts with !, a program will be debugged | 925 // matches any pattern. If the value starts with !, a program will be debugged |
| 930 // if manifest URL does not match any pattern. | 926 // if manifest URL does not match any pattern. |
| 931 const char kNaClDebugMask[] = "nacl-debug-mask"; | 927 const char kNaClDebugMask[] = "nacl-debug-mask"; |
| 932 | 928 |
| 933 // Native Client GDB debugger that will be launched automatically when needed. | |
| 934 const char kNaClGdb[] = "nacl-gdb"; | |
| 935 | |
| 936 // GDB script to pass to the nacl-gdb debugger at startup. | |
| 937 const char kNaClGdbScript[] = "nacl-gdb-script"; | |
| 938 | |
| 939 // Causes the process to run as a NativeClient loader. | |
| 940 const char kNaClLoaderProcess[] = "nacl-loader"; | |
| 941 | |
| 942 // On POSIX only: the contents of this flag are prepended to the nacl-loader | |
| 943 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | |
| 944 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; | |
| 945 | |
| 946 // List of native messaging hosts outside of the default location. Used for | 929 // List of native messaging hosts outside of the default location. Used for |
| 947 // tests. The value must be comma-separate lists of key-value pairs separated | 930 // tests. The value must be comma-separate lists of key-value pairs separated |
| 948 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". | 931 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json". |
| 949 const char kNativeMessagingHosts[] = "native-messaging-hosts"; | 932 const char kNativeMessagingHosts[] = "native-messaging-hosts"; |
| 950 | 933 |
| 951 // Sets the base logging level for the net log. Log 0 logs the most data. | 934 // Sets the base logging level for the net log. Log 0 logs the most data. |
| 952 // Intended primarily for use with --log-net-log. | 935 // Intended primarily for use with --log-net-log. |
| 953 const char kNetLogLevel[] = "net-log-level"; | 936 const char kNetLogLevel[] = "net-log-level"; |
| 954 | 937 |
| 955 // Use new profile management system, including profile sign-out and new | 938 // Use new profile management system, including profile sign-out and new |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 | 1391 |
| 1409 // Enables tab dragging to create a real browser. | 1392 // Enables tab dragging to create a real browser. |
| 1410 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; | 1393 const char kTabBrowserDragging[] = "enable-tab-browser-dragging"; |
| 1411 | 1394 |
| 1412 // Enables tab capture. | 1395 // Enables tab capture. |
| 1413 const char kTabCapture[] = "enable-tab-capture"; | 1396 const char kTabCapture[] = "enable-tab-capture"; |
| 1414 | 1397 |
| 1415 // Passes the name of the current running automated test to Chrome. | 1398 // Passes the name of the current running automated test to Chrome. |
| 1416 const char kTestName[] = "test-name"; | 1399 const char kTestName[] = "test-name"; |
| 1417 | 1400 |
| 1418 // Runs the security test for the NaCl loader sandbox. | |
| 1419 const char kTestNaClSandbox[] = "test-nacl-sandbox"; | |
| 1420 | |
| 1421 // Type of the current test harness ("browser" or "ui"). | 1401 // Type of the current test harness ("browser" or "ui"). |
| 1422 const char kTestType[] = "test-type"; | 1402 const char kTestType[] = "test-type"; |
| 1423 | 1403 |
| 1424 // Tells the app to listen for and broadcast testing-related messages on IPC | 1404 // Tells the app to listen for and broadcast testing-related messages on IPC |
| 1425 // channel with the given ID. | 1405 // channel with the given ID. |
| 1426 const char kTestingChannelID[] = "testing-channel"; | 1406 const char kTestingChannelID[] = "testing-channel"; |
| 1427 | 1407 |
| 1428 // Enables tracking the amount of non-idle time spent viewing pages. | 1408 // Enables tracking the amount of non-idle time spent viewing pages. |
| 1429 const char kTrackActiveVisitTime[] = "track-active-visit-time"; | 1409 const char kTrackActiveVisitTime[] = "track-active-visit-time"; |
| 1430 | 1410 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1625 | 1605 |
| 1626 // ----------------------------------------------------------------------------- | 1606 // ----------------------------------------------------------------------------- |
| 1627 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1607 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1628 // | 1608 // |
| 1629 // You were going to just dump your switches here, weren't you? Instead, please | 1609 // You were going to just dump your switches here, weren't you? Instead, please |
| 1630 // put them in alphabetical order above, or in order inside the appropriate | 1610 // put them in alphabetical order above, or in order inside the appropriate |
| 1631 // ifdef at the bottom. The order should match the header. | 1611 // ifdef at the bottom. The order should match the header. |
| 1632 // ----------------------------------------------------------------------------- | 1612 // ----------------------------------------------------------------------------- |
| 1633 | 1613 |
| 1634 } // namespace switches | 1614 } // namespace switches |
| OLD | NEW |