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

Unified Diff: content/browser/renderer_host/media/video_capture_host.h

Issue 12379011: Interfaces for encoded video sources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/video_capture_host.h
diff --git a/content/browser/renderer_host/media/video_capture_host.h b/content/browser/renderer_host/media/video_capture_host.h
index 4f2f8cd9c58998c3e2a6a0cc90b9e88b3564461e..95c214152f4ff373d66e0891f10289feed94af56 100644
--- a/content/browser/renderer_host/media/video_capture_host.h
+++ b/content/browser/renderer_host/media/video_capture_host.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2013 The Chromium Authors. All rights reserved.
tommi (sloooow) - chröme 2013/03/21 14:48:05 don't think we're supposed to change copyright yea
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
@@ -44,6 +44,7 @@
#include "content/common/content_export.h"
#include "content/public/browser/browser_message_filter.h"
#include "ipc/ipc_message.h"
+#include "media/video/video_encode_types.h"
namespace content {
@@ -137,6 +138,17 @@ class CONTENT_EXPORT VideoCaptureHost
// the unit tests can inject their own MediaStreamManager.
virtual VideoCaptureManager* GetVideoCaptureManager();
+ // Encoded video source message handlers.
+ void OnCreateBitstream(int device_id,
+ int stream_id,
+ media::VideoEncodingParameters params);
+ void OnBitstreamBufferConsumed(int device_id, int stream_id, int buffer_id);
+ void OnDestroyBitstream(int device_id, int stream_id);
+ void OnTryConfigureBitstream(int device_id,
+ int stream_id,
+ media::RuntimeVideoEncodingParameters params);
+ void OnRequestSpecialFrame(int device_id, int stream_id, int flags);
+
struct Entry;
typedef std::map<VideoCaptureControllerID, Entry*> EntryMap;
// A map of VideoCaptureControllerID to its state and VideoCaptureController.

Powered by Google App Engine
This is Rietveld 408576698