Chromium Code Reviews| 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 #ifndef NET_BASE_NET_UTIL_H_ | 5 #ifndef NET_BASE_NET_UTIL_H_ |
| 6 #define NET_BASE_NET_UTIL_H_ | 6 #define NET_BASE_NET_UTIL_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 530 // 802.11n, HT rates. | 530 // 802.11n, HT rates. |
| 531 WIFI_PHY_LAYER_PROTOCOL_N, | 531 WIFI_PHY_LAYER_PROTOCOL_N, |
| 532 // Unclassified mode or failure to identify. | 532 // Unclassified mode or failure to identify. |
| 533 WIFI_PHY_LAYER_PROTOCOL_UNKNOWN | 533 WIFI_PHY_LAYER_PROTOCOL_UNKNOWN |
| 534 }; | 534 }; |
| 535 | 535 |
| 536 // Characterize the PHY mode of the currently associated access point. | 536 // Characterize the PHY mode of the currently associated access point. |
| 537 // Currently only available on OS_WIN. | 537 // Currently only available on OS_WIN. |
| 538 NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol(); | 538 NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol(); |
| 539 | 539 |
| 540 // Differentiated Services Code Point, replaces the old IP_TOS flags. | |
|
cbentzel
2013/08/21 22:00:20
It's a little confusing to specify "replaces IP_TO
hubbe
2013/08/22 23:41:02
Done.
| |
| 541 // See http://tools.ietf.org/html/rfc2474 for details. | |
| 542 enum DiffServCodePoint { | |
| 543 DSCP_NO_CHANGE = -1, | |
| 544 DSCP_DEFAULT = 0, // Same as DSCP_CS0 | |
| 545 DSCP_CS0 = 0, // The default | |
| 546 DSCP_CS1 = 8, // Bulk/background traffic | |
| 547 DSCP_AF11 = 10, | |
| 548 DSCP_AF12 = 12, | |
| 549 DSCP_AF13 = 14, | |
| 550 DSCP_CS2 = 16, | |
| 551 DSCP_AF21 = 18, | |
| 552 DSCP_AF22 = 20, | |
| 553 DSCP_AF23 = 22, | |
| 554 DSCP_CS3 = 24, | |
| 555 DSCP_AF31 = 26, | |
| 556 DSCP_AF32 = 28, | |
| 557 DSCP_AF33 = 30, | |
| 558 DSCP_CS4 = 32, | |
| 559 DSCP_AF41 = 34, // Video | |
| 560 DSCP_AF42 = 36, // Video | |
| 561 DSCP_AF43 = 38, // Video | |
| 562 DSCP_CS5 = 40, // Video | |
| 563 DSCP_EF = 46, // Voice | |
| 564 DSCP_CS6 = 48, // Voice | |
| 565 DSCP_CS7 = 56, // Control messages | |
| 566 }; | |
| 567 | |
| 540 } // namespace net | 568 } // namespace net |
| 541 | 569 |
| 542 #endif // NET_BASE_NET_UTIL_H_ | 570 #endif // NET_BASE_NET_UTIL_H_ |
| OLD | NEW |