Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: content/renderer/pepper/pepper_flash_host.h

Issue 11016007: Implement host side of sync EnumerateVideoCaptureDevices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/renderer/pepper/content_renderer_pepper_host_factory.cc ('k') | content/renderer/pepper/pepper_flash_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698