| Index: content/renderer/media/video_capture_message_filter.cc
|
| diff --git a/content/renderer/media/video_capture_message_filter.cc b/content/renderer/media/video_capture_message_filter.cc
|
| index 4d59729ba75b1854f680113db4c65fffa9c89940..87f40eb1048854faab5112682b7cfa65a51e5cb3 100644
|
| --- a/content/renderer/media/video_capture_message_filter.cc
|
| +++ b/content/renderer/media/video_capture_message_filter.cc
|
| @@ -1,9 +1,10 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| #include "content/renderer/media/video_capture_message_filter.h"
|
|
|
| +#include "content/common/media/encoded_video_source_messages.h"
|
| #include "content/common/media/video_capture_messages.h"
|
| #include "content/common/view_messages.h"
|
|
|
| @@ -61,6 +62,15 @@ bool VideoCaptureMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
| IPC_MESSAGE_HANDLER(VideoCaptureMsg_StateChanged, OnDeviceStateChanged)
|
| IPC_MESSAGE_HANDLER(VideoCaptureMsg_NewBuffer, OnBufferCreated)
|
| IPC_MESSAGE_HANDLER(VideoCaptureMsg_DeviceInfo, OnDeviceInfoReceived)
|
| + // Encoded video source messages for cameras supporting encoding.
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceMsg_BitstreamCreated,
|
| + OnBitstreamCreated)
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceMsg_BitstreamDestroyed,
|
| + OnBitstreamDestroyed)
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceMsg_BitstreamConfigChanged,
|
| + OnBitstreamConfigChanged)
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceMsg_BitstreamReady,
|
| + OnBitstreamReady)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
| return handled;
|
| @@ -162,4 +172,34 @@ void VideoCaptureMessageFilter::OnDeviceInfoReceived(
|
| delegate->OnDeviceInfoReceived(params);
|
| }
|
|
|
| +void VideoCaptureMessageFilter::OnBitstreamCreated(
|
| + int device_id,
|
| + int stream_id,
|
| + media::VideoEncodingParameters params,
|
| + std::map<int, base::SharedMemoryHandle> buffers) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| +void VideoCaptureMessageFilter::OnBitstreamDestroyed(
|
| + int device_id,
|
| + int stream_id,
|
| + media::EncodedVideoBitstream::DestructionReason reason) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| +void VideoCaptureMessageFilter::OnBitstreamConfigChanged(
|
| + int device_id,
|
| + int stream_id,
|
| + media::RuntimeVideoEncodingParameters params) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| +void VideoCaptureMessageFilter::OnBitstreamReady(
|
| + int device_id,
|
| + int stream_id,
|
| + int buffer_id,
|
| + media::BufferEncodingMetadata metadata) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| } // namespace content
|
|
|