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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 const char kDiskCacheDir[] = "disk-cache-dir"; | 443 const char kDiskCacheDir[] = "disk-cache-dir"; |
444 | 444 |
445 // Forces the maximum disk space to be used by the disk cache, in bytes. | 445 // Forces the maximum disk space to be used by the disk cache, in bytes. |
446 const char kDiskCacheSize[] = "disk-cache-size"; | 446 const char kDiskCacheSize[] = "disk-cache-size"; |
447 | 447 |
448 const char kDnsLogDetails[] = "dns-log-details"; | 448 const char kDnsLogDetails[] = "dns-log-details"; |
449 | 449 |
450 // Disables prefetching of DNS information. | 450 // Disables prefetching of DNS information. |
451 const char kDnsPrefetchDisable[] = "dns-prefetch-disable"; | 451 const char kDnsPrefetchDisable[] = "dns-prefetch-disable"; |
452 | 452 |
453 // Replaces the download shelf with a new experimental UI. | |
454 const char kDownloadsNewUI[] = "downloads-new-ui"; | |
455 | |
456 // Dump any accumualted histograms to the log when browser terminates (requires | 453 // Dump any accumualted histograms to the log when browser terminates (requires |
457 // logging to be enabled to really do anything). Used by developers and test | 454 // logging to be enabled to really do anything). Used by developers and test |
458 // scripts. | 455 // scripts. |
459 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; | 456 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
460 | 457 |
461 // Enables the Action Box toolbar UI. | 458 // Enables the Action Box toolbar UI. |
462 const char kEnableActionBox[] = "enable-action-box"; | 459 const char kEnableActionBox[] = "enable-action-box"; |
463 | 460 |
464 // Enables the experimental asynchronous DNS client. | 461 // Enables the experimental asynchronous DNS client. |
465 const char kEnableAsyncDns[] = "enable-async-dns"; | 462 const char kEnableAsyncDns[] = "enable-async-dns"; |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 const char kResetVariationState[] = "reset-variation-state"; | 1092 const char kResetVariationState[] = "reset-variation-state"; |
1096 | 1093 |
1097 // Indicates the last session should be restored on startup. This overrides the | 1094 // Indicates the last session should be restored on startup. This overrides the |
1098 // preferences value and is primarily intended for testing. The value of this | 1095 // preferences value and is primarily intended for testing. The value of this |
1099 // switch is the number of tabs to wait until loaded before 'load completed' is | 1096 // switch is the number of tabs to wait until loaded before 'load completed' is |
1100 // sent to the ui_test. | 1097 // sent to the ui_test. |
1101 const char kRestoreLastSession[] = "restore-last-session"; | 1098 const char kRestoreLastSession[] = "restore-last-session"; |
1102 | 1099 |
1103 // Disable saving pages as HTML-only, disable saving pages as HTML Complete | 1100 // Disable saving pages as HTML-only, disable saving pages as HTML Complete |
1104 // (with a directory of sub-resources). Enable only saving pages as MHTML. | 1101 // (with a directory of sub-resources). Enable only saving pages as MHTML. |
1105 // TODO(benjhayden): Remove this switch/flag when SavePackageFilePicker and all | 1102 // See http://crbug.com/120416 for how to remove this switch. |
1106 // platform-specific file pickers support switching save-as filetypes. | |
1107 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; | 1103 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; |
1108 | 1104 |
1109 // URL prefix used by safebrowsing to fetch hash, download data and report | 1105 // URL prefix used by safebrowsing to fetch hash, download data and report |
1110 // malware. | 1106 // malware. |
1111 const char kSbURLPrefix[] = "safebrowsing-url-prefix"; | 1107 const char kSbURLPrefix[] = "safebrowsing-url-prefix"; |
1112 | 1108 |
1113 // If present, safebrowsing only performs update when | 1109 // If present, safebrowsing only performs update when |
1114 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. | 1110 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. |
1115 // This is used for testing only. | 1111 // This is used for testing only. |
1116 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; | 1112 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 | 1467 |
1472 // ----------------------------------------------------------------------------- | 1468 // ----------------------------------------------------------------------------- |
1473 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1469 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1474 // | 1470 // |
1475 // You were going to just dump your switches here, weren't you? Instead, please | 1471 // You were going to just dump your switches here, weren't you? Instead, please |
1476 // put them in alphabetical order above, or in order inside the appropriate | 1472 // put them in alphabetical order above, or in order inside the appropriate |
1477 // ifdef at the bottom. The order should match the header. | 1473 // ifdef at the bottom. The order should match the header. |
1478 // ----------------------------------------------------------------------------- | 1474 // ----------------------------------------------------------------------------- |
1479 | 1475 |
1480 } // namespace switches | 1476 } // namespace switches |
OLD | NEW |