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 "content/common/content_export.h" | |
10 #include "ipc/ipc_message.h" | |
11 #include "ppapi/host/host_message_context.h" | |
12 #include "ppapi/host/resource_host.h" | |
13 #include "ppapi/proxy/proxy_completion_callback_factory.h" | |
14 | |
15 namespace content { | |
16 | |
17 class RendererPpapiHost; | |
18 | |
19 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.
| |
20 : public ppapi::host::ResourceHost { | |
21 public: | |
22 PepperFlashHost(RendererPpapiHost* host, | |
23 PP_Instance instance, | |
24 PP_Resource resource); | |
25 virtual ~PepperFlashHost(); | |
26 | |
27 virtual int32_t OnResourceMessageReceived( | |
28 const IPC::Message& msg, | |
29 ppapi::host::HostMessageContext* context) OVERRIDE; | |
30 | |
31 int32_t OnMsgEnumerateVideoDevicesSync( | |
yzshen1
2012/10/10 18:17:39
Please update the name accordingly.
raymes
2012/10/11 18:39:26
Done.
| |
32 ppapi::host::HostMessageContext* host_context, | |
33 const ppapi::HostResource& host_resource); | |
34 private: | |
35 void OnEnumerateVideoDevicesComplete( | |
yzshen1
2012/10/10 18:17:39
Please add 'Capture' to the name.
raymes
2012/10/11 18:39:26
Done.
| |
36 int32_t result, | |
37 ppapi::host::ReplyMessageContext reply_message_context, | |
38 const ppapi::HostResource& host_resource); | |
39 | |
40 ppapi::proxy::ProxyCompletionCallbackFactory<PepperFlashHost> | |
41 callback_factory_; | |
42 | |
43 DISALLOW_COPY_AND_ASSIGN(PepperFlashHost); | |
44 }; | |
45 | |
46 } // namespace content | |
47 | |
48 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_HOST_H_ | |
OLD | NEW |