OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FLASH_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FLASH_HOST_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "ipc/ipc_message.h" |
| 10 #include "ppapi/host/host_message_context.h" |
| 11 #include "ppapi/host/resource_host.h" |
| 12 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class RendererPpapiHost; |
| 17 |
| 18 class PepperFlashHost |
| 19 : public ppapi::host::ResourceHost { |
| 20 public: |
| 21 PepperFlashHost(RendererPpapiHost* host, |
| 22 PP_Instance instance, |
| 23 PP_Resource resource); |
| 24 virtual ~PepperFlashHost(); |
| 25 |
| 26 virtual int32_t OnResourceMessageReceived( |
| 27 const IPC::Message& msg, |
| 28 ppapi::host::HostMessageContext* context) OVERRIDE; |
| 29 |
| 30 int32_t OnMsgEnumerateVideoCaptureDevices( |
| 31 ppapi::host::HostMessageContext* host_context, |
| 32 const ppapi::HostResource& host_resource); |
| 33 private: |
| 34 void OnEnumerateVideoCaptureDevicesComplete( |
| 35 int32_t result, |
| 36 ppapi::host::ReplyMessageContext reply_message_context, |
| 37 const ppapi::HostResource& host_resource); |
| 38 |
| 39 ppapi::proxy::ProxyCompletionCallbackFactory<PepperFlashHost> |
| 40 callback_factory_; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(PepperFlashHost); |
| 43 }; |
| 44 |
| 45 } // namespace content |
| 46 |
| 47 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_HOST_H_ |
OLD | NEW |