Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1313)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 15957008: Move NaCl related switches to their own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move ppapi switches back to chrome_switches Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 587
588 // Enables metrics recording and reporting in the browser startup sequence, as 588 // Enables metrics recording and reporting in the browser startup sequence, as
589 // if this was an official Chrome build where the user allowed metrics 589 // if this was an official Chrome build where the user allowed metrics
590 // reporting. This is used for testing only. 590 // reporting. This is used for testing only.
591 const char kEnableMetricsReportingForTesting[] = 591 const char kEnableMetricsReportingForTesting[] =
592 "enable-metrics-reporting-for-testing"; 592 "enable-metrics-reporting-for-testing";
593 593
594 // Enables the chrome://memory-internals/ page. 594 // Enables the chrome://memory-internals/ page.
595 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui"; 595 const char kEnableMemoryInternalsUI[] = "enable-memory-internals-ui";
596 596
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. 597 // Enables the network-related benchmarking extensions.
605 const char kEnableNetBenchmarking[] = "enable-net-benchmarking"; 598 const char kEnableNetBenchmarking[] = "enable-net-benchmarking";
606 599
607 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. 600 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY.
608 const char kEnableNpn[] = "enable-npn"; 601 const char kEnableNpn[] = "enable-npn";
609 602
610 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. 603 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
611 // HTTP is still used for all requests. 604 // HTTP is still used for all requests.
612 const char kEnableNpnHttpOnly[] = "enable-npn-http"; 605 const char kEnableNpnHttpOnly[] = "enable-npn-http";
613 606
614 // Enables panels (always on-top docked pop-up windows). 607 // Enables panels (always on-top docked pop-up windows).
615 const char kEnablePanels[] = "enable-panels"; 608 const char kEnablePanels[] = "enable-panels";
616 609
617 // Enables password generation when we detect that the user is going through 610 // Enables password generation when we detect that the user is going through
618 // account creation. 611 // account creation.
619 const char kEnablePasswordGeneration[] = "enable-password-generation"; 612 const char kEnablePasswordGeneration[] = "enable-password-generation";
620 613
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. 614 // Enables tracking of tasks in profiler for viewing via about:profiler.
625 // To predominantly disable tracking (profiling), use the command line switch: 615 // To predominantly disable tracking (profiling), use the command line switch:
626 // --enable-profiling=0 616 // --enable-profiling=0
627 // Some tracking will still take place at startup, but it will be turned off 617 // Some tracking will still take place at startup, but it will be turned off
628 // during chrome_browser_main. 618 // during chrome_browser_main.
629 const char kEnableProfiling[] = "enable-profiling"; 619 const char kEnableProfiling[] = "enable-profiling";
630 620
631 // Enables support for the QUIC protocol. This is a temporary testing flag. 621 // Enables support for the QUIC protocol. This is a temporary testing flag.
632 const char kEnableQuic[] = "enable-quic"; 622 const char kEnableQuic[] = "enable-quic";
633 623
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 1546
1592 // ----------------------------------------------------------------------------- 1547 // -----------------------------------------------------------------------------
1593 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1548 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1594 // 1549 //
1595 // You were going to just dump your switches here, weren't you? Instead, please 1550 // 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 1551 // put them in alphabetical order above, or in order inside the appropriate
1597 // ifdef at the bottom. The order should match the header. 1552 // ifdef at the bottom. The order should match the header.
1598 // ----------------------------------------------------------------------------- 1553 // -----------------------------------------------------------------------------
1599 1554
1600 } // namespace switches 1555 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698