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

Side by Side Diff: ppapi/proxy/ppb_flash_message_loop_proxy.h

Issue 9188045: Introduce PPB_Flash_MessageLoop interface for Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use base::Callback instead of PP_CompletionCallback in RunFromHostProxy(). Created 8 years, 10 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
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_flash_message_loop_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
6 #define PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/proxy/interface_proxy.h"
15
16 namespace IPC {
17 class Message;
18 }
19
20 namespace ppapi {
21
22 class HostResource;
23
24 namespace proxy {
25
26 class PPB_Flash_MessageLoop_Proxy
27 : public InterfaceProxy,
28 public base::SupportsWeakPtr<PPB_Flash_MessageLoop_Proxy> {
29 public:
30 explicit PPB_Flash_MessageLoop_Proxy(Dispatcher* dispatcher);
31 virtual ~PPB_Flash_MessageLoop_Proxy();
32
33 static PP_Resource CreateProxyResource(PP_Instance instance);
34
35 // InterfaceProxy implementation.
36 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
37
38 private:
39 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* resource);
40 void OnMsgRun(const ppapi::HostResource& flash_message_loop,
41 IPC::Message* reply);
42 void OnMsgQuit(const ppapi::HostResource& flash_message_loop);
43
44 void WillQuitSoon(scoped_ptr<IPC::Message> reply_message, int32_t result);
45
46 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_MessageLoop_Proxy);
47 };
48
49 } // namespace proxy
50 } // namespace ppapi
51
52 #endif // PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_flash_message_loop_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698