summaryrefslogtreecommitdiffstats
path: root/ipc/struct_destructor_macros.h
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-04 07:20:32 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-04 07:20:32 +0000
commitdedd0a9e00390f585c41f065d1bff0731bd4a2d8 (patch)
tree114983c99c00a83ceaceb8ec128d29718dbb7bcd /ipc/struct_destructor_macros.h
parentd966f777e418fbae4fef451a104bb1f7f326e434 (diff)
downloadchromium_src-dedd0a9e00390f585c41f065d1bff0731bd4a2d8.zip
chromium_src-dedd0a9e00390f585c41f065d1bff0731bd4a2d8.tar.gz
chromium_src-dedd0a9e00390f585c41f065d1bff0731bd4a2d8.tar.bz2
Implement off-the-wire validation scheme for emum types.
This CL adds explicit IPC macros that can be used to ensure that the values being read off the wire are legitimate for the enum type. BUG=176110 R=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/15841011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/struct_destructor_macros.h')
-rw-r--r--ipc/struct_destructor_macros.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipc/struct_destructor_macros.h b/ipc/struct_destructor_macros.h
index 13fce2d..ccb46f9 100644
--- a/ipc/struct_destructor_macros.h
+++ b/ipc/struct_destructor_macros.h
@@ -9,11 +9,9 @@
#include "ipc/ipc_message_null_macros.h"
// Set up so next include will generate destructors.
-#undef IPC_STRUCT_BEGIN
#undef IPC_STRUCT_BEGIN_WITH_PARENT
#define IPC_STRUCT_BEGIN_WITH_PARENT(struct_name, parent) \
- IPC_STRUCT_BEGIN(struct_name)
-#define IPC_STRUCT_BEGIN(struct_name) struct_name::~struct_name() {}
+ struct_name::~struct_name() {}
#endif // IPC_STRUCT_DESTRUCTOR_MACROS_H_