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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 const char kEnableSyncCredentialCaching[] = "enable-sync-credential-caching"; | 1533 const char kEnableSyncCredentialCaching[] = "enable-sync-credential-caching"; |
1534 | 1534 |
1535 // For the DelegateExecute verb handler to launch Chrome in metro mode on | 1535 // For the DelegateExecute verb handler to launch Chrome in metro mode on |
1536 // Windows 8 and higher. Used when relaunching metro Chrome. | 1536 // Windows 8 and higher. Used when relaunching metro Chrome. |
1537 const char kForceImmersive[] = "force-immersive"; | 1537 const char kForceImmersive[] = "force-immersive"; |
1538 | 1538 |
1539 // For the DelegateExecute verb handler to launch Chrome in desktop mode on | 1539 // For the DelegateExecute verb handler to launch Chrome in desktop mode on |
1540 // Windows 8 and higher. Used when relaunching metro Chrome. | 1540 // Windows 8 and higher. Used when relaunching metro Chrome. |
1541 const char kForceDesktop[] = "force-desktop"; | 1541 const char kForceDesktop[] = "force-desktop"; |
1542 | 1542 |
| 1543 // Allows for disabling the overlapped I/O for TCP reads. |
| 1544 // Possible values are "on" or "off". |
| 1545 // The default is "on" which matches the existing behavior. |
| 1546 // "off" switches to use non-blocking reads and WSAEventSelect. |
| 1547 const char kOverlappedRead[] = "overlapped-reads"; |
| 1548 |
1543 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut. | 1549 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut. |
1544 const char kRelaunchShortcut[] = "relaunch-shortcut"; | 1550 const char kRelaunchShortcut[] = "relaunch-shortcut"; |
1545 | 1551 |
1546 // Waits for the given handle to be signaled before relaunching metro Chrome on | 1552 // Waits for the given handle to be signaled before relaunching metro Chrome on |
1547 // Windows 8 and higher. | 1553 // Windows 8 and higher. |
1548 const char kWaitForMutex[] = "wait-for-mutex"; | 1554 const char kWaitForMutex[] = "wait-for-mutex"; |
1549 #endif | 1555 #endif |
1550 | 1556 |
1551 #if defined(USE_AURA) | 1557 #if defined(USE_AURA) |
1552 // Opens an Ash window on startup. | 1558 // Opens an Ash window on startup. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1594 return true; | 1600 return true; |
1595 #elif defined(OS_WIN) | 1601 #elif defined(OS_WIN) |
1596 return true; | 1602 return true; |
1597 #else | 1603 #else |
1598 return CommandLine::ForCurrentProcess()->HasSwitch( | 1604 return CommandLine::ForCurrentProcess()->HasSwitch( |
1599 switches::kEnableFramelessConstrainedDialogs); | 1605 switches::kEnableFramelessConstrainedDialogs); |
1600 #endif | 1606 #endif |
1601 } | 1607 } |
1602 | 1608 |
1603 } // namespace chrome | 1609 } // namespace chrome |
OLD | NEW |