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

Unified Diff: content/common/websocket_messages.h

Issue 157023003: Use validating IPC enum macros in websocket messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/common/websocket.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/websocket_messages.h
diff --git a/content/common/websocket_messages.h b/content/common/websocket_messages.h
index dadece4706dbc8606a5f6e35538c60905e7193ef..0781562e755e2612899adfc79c243c3fbdfcee47 100644
--- a/content/common/websocket_messages.h
+++ b/content/common/websocket_messages.h
@@ -26,6 +26,9 @@
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
#define IPC_MESSAGE_START WebSocketMsgStart
+IPC_ENUM_TRAITS_MAX_VALUE(content::WebSocketMessageType,
+ content::WEB_SOCKET_MESSAGE_TYPE_LAST)
+
IPC_STRUCT_TRAITS_BEGIN(content::WebSocketHandshakeRequest)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(headers)
@@ -101,8 +104,6 @@ IPC_MESSAGE_ROUTED1(WebSocketMsg_NotifyFailure,
// WebSocket messages that can be sent in either direction.
-IPC_ENUM_TRAITS(content::WebSocketMessageType)
-
// Send a non-control frame on |channel_id|. If the sender is the renderer, it
// will be sent to the remote server. If the sender is the browser, it comes
// from the remote server. |fin| indicates that this frame is the last in the
« no previous file with comments | « content/common/websocket.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698