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

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

Issue 2390103002: Reland: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 1 (Closed)
Patch Set: Sorted out tests after linker collision. Rebase Created 4 years, 2 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/video_capture.mojom » ('j') | 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 #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 "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "media/base/video_capture_types.h" 10 #include "media/base/video_capture_types.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 gfx::Size /* dimensions */, 65 gfx::Size /* dimensions */,
66 int /* buffer_id */) 66 int /* buffer_id */)
67 67
68 // Tell the renderer process that it should release a buffer previously 68 // Tell the renderer process that it should release a buffer previously
69 // allocated by VideoCaptureMsg_NewBuffer. 69 // allocated by VideoCaptureMsg_NewBuffer.
70 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer, 70 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer,
71 int /* device id */, 71 int /* device id */,
72 int /* buffer_id */) 72 int /* buffer_id */)
73 73
74 // Tell the renderer process that a Buffer is available from video capture, and 74 // Tell the renderer process that a Buffer is available from video capture, and
75 // send the associated VideoFrame constituient parts as IPC parameters. 75 // send the associated VideoFrame constituent parts as IPC parameters.
76 IPC_MESSAGE_CONTROL1(VideoCaptureMsg_BufferReady, 76 IPC_MESSAGE_CONTROL1(VideoCaptureMsg_BufferReady,
77 VideoCaptureMsg_BufferReady_Params) 77 VideoCaptureMsg_BufferReady_Params)
78 78
79 // Notify the renderer about a device's supported formats; this is a response 79 // Notify the renderer about a device's supported formats; this is a response
80 // to a VideoCaptureHostMsg_GetDeviceSupportedFormats request. 80 // to a VideoCaptureHostMsg_GetDeviceSupportedFormats request.
81 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceSupportedFormatsEnumerated, 81 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceSupportedFormatsEnumerated,
82 int /* device_id */, 82 int /* device_id */,
83 media::VideoCaptureFormats /* supported_formats */) 83 media::VideoCaptureFormats /* supported_formats */)
84 84
85 // Notify the renderer about a device's format(s) in use; this is a response 85 // Notify the renderer about a device's format(s) in use; this is a response
86 // to a VideoCaptureHostMsg_GetDeviceFormatInUse request. 86 // to a VideoCaptureHostMsg_GetDeviceFormatInUse request.
87 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceFormatsInUseReceived, 87 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceFormatsInUseReceived,
88 int /* device_id */, 88 int /* device_id */,
89 media::VideoCaptureFormats /* formats_in_use */) 89 media::VideoCaptureFormats /* formats_in_use */)
90 90
91 // Start a video capture as |device_id|, a new id picked by the renderer 91 // Start a video capture as |device_id|, a new id picked by the renderer
92 // process. The session to be started is determined by |params.session_id|. 92 // process. The session to be started is determined by |params.session_id|.
93 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start, 93 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start,
94 int /* device_id */, 94 int /* device_id */,
95 media::VideoCaptureSessionId, /* session_id */ 95 media::VideoCaptureSessionId, /* session_id */
96 media::VideoCaptureParams /* params */) 96 media::VideoCaptureParams /* params */)
97 97
98 // Pause the video capture specified by |device_id|.
99 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause,
100 int /* device_id */)
101
102 // Resume the video capture specified by |device_id|, |session_id| and 98 // Resume the video capture specified by |device_id|, |session_id| and
103 // |params|. 99 // |params|.
104 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Resume, 100 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Resume,
105 int, /* device_id */ 101 int, /* device_id */
106 media::VideoCaptureSessionId, /* session_id */ 102 media::VideoCaptureSessionId, /* session_id */
107 media::VideoCaptureParams /* params */) 103 media::VideoCaptureParams /* params */)
108 104
109 // Requests that the video capturer send a frame "soon" (e.g., to resolve
110 // picture loss or quality issues).
111 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_RequestRefreshFrame,
112 int /* device_id */)
113
114 // Close the video capture specified by |device_id|.
115 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop,
116 int /* device_id */)
117
118 // Tell the browser process that the renderer has finished reading from 105 // Tell the browser process that the renderer has finished reading from
119 // a buffer previously delivered by VideoCaptureMsg_BufferReady. 106 // a buffer previously delivered by VideoCaptureMsg_BufferReady.
120 IPC_MESSAGE_CONTROL4(VideoCaptureHostMsg_BufferReady, 107 IPC_MESSAGE_CONTROL4(VideoCaptureHostMsg_BufferReady,
121 int /* device_id */, 108 int /* device_id */,
122 int /* buffer_id */, 109 int /* buffer_id */,
123 gpu::SyncToken /* sync_token */, 110 gpu::SyncToken /* sync_token */,
124 double /* consumer_resource_utilization */) 111 double /* consumer_resource_utilization */)
125 112
126 // Get the formats supported by a device referenced by |capture_session_id|. 113 // Get the formats supported by a device referenced by |capture_session_id|.
127 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, 114 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats,
128 int /* device_id */, 115 int /* device_id */,
129 media::VideoCaptureSessionId /* session_id */) 116 media::VideoCaptureSessionId /* session_id */)
130 117
131 // Get the format(s) in use by a device referenced by |capture_session_id|. 118 // Get the format(s) in use by a device referenced by |capture_session_id|.
132 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, 119 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse,
133 int /* device_id */, 120 int /* device_id */,
134 media::VideoCaptureSessionId /* session_id */) 121 media::VideoCaptureSessionId /* session_id */)
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/video_capture.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698