#ifndef CONTENT_RENDERER_MEDIA_NATIVE_HANDLE_IMPL_H_
#define CONTENT_RENDERER_MEDIA_NATIVE_HANDLE_IMPL_H_
#include "base/memory/ref_counted.h"
#include "media/base/video_frame.h"
#include "third_party/webrtc/common_video/interface/native_handle.h"
namespace content {
class NativeHandleImpl : public webrtc::NativeHandle {
public:
explicit NativeHandleImpl(scoped_refptr<media::VideoFrame> frame);
virtual ~NativeHandleImpl();
virtual void* GetHandle() OVERRIDE;
private:
scoped_refptr<media::VideoFrame> frame_;
DISALLOW_COPY_AND_ASSIGN(NativeHandleImpl);
};
}
#endif