| 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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 // Disables all experiments set on about:flags. Does not disable about:flags | 847 // Disables all experiments set on about:flags. Does not disable about:flags |
| 848 // itself. Useful if an experiment makes chrome crash at startup: One can start | 848 // itself. Useful if an experiment makes chrome crash at startup: One can start |
| 849 // chrome with --no-experiments, disable the problematic lab at about:flags and | 849 // chrome with --no-experiments, disable the problematic lab at about:flags and |
| 850 // then restart chrome without this switch again. | 850 // then restart chrome without this switch again. |
| 851 const char kNoExperiments[] = "no-experiments"; | 851 const char kNoExperiments[] = "no-experiments"; |
| 852 | 852 |
| 853 // Whether or not it's actually the first run. Overrides kFirstRun in case | 853 // Whether or not it's actually the first run. Overrides kFirstRun in case |
| 854 // you're for some reason tempted to pass them both. | 854 // you're for some reason tempted to pass them both. |
| 855 const char kNoFirstRun[] = "no-first-run"; | 855 const char kNoFirstRun[] = "no-first-run"; |
| 856 | 856 |
| 857 // Support a separate switch that enables the v8 playback extension. |
| 858 // The extension causes javascript calls to Date.now() and Math.random() |
| 859 // to return consistent values, such that subsequent loads of the same |
| 860 // page will result in consistent js-generated data and XHR requests. |
| 861 // Pages may still be able to generate inconsistent data from plugins. |
| 862 const char kNoJsRandomness[] = "no-js-randomness"; |
| 863 |
| 857 // Don't send hyperlink auditing pings | 864 // Don't send hyperlink auditing pings |
| 858 const char kNoPings[] = "no-pings"; | 865 const char kNoPings[] = "no-pings"; |
| 859 | 866 |
| 860 // Disables the Protector feature. | 867 // Disables the Protector feature. |
| 861 const char kNoProtector[] = "no-protector"; | 868 const char kNoProtector[] = "no-protector"; |
| 862 | 869 |
| 863 // Don't use a proxy server, always make direct connections. Overrides any | 870 // Don't use a proxy server, always make direct connections. Overrides any |
| 864 // other proxy server flags that are passed. | 871 // other proxy server flags that are passed. |
| 865 const char kNoProxyServer[] = "no-proxy-server"; | 872 const char kNoProxyServer[] = "no-proxy-server"; |
| 866 | 873 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 | 934 |
| 928 // Packages an extension to a .crx installable file from a given directory. | 935 // Packages an extension to a .crx installable file from a given directory. |
| 929 const char kPackExtension[] = "pack-extension"; | 936 const char kPackExtension[] = "pack-extension"; |
| 930 | 937 |
| 931 // Optional PEM private key to use in signing packaged .crx. | 938 // Optional PEM private key to use in signing packaged .crx. |
| 932 const char kPackExtensionKey[] = "pack-extension-key"; | 939 const char kPackExtensionKey[] = "pack-extension-key"; |
| 933 | 940 |
| 934 // Specifies the path to the user data folder for the parent profile. | 941 // Specifies the path to the user data folder for the parent profile. |
| 935 const char kParentProfile[] = "parent-profile"; | 942 const char kParentProfile[] = "parent-profile"; |
| 936 | 943 |
| 944 // Read previously recorded data from the cache. Only cached data is read. |
| 945 // See kRecordMode. |
| 946 const char kPlaybackMode[] = "playback-mode"; |
| 947 |
| 937 // Controls the PPAPI Flash field trial. Valid values are defined below. If an | 948 // Controls the PPAPI Flash field trial. Valid values are defined below. If an |
| 938 // unknown value is supplied on the command line, the switch is ignored. | 949 // unknown value is supplied on the command line, the switch is ignored. |
| 939 // TODO(yzshen): Remove this flag when the field trial is over. | 950 // TODO(yzshen): Remove this flag when the field trial is over. |
| 940 const char kPpapiFlashFieldTrial[] = "ppapi-flash-field-trial"; | 951 const char kPpapiFlashFieldTrial[] = "ppapi-flash-field-trial"; |
| 941 // Forces to disable PPAPI Flash when a new PPAPI Flash is downloaded. | 952 // Forces to disable PPAPI Flash when a new PPAPI Flash is downloaded. |
| 942 const char kPpapiFlashFieldTrialDisableByDefault[] = "disable-by-default"; | 953 const char kPpapiFlashFieldTrialDisableByDefault[] = "disable-by-default"; |
| 943 // Forces to enable PPAPI Flash when a new PPAPI Flash is downloaded. | 954 // Forces to enable PPAPI Flash when a new PPAPI Flash is downloaded. |
| 944 const char kPpapiFlashFieldTrialEnableByDefault[] = "enable-by-default"; | 955 const char kPpapiFlashFieldTrialEnableByDefault[] = "enable-by-default"; |
| 945 | 956 |
| 946 // Forces the PPAPI version of Flash (if it's being used) to run in the | 957 // Forces the PPAPI version of Flash (if it's being used) to run in the |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 // affects HTTP and HTTPS requests. | 1041 // affects HTTP and HTTPS requests. |
| 1031 const char kProxyServer[] = "proxy-server"; | 1042 const char kProxyServer[] = "proxy-server"; |
| 1032 | 1043 |
| 1033 // Adds a "Purge memory" button to the Task Manager, which tries to dump as | 1044 // Adds a "Purge memory" button to the Task Manager, which tries to dump as |
| 1034 // much memory as possible. This is mostly useful for testing how well the | 1045 // much memory as possible. This is mostly useful for testing how well the |
| 1035 // MemoryPurger functionality works. | 1046 // MemoryPurger functionality works. |
| 1036 // | 1047 // |
| 1037 // NOTE: This is only implemented for Views. | 1048 // NOTE: This is only implemented for Views. |
| 1038 const char kPurgeMemoryButton[] = "purge-memory-button"; | 1049 const char kPurgeMemoryButton[] = "purge-memory-button"; |
| 1039 | 1050 |
| 1051 // Chrome supports a playback and record mode. Record mode saves *everything* |
| 1052 // to the cache. Playback mode reads data exclusively from the cache. This |
| 1053 // allows us to record a session into the cache and then replay it at will. |
| 1054 // See also kPlaybackMode. |
| 1055 const char kRecordMode[] = "record-mode"; |
| 1056 |
| 1040 // Reloads pages that have been killed when they are next focused by the user. | 1057 // Reloads pages that have been killed when they are next focused by the user. |
| 1041 const char kReloadKilledTabs[] = "reload-killed-tabs"; | 1058 const char kReloadKilledTabs[] = "reload-killed-tabs"; |
| 1042 | 1059 |
| 1043 // Uses custom front-end URL for the remote debugging. | 1060 // Uses custom front-end URL for the remote debugging. |
| 1044 const char kRemoteDebuggingFrontend[] = "remote-debugging-frontend"; | 1061 const char kRemoteDebuggingFrontend[] = "remote-debugging-frontend"; |
| 1045 | 1062 |
| 1046 // Enables print preview in the renderer. This flag is generated internally by | 1063 // Enables print preview in the renderer. This flag is generated internally by |
| 1047 // Chrome and does nothing when directly passed to the browser. | 1064 // Chrome and does nothing when directly passed to the browser. |
| 1048 const char kRendererPrintPreview[] = "renderer-print-preview"; | 1065 const char kRendererPrintPreview[] = "renderer-print-preview"; |
| 1049 | 1066 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 | 1398 |
| 1382 // ----------------------------------------------------------------------------- | 1399 // ----------------------------------------------------------------------------- |
| 1383 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1400 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1384 // | 1401 // |
| 1385 // You were going to just dump your switches here, weren't you? Instead, please | 1402 // You were going to just dump your switches here, weren't you? Instead, please |
| 1386 // put them in alphabetical order above, or in order inside the appropriate | 1403 // put them in alphabetical order above, or in order inside the appropriate |
| 1387 // ifdef at the bottom. The order should match the header. | 1404 // ifdef at the bottom. The order should match the header. |
| 1388 // ----------------------------------------------------------------------------- | 1405 // ----------------------------------------------------------------------------- |
| 1389 | 1406 |
| 1390 } // namespace switches | 1407 } // namespace switches |
| OLD | NEW |