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

Unified Diff: net/base/net_util.h

Issue 149193002: Apply automatic range checking for enums across p2p_messages IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/p2p_socket_type.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index fe918443c0251d01c803c9eb1165471af181b977..909233de1fd191bee29a2b2d573e5df6c1ac71f0 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -574,6 +574,7 @@ unsigned MaskPrefixLength(const IPAddressNumber& mask);
// See http://tools.ietf.org/html/rfc2474 for details.
enum DiffServCodePoint {
DSCP_NO_CHANGE = -1,
+ DSCP_FIRST = DSCP_NO_CHANGE,
DSCP_DEFAULT = 0, // Same as DSCP_CS0
DSCP_CS0 = 0, // The default
DSCP_CS1 = 8, // Bulk/background traffic
@@ -596,6 +597,7 @@ enum DiffServCodePoint {
DSCP_EF = 46, // Voice
DSCP_CS6 = 48, // Voice
DSCP_CS7 = 56, // Control messages
+ DSCP_LAST = DSCP_CS7
};
} // namespace net
« no previous file with comments | « content/public/common/p2p_socket_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698