Index: content/renderer/media/encoding_video_capture_message_filter.h |
diff --git a/content/renderer/media/encoding_video_capture_message_filter.h b/content/renderer/media/encoding_video_capture_message_filter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..66f9fa4c330d31a89a76aae349b476238f47759b |
--- /dev/null |
+++ b/content/renderer/media/encoding_video_capture_message_filter.h |
@@ -0,0 +1,62 @@ |
+#ifndef CONTENT_RENDERER_MEDIA_ENCODING_VIDEO_CAPTURE_MESSAGE_FILTER_H_ |
+#define CONTENT_RENDERER_MEDIA_ENCODING_VIDEO_CAPTURE_MESSAGE_FILTER_H_ |
+ |
+#include <vector> |
+ |
+#include "content/common/content_export.h" |
+#include "media/base/encoded_bitstream_buffer.h" |
+#include "media/video/video_encode_types.h" |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT EncodingVideoCaptureMessageFilter { |
Ami GONE FROM CHROMIUM
2013/06/08 00:18:01
doco: what's the purpose of this interface?
This i
hshi1
2013/06/11 19:51:22
I'm removing this header and its .cc file. The enc
|
+ public: |
+ class CONTENT_EXPORT Delegate { |
+ public: |
+ virtual void OnCapabilityAvailable( |
+ const media::VideoEncodingCapability& capability) = 0; |
+ virtual void OnBitstreamCreated( |
+ int stream_id, |
+ const media::VideoEncodingParameters& params, |
+ const std::map<int, base::SharedMemoryHandle>& buffers) = 0; |
+ virtual void OnBitstreamDestroyed(int stream_id) = 0; |
+ virtual void OnBitstreamConfigChanged( |
+ int stream_id, |
+ const media::RuntimeVideoEncodingParameters& params) = 0; |
+ virtual void OnBitstreamReady( |
+ int stream_id, |
+ int buffer_id, |
+ size_t size, |
+ const media::BufferEncodingMetadata& metadata) = 0; |
+ }; |
+ |
+ protected: |
+ EncodingVideoCaptureMessageFilter(); |
+ virtual ~EncodingVideoCaptureMessageFilter(); |
+ |
+ // Accessor for delegate that base class must implement. |
+ virtual Delegate* delegate(int device_id) = 0; |
+ |
+ // Handlers for incoming IPC messages. |
+ void OnCapabilityAvailable(int device_id, |
+ media::VideoEncodingCapability capability); |
+ void OnBitstreamCreated(int device_id, |
+ int stream_id, |
+ media::VideoEncodingParameters params, |
+ std::map<int, base::SharedMemoryHandle> buffers); |
+ void OnBitstreamDestroyed(int device_id, |
+ int stream_id); |
+ void OnBitstreamConfigChanged(int device_id, |
+ int stream_id, |
+ media::RuntimeVideoEncodingParameters params); |
+ void OnBitstreamReady(int device_id, |
+ int stream_id, |
+ int buffer_id, |
+ size_t size, |
+ media::BufferEncodingMetadata metadata); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_RENDERER_MEDIA_ENCODING_VIDEO_CAPTURE_MESSAGE_FILTER_H_ |
+ |