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" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // process. The session to be started is determined by |params.session_id|. | 80 // process. The session to be started is determined by |params.session_id|. |
81 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start, | 81 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start, |
82 int /* device_id */, | 82 int /* device_id */, |
83 media::VideoCaptureSessionId, /* session_id */ | 83 media::VideoCaptureSessionId, /* session_id */ |
84 media::VideoCaptureParams /* params */) | 84 media::VideoCaptureParams /* params */) |
85 | 85 |
86 // Pause the video capture specified by |device_id|. | 86 // Pause the video capture specified by |device_id|. |
87 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, | 87 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, |
88 int /* device_id */) | 88 int /* device_id */) |
89 | 89 |
| 90 // Resume the video capture specified by |device_id|, |session_id| and |
| 91 // |params|. |
| 92 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Resume, |
| 93 int, /* device_id */ |
| 94 media::VideoCaptureSessionId, /* session_id */ |
| 95 media::VideoCaptureParams /* params */) |
| 96 |
90 // Close the video capture specified by |device_id|. | 97 // Close the video capture specified by |device_id|. |
91 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, | 98 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, |
92 int /* device_id */) | 99 int /* device_id */) |
93 | 100 |
94 // Tell the browser process that the renderer has finished reading from | 101 // Tell the browser process that the renderer has finished reading from |
95 // a buffer previously delivered by VideoCaptureMsg_BufferReady. | 102 // a buffer previously delivered by VideoCaptureMsg_BufferReady. |
96 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady, | 103 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady, |
97 int /* device_id */, | 104 int /* device_id */, |
98 int /* buffer_id */, | 105 int /* buffer_id */, |
99 uint32 /* syncpoint */) | 106 uint32 /* syncpoint */) |
100 | 107 |
101 // Get the formats supported by a device referenced by |capture_session_id|. | 108 // Get the formats supported by a device referenced by |capture_session_id|. |
102 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, | 109 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, |
103 int /* device_id */, | 110 int /* device_id */, |
104 media::VideoCaptureSessionId /* session_id */) | 111 media::VideoCaptureSessionId /* session_id */) |
105 | 112 |
106 // Get the format(s) in use by a device referenced by |capture_session_id|. | 113 // Get the format(s) in use by a device referenced by |capture_session_id|. |
107 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, | 114 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, |
108 int /* device_id */, | 115 int /* device_id */, |
109 media::VideoCaptureSessionId /* session_id */) | 116 media::VideoCaptureSessionId /* session_id */) |
OLD | NEW |