| Index: content/renderer/pepper/pepper_video_writer_host.h
|
| diff --git a/content/renderer/pepper/pepper_video_writer_host.h b/content/renderer/pepper/pepper_video_writer_host.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9f75c1454a1f37d14e531d8ea871d14ca2006c3c
|
| --- /dev/null
|
| +++ b/content/renderer/pepper/pepper_video_writer_host.h
|
| @@ -0,0 +1,46 @@
|
| +// Copyright (c) 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 CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_WRITER_HOST_H_
|
| +#define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_WRITER_HOST_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "content/common/content_export.h"
|
| +#include "ppapi/host/resource_host.h"
|
| +
|
| +namespace content {
|
| +
|
| +class RendererPpapiHost;
|
| +
|
| +class CONTENT_EXPORT PepperVideoWriterHost : public ppapi::host::ResourceHost {
|
| + public:
|
| + PepperVideoWriterHost(RendererPpapiHost* host,
|
| + PP_Instance instance,
|
| + PP_Resource resource);
|
| +
|
| + virtual ~PepperVideoWriterHost();
|
| +
|
| + virtual int32_t OnResourceMessageReceived(
|
| + const IPC::Message& msg,
|
| + ppapi::host::HostMessageContext* context) OVERRIDE;
|
| +
|
| + private:
|
| + int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context);
|
| + int32_t OnHostMsgPutFrame(ppapi::host::HostMessageContext* context,
|
| + const ppapi::HostResource& image_data,
|
| + double timestamp);
|
| + int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context);
|
| +
|
| + RendererPpapiHost* renderer_ppapi_host_;
|
| +
|
| + base::WeakPtrFactory<PepperVideoWriterHost> weak_factory_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(PepperVideoWriterHost);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_WRITER_HOST_H_
|
|
|