Chromium Code Reviews| Index: content/renderer/pepper/pepper_flash_host.h |
| diff --git a/content/renderer/pepper/pepper_flash_host.h b/content/renderer/pepper/pepper_flash_host.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d138639e38c4cb18d72dda870c4bf709397e4c3e |
| --- /dev/null |
| +++ b/content/renderer/pepper/pepper_flash_host.h |
| @@ -0,0 +1,48 @@ |
| +// Copyright (c) 2012 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_FLASH_HOST_H_ |
| +#define CONTENT_RENDERER_PEPPER_PEPPER_FLASH_HOST_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "content/common/content_export.h" |
| +#include "ipc/ipc_message.h" |
| +#include "ppapi/host/host_message_context.h" |
| +#include "ppapi/host/resource_host.h" |
| +#include "ppapi/proxy/proxy_completion_callback_factory.h" |
| + |
| +namespace content { |
| + |
| +class RendererPpapiHost; |
| + |
| +class CONTENT_EXPORT PepperFlashHost |
|
yzshen1
2012/10/10 18:17:39
Do we need to export it?
raymes
2012/10/11 18:39:26
Done.
|
| + : public ppapi::host::ResourceHost { |
| + public: |
| + PepperFlashHost(RendererPpapiHost* host, |
| + PP_Instance instance, |
| + PP_Resource resource); |
| + virtual ~PepperFlashHost(); |
| + |
| + virtual int32_t OnResourceMessageReceived( |
| + const IPC::Message& msg, |
| + ppapi::host::HostMessageContext* context) OVERRIDE; |
| + |
| + int32_t OnMsgEnumerateVideoDevicesSync( |
|
yzshen1
2012/10/10 18:17:39
Please update the name accordingly.
raymes
2012/10/11 18:39:26
Done.
|
| + ppapi::host::HostMessageContext* host_context, |
| + const ppapi::HostResource& host_resource); |
| + private: |
| + void OnEnumerateVideoDevicesComplete( |
|
yzshen1
2012/10/10 18:17:39
Please add 'Capture' to the name.
raymes
2012/10/11 18:39:26
Done.
|
| + int32_t result, |
| + ppapi::host::ReplyMessageContext reply_message_context, |
| + const ppapi::HostResource& host_resource); |
| + |
| + ppapi::proxy::ProxyCompletionCallbackFactory<PepperFlashHost> |
| + callback_factory_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PepperFlashHost); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_HOST_H_ |