| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // Disables the usage of Portable Native Client. | 324 // Disables the usage of Portable Native Client. |
| 325 const char kDisablePnacl[] = "disable-pnacl"; | 325 const char kDisablePnacl[] = "disable-pnacl"; |
| 326 | 326 |
| 327 // Disable speculative TCP/IP preconnection. | 327 // Disable speculative TCP/IP preconnection. |
| 328 const char kDisablePreconnect[] = "disable-preconnect"; | 328 const char kDisablePreconnect[] = "disable-preconnect"; |
| 329 | 329 |
| 330 // Disable prerendering based on local browsing history. | 330 // Disable prerendering based on local browsing history. |
| 331 const char kDisablePrerenderLocalPredictor[] = | 331 const char kDisablePrerenderLocalPredictor[] = |
| 332 "disable-prerender-local-predictor"; | 332 "disable-prerender-local-predictor"; |
| 333 | 333 |
| 334 // Disables print preview (For testing, and for users who don't like us. :[ ) |
| 335 const char kDisablePrintPreview[] = "disable-print-preview"; |
| 336 |
| 334 // Normally when the user attempts to navigate to a page that was the result of | 337 // Normally when the user attempts to navigate to a page that was the result of |
| 335 // a post we prompt to make sure they want to. This switch may be used to | 338 // a post we prompt to make sure they want to. This switch may be used to |
| 336 // disable that check. This switch is used during automated testing. | 339 // disable that check. This switch is used during automated testing. |
| 337 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 340 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
| 338 | 341 |
| 339 // Disables support for the QUIC protocol. | 342 // Disables support for the QUIC protocol. |
| 340 const char kDisableQuic[] = "disable-quic"; | 343 const char kDisableQuic[] = "disable-quic"; |
| 341 | 344 |
| 342 // Disables support for the HTTPS over QUIC protocol. This is a temporary | 345 // Disables support for the HTTPS over QUIC protocol. This is a temporary |
| 343 // testing flag. This only has an effect if QUIC protocol is enabled. | 346 // testing flag. This only has an effect if QUIC protocol is enabled. |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) | 1411 #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) |
| 1409 // Enables support to debug printing subsystem. | 1412 // Enables support to debug printing subsystem. |
| 1410 const char kDebugPrint[] = "debug-print"; | 1413 const char kDebugPrint[] = "debug-print"; |
| 1411 #endif | 1414 #endif |
| 1412 | 1415 |
| 1413 #ifndef NDEBUG | 1416 #ifndef NDEBUG |
| 1414 // Enables overriding the path of file manager extension. | 1417 // Enables overriding the path of file manager extension. |
| 1415 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; | 1418 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; |
| 1416 #endif | 1419 #endif |
| 1417 | 1420 |
| 1418 // Controls print preview in the browser process. | |
| 1419 #if defined(GOOGLE_CHROME_BUILD) | |
| 1420 // Disables print preview (For testing, and for users who don't like us. :[ ) | |
| 1421 const char kDisablePrintPreview[] = "disable-print-preview"; | |
| 1422 #else | |
| 1423 // Enables print preview. Chromium normally does not have the PDF viewer, | |
| 1424 // required for print preview. | |
| 1425 // pdf.dll or libpdf.so should be present in primary directory of | |
| 1426 // Chromium. For local builds it's usually out/Debug or out/Release. | |
| 1427 const char kEnablePrintPreview[] = "enable-print-preview"; | |
| 1428 #endif | |
| 1429 | |
| 1430 // ----------------------------------------------------------------------------- | 1421 // ----------------------------------------------------------------------------- |
| 1431 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1422 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1432 // | 1423 // |
| 1433 // You were going to just dump your switches here, weren't you? Instead, please | 1424 // You were going to just dump your switches here, weren't you? Instead, please |
| 1434 // put them in alphabetical order above, or in order inside the appropriate | 1425 // put them in alphabetical order above, or in order inside the appropriate |
| 1435 // ifdef at the bottom. The order should match the header. | 1426 // ifdef at the bottom. The order should match the header. |
| 1436 // ----------------------------------------------------------------------------- | 1427 // ----------------------------------------------------------------------------- |
| 1437 | 1428 |
| 1438 } // namespace switches | 1429 } // namespace switches |
| OLD | NEW |