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" | |
6 #include "content/common/content_export.h" | 5 #include "content/common/content_export.h" |
7 #include "content/public/common/common_param_traits.h" | |
8 #include "ipc/ipc_message_macros.h" | 6 #include "ipc/ipc_message_macros.h" |
9 | 7 |
10 #undef IPC_MESSAGE_EXPORT | 8 #undef IPC_MESSAGE_EXPORT |
11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 9 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
12 #define IPC_MESSAGE_START VideoCaptureMsgStart | 10 #define IPC_MESSAGE_START VideoCaptureMsgStart |
13 | 11 |
14 // TODO(nick): device_id in these messages is basically just a route_id. We | 12 // TODO(mcasas): Remove this message when the Video Capture IPC communication is |
15 // should shift to IPC_MESSAGE_ROUTED and use MessageRouter in the filter impls. | 13 // completely migrated to Mojo, https://crbug.com/651897. |
16 | 14 IPC_MESSAGE_CONTROL0(VideoCaptureMsg_Noop) |
17 // Tell the renderer process that a new buffer is allocated for video capture. | |
18 IPC_MESSAGE_CONTROL4(VideoCaptureMsg_NewBuffer, | |
19 int /* device id */, | |
20 base::SharedMemoryHandle /* handle */, | |
21 int /* length */, | |
22 int /* buffer_id */) | |
OLD | NEW |