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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Pause the video capture specified by |device_id|. | 82 // Pause the video capture specified by |device_id|. |
83 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, | 83 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, |
84 int /* device_id */) | 84 int /* device_id */) |
85 | 85 |
86 // Close the video capture specified by |device_id|. | 86 // Close the video capture specified by |device_id|. |
87 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, | 87 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, |
88 int /* device_id */) | 88 int /* device_id */) |
89 | 89 |
90 // Tell the browser process that the renderer has finished reading from | 90 // Tell the browser process that the renderer has finished reading from |
91 // a buffer previously delivered by VideoCaptureMsg_BufferReady. | 91 // a buffer previously delivered by VideoCaptureMsg_BufferReady. |
| 92 // Define SyncPoints so that macro compiler considers std::map as one argument. |
| 93 // See http://www.boost.org/doc/libs/1_48_0/doc/html/foreach/pitfalls.html |
| 94 typedef std::map<std::string, uint32> SyncPoints; |
92 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady, | 95 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady, |
93 int /* device_id */, | 96 int /* device_id */, |
94 int /* buffer_id */, | 97 int /* buffer_id */, |
95 std::vector<uint32> /* syncpoints */) | 98 SyncPoints) |
96 | 99 |
97 // Get the formats supported by a device referenced by |capture_session_id|. | 100 // Get the formats supported by a device referenced by |capture_session_id|. |
98 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, | 101 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, |
99 int /* device_id */, | 102 int /* device_id */, |
100 media::VideoCaptureSessionId /* session_id */) | 103 media::VideoCaptureSessionId /* session_id */) |
101 | 104 |
102 // Get the format(s) in use by a device referenced by |capture_session_id|. | 105 // Get the format(s) in use by a device referenced by |capture_session_id|. |
103 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, | 106 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, |
104 int /* device_id */, | 107 int /* device_id */, |
105 media::VideoCaptureSessionId /* session_id */) | 108 media::VideoCaptureSessionId /* session_id */) |
OLD | NEW |