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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 // HTTP is still used for all requests. | 466 // HTTP is still used for all requests. |
467 const char kEnableNpnHttpOnly[] = "enable-npn-http"; | 467 const char kEnableNpnHttpOnly[] = "enable-npn-http"; |
468 | 468 |
469 // Enable auto-reload of error pages if offline. | 469 // Enable auto-reload of error pages if offline. |
470 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload"; | 470 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload"; |
471 | 471 |
472 // Only auto-reload error pages when the tab is visible. | 472 // Only auto-reload error pages when the tab is visible. |
473 const char kEnableOfflineAutoReloadVisibleOnly[] = | 473 const char kEnableOfflineAutoReloadVisibleOnly[] = |
474 "enable-offline-auto-reload-visible-only"; | 474 "enable-offline-auto-reload-visible-only"; |
475 | 475 |
476 // Enable/Disable offering a "Load stale copy" option to the user if offline. | |
477 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache"; | |
478 const char kDisableOfflineLoadStaleCache[] = | |
479 "disable-offline-load-stale-cache"; | |
480 | |
481 // Enable the out of process PDF plugin. | 476 // Enable the out of process PDF plugin. |
482 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; | 477 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf"; |
483 | 478 |
484 // Enables panels (always on-top docked pop-up windows). | 479 // Enables panels (always on-top docked pop-up windows). |
485 const char kEnablePanels[] = "enable-panels"; | 480 const char kEnablePanels[] = "enable-panels"; |
486 | 481 |
487 // Enable the new material UI - requires out of process PDF plugin. | 482 // Enable the new material UI - requires out of process PDF plugin. |
488 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; | 483 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; |
489 | 484 |
490 // Enables presenting plugin placeholder content as shadow DOM. | 485 // Enables presenting plugin placeholder content as shadow DOM. |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 | 1023 |
1029 // Sets a token in the token service, for testing. | 1024 // Sets a token in the token service, for testing. |
1030 const char kSetToken[] = "set-token"; | 1025 const char kSetToken[] = "set-token"; |
1031 | 1026 |
1032 // If true the app list will be shown. | 1027 // If true the app list will be shown. |
1033 const char kShowAppList[] = "show-app-list"; | 1028 const char kShowAppList[] = "show-app-list"; |
1034 | 1029 |
1035 // See kHideIcons. | 1030 // See kHideIcons. |
1036 const char kShowIcons[] = "show-icons"; | 1031 const char kShowIcons[] = "show-icons"; |
1037 | 1032 |
| 1033 // Command line flag offering a "Show saved copy" option to the user if offline. |
| 1034 // The various modes are disabled, primary, or secondary. Primary/secondary |
| 1035 // refers to button placement (for experiment). |
| 1036 const char kShowSavedCopy[] = "show-saved-copy"; |
| 1037 |
| 1038 // Values for the kShowSavedCopy flag. |
| 1039 const char kEnableShowSavedCopyPrimary[] = "primary"; |
| 1040 const char kEnableShowSavedCopySecondary[] = "secondary"; |
| 1041 const char kDisableShowSavedCopy[] = "disable"; |
| 1042 |
1038 // Marks a renderer as the signin process. | 1043 // Marks a renderer as the signin process. |
1039 const char kSigninProcess[] = "signin-process"; | 1044 const char kSigninProcess[] = "signin-process"; |
1040 | 1045 |
1041 // Does not show an infobar when an extension attaches to a page using | 1046 // Does not show an infobar when an extension attaches to a page using |
1042 // chrome.debugger page. Required to attach to extension background pages. | 1047 // chrome.debugger page. Required to attach to extension background pages. |
1043 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; | 1048 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; |
1044 | 1049 |
1045 // Causes Chrome to launch without opening any windows by default. Useful if | 1050 // Causes Chrome to launch without opening any windows by default. Useful if |
1046 // one wishes to use Chrome as an ash server. | 1051 // one wishes to use Chrome as an ash server. |
1047 const char kSilentLaunch[] = "silent-launch"; | 1052 const char kSilentLaunch[] = "silent-launch"; |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 | 1379 |
1375 // ----------------------------------------------------------------------------- | 1380 // ----------------------------------------------------------------------------- |
1376 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1381 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1377 // | 1382 // |
1378 // You were going to just dump your switches here, weren't you? Instead, please | 1383 // You were going to just dump your switches here, weren't you? Instead, please |
1379 // put them in alphabetical order above, or in order inside the appropriate | 1384 // put them in alphabetical order above, or in order inside the appropriate |
1380 // ifdef at the bottom. The order should match the header. | 1385 // ifdef at the bottom. The order should match the header. |
1381 // ----------------------------------------------------------------------------- | 1386 // ----------------------------------------------------------------------------- |
1382 | 1387 |
1383 } // namespace switches | 1388 } // namespace switches |
OLD | NEW |