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

Unified Diff: content/common/media/audio_messages.h

Issue 1211273005: Use safer IPC serializations in media_param_traits.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try harder to force invalid enum values Created 5 years, 6 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
Index: content/common/media/audio_messages.h
diff --git a/content/common/media/audio_messages.h b/content/common/media/audio_messages.h
index bfa51da1b77aa42bebb8f1965984ff00fccce34a..d3df85976fe0decab8fd53e43f511891b8e431ed 100644
--- a/content/common/media/audio_messages.h
+++ b/content/common/media/audio_messages.h
@@ -31,6 +31,11 @@ IPC_ENUM_TRAITS_MAX_VALUE(media::AudioOutputIPCDelegateState,
IPC_ENUM_TRAITS_MAX_VALUE(media::SwitchOutputDeviceResult,
media::SWITCH_OUTPUT_DEVICE_RESULT_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format,
+ media::AudioParameters::AUDIO_FORMAT_LAST)
+
+IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX)
+
IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config)
IPC_STRUCT_MEMBER(media::AudioParameters, params)
IPC_STRUCT_MEMBER(bool, automatic_gain_control)

Powered by Google App Engine
This is Rietveld 408576698