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

Side by Side Diff: content/common/media/media_stream_messages.h

Issue 17253003: Use validating param traits for MediaStreamType enum (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 // IPC messages for the media streaming. 5 // IPC messages for the media streaming.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/media/media_stream_options.h" 11 #include "content/common/media/media_stream_options.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 14
15 #undef IPC_MESSAGE_EXPORT 15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 #define IPC_MESSAGE_START MediaStreamMsgStart 17 #define IPC_MESSAGE_START MediaStreamMsgStart
18 18
19 IPC_ENUM_TRAITS(content::MediaStreamType) 19 IPC_ENUM_TRAITS_MAX_VALUE(content::MediaStreamType,
20 content::NUM_MEDIA_TYPES - 1)
20 21
21 IPC_STRUCT_TRAITS_BEGIN(content::StreamOptions) 22 IPC_STRUCT_TRAITS_BEGIN(content::StreamOptions)
22 IPC_STRUCT_TRAITS_MEMBER(audio_type) 23 IPC_STRUCT_TRAITS_MEMBER(audio_type)
23 IPC_STRUCT_TRAITS_MEMBER(audio_device_id) 24 IPC_STRUCT_TRAITS_MEMBER(audio_device_id)
24 IPC_STRUCT_TRAITS_MEMBER(video_type) 25 IPC_STRUCT_TRAITS_MEMBER(video_type)
25 IPC_STRUCT_TRAITS_MEMBER(video_device_id) 26 IPC_STRUCT_TRAITS_MEMBER(video_device_id)
26 IPC_STRUCT_TRAITS_END() 27 IPC_STRUCT_TRAITS_END()
27 28
28 IPC_STRUCT_TRAITS_BEGIN(content::StreamDeviceInfo) 29 IPC_STRUCT_TRAITS_BEGIN(content::StreamDeviceInfo)
29 IPC_STRUCT_TRAITS_MEMBER(device.type) 30 IPC_STRUCT_TRAITS_MEMBER(device.type)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 content::MediaStreamType /* type */, 97 content::MediaStreamType /* type */,
97 GURL /* security origin */) 98 GURL /* security origin */)
98 99
99 // Request to open the device. 100 // Request to open the device.
100 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_OpenDevice, 101 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_OpenDevice,
101 int /* render view id */, 102 int /* render view id */,
102 int /* request id */, 103 int /* request id */,
103 std::string /* device_id */, 104 std::string /* device_id */,
104 content::MediaStreamType /* type */, 105 content::MediaStreamType /* type */,
105 GURL /* security origin */) 106 GURL /* security origin */)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698