| Index: content/browser/renderer_host/media/video_capture_host.cc
|
| diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc
|
| index 8e7231c46d13f7fa3fb0f2d8743e3fddd3617b5b..aa152a4f743d05b28c3fbb4db778ff976b6d08f5 100644
|
| --- a/content/browser/renderer_host/media/video_capture_host.cc
|
| +++ b/content/browser/renderer_host/media/video_capture_host.cc
|
| @@ -1,4 +1,4 @@
|
| -// 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.
|
|
|
| @@ -10,6 +10,7 @@
|
| #include "content/browser/browser_main_loop.h"
|
| #include "content/browser/renderer_host/media/media_stream_manager.h"
|
| #include "content/browser/renderer_host/media/video_capture_manager.h"
|
| +#include "content/common/media/encoded_video_source_messages.h"
|
| #include "content/common/media/video_capture_messages.h"
|
|
|
| namespace content {
|
| @@ -171,6 +172,17 @@ bool VideoCaptureHost::OnMessageReceived(const IPC::Message& message,
|
| IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_Pause, OnPauseCapture)
|
| IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_Stop, OnStopCapture)
|
| IPC_MESSAGE_HANDLER(VideoCaptureHostMsg_BufferReady, OnReceiveEmptyBuffer)
|
| + // Messages for encoding support
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceHostMsg_CreateBitstream,
|
| + OnCreateBitstream)
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceHostMsg_BitstreamBufferConsumed,
|
| + OnBitstreamBufferConsumed)
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceHostMsg_DestroyBitstream,
|
| + OnDestroyBitstream)
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceHostMsg_TryConfigureBitstream,
|
| + OnTryConfigureBitstream)
|
| + IPC_MESSAGE_HANDLER(EncodedVideoSourceHostMsg_RequestSpecialFrame,
|
| + OnRequestSpecialFrame)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP_EX()
|
|
|
| @@ -279,4 +291,32 @@ VideoCaptureManager* VideoCaptureHost::GetVideoCaptureManager() {
|
| return BrowserMainLoop::GetMediaStreamManager()->video_capture_manager();
|
| }
|
|
|
| +void VideoCaptureHost::OnCreateBitstream(
|
| + int device_id, int stream_id, media::VideoEncodingParameters params) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| +void VideoCaptureHost::OnBitstreamBufferConsumed(int device_id,
|
| + int stream_id,
|
| + int buffer_id) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| +void VideoCaptureHost::OnDestroyBitstream(int device_id, int stream_id) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| +void VideoCaptureHost::OnTryConfigureBitstream(
|
| + int device_id,
|
| + int stream_id,
|
| + media::RuntimeVideoEncodingParameters params) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| +void VideoCaptureHost::OnRequestSpecialFrame(int device_id,
|
| + int stream_id,
|
| + int flags) {
|
| + // TODO(vmr): Implementation and security review.
|
| +}
|
| +
|
| } // namespace content
|
|
|