Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: net/base/net_util.h

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use GQoS on windows Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/p2p/socket_client.cc ('k') | net/dns/mock_mdns_socket_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
541 // See http://tools.ietf.org/html/rfc2474 for details.
542 enum DiffServCodePoint {
Mallinath (Gone from Chromium) 2013/09/12 17:30:33 Is it possible to use the values defined in ip.h (
hubbe 2013/09/24 17:10:26 netinet/ip.h seems to use old TOS terminology, whi
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_
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_client.cc ('k') | net/dns/mock_mdns_socket_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698