OLD | NEW |
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 #include "base/memory/shared_memory.h" | 5 #include "base/memory/shared_memory.h" |
6 #include "content/common/content_export.h" | 6 #include "content/common/content_export.h" |
7 #include "content/common/media/video_capture.h" | 7 #include "content/common/media/video_capture.h" |
8 #include "content/public/common/common_param_traits.h" | 8 #include "content/public/common/common_param_traits.h" |
9 #include "gpu/command_buffer/common/mailbox_holder.h" | 9 #include "gpu/command_buffer/common/mailbox_holder.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
11 #include "media/video/capture/video_capture_types.h" | 11 #include "media/video/capture/video_capture_types.h" |
12 | 12 |
13 #undef IPC_MESSAGE_EXPORT | 13 #undef IPC_MESSAGE_EXPORT |
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
15 #define IPC_MESSAGE_START VideoCaptureMsgStart | 15 #define IPC_MESSAGE_START VideoCaptureMsgStart |
16 | 16 |
17 IPC_ENUM_TRAITS_MAX_VALUE(content::VideoCaptureState, | 17 IPC_ENUM_TRAITS_MAX_VALUE(content::VideoCaptureState, |
18 content::VIDEO_CAPTURE_STATE_LAST) | 18 content::VIDEO_CAPTURE_STATE_LAST) |
19 | 19 |
| 20 IPC_ENUM_TRAITS_MAX_VALUE(media::ResolutionChangePolicy, |
| 21 media::RESOLUTION_POLICY_LAST) |
| 22 |
20 IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureParams) | 23 IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureParams) |
21 IPC_STRUCT_TRAITS_MEMBER(requested_format) | 24 IPC_STRUCT_TRAITS_MEMBER(requested_format) |
22 IPC_STRUCT_TRAITS_MEMBER(allow_resolution_change) | 25 IPC_STRUCT_TRAITS_MEMBER(resolution_change_policy) |
23 IPC_STRUCT_TRAITS_END() | 26 IPC_STRUCT_TRAITS_END() |
24 | 27 |
25 // TODO(nick): device_id in these messages is basically just a route_id. We | 28 // TODO(nick): device_id in these messages is basically just a route_id. We |
26 // should shift to IPC_MESSAGE_ROUTED and use MessageRouter in the filter impls. | 29 // should shift to IPC_MESSAGE_ROUTED and use MessageRouter in the filter impls. |
27 | 30 |
28 // Notify the renderer process about the state update such as | 31 // Notify the renderer process about the state update such as |
29 // Start/Pause/Stop. | 32 // Start/Pause/Stop. |
30 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_StateChanged, | 33 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_StateChanged, |
31 int /* device id */, | 34 int /* device id */, |
32 content::VideoCaptureState /* new state */) | 35 content::VideoCaptureState /* new state */) |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 100 |
98 // Get the formats supported by a device referenced by |capture_session_id|. | 101 // Get the formats supported by a device referenced by |capture_session_id|. |
99 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, | 102 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, |
100 int /* device_id */, | 103 int /* device_id */, |
101 media::VideoCaptureSessionId /* session_id */) | 104 media::VideoCaptureSessionId /* session_id */) |
102 | 105 |
103 // Get the format(s) in use by a device referenced by |capture_session_id|. | 106 // Get the format(s) in use by a device referenced by |capture_session_id|. |
104 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, | 107 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, |
105 int /* device_id */, | 108 int /* device_id */, |
106 media::VideoCaptureSessionId /* session_id */) | 109 media::VideoCaptureSessionId /* session_id */) |
OLD | NEW |