Move VideoDecoderVp8 to VideoDecoderVpx base that will support VP8/9.
BUG=260879
Review URL: https://codereview.chromium.org/26888009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229624 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/remoting/codec/scoped_vpx_codec.h b/remoting/codec/scoped_vpx_codec.h
new file mode 100644
index 0000000..bf03c64
--- /dev/null
+++ b/remoting/codec/scoped_vpx_codec.h
@@ -0,0 +1,24 @@
+// 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.
+
+#ifndef REMOTING_CODEC_SCOPED_VPX_CODEC_H_
+#define REMOTING_CODEC_SCOPED_VPX_CODEC_H_
+
+#include "base/memory/scoped_ptr.h"
+
+extern "C" {
+typedef struct vpx_codec_ctx vpx_codec_ctx_t;
+}
+
+namespace remoting {
+
+struct VpxCodecDeleter {
+ void operator()(vpx_codec_ctx_t* codec);
+};
+
+typedef scoped_ptr<vpx_codec_ctx_t, VpxCodecDeleter> ScopedVpxCodec;
+
+} // namespace remoting
+
+#endif // REMOTING_CODEC_SCOPED_VPX_CODEC_H_