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

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

Issue 113263003: Pepper: More interface_list cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/ppp_input_event_proxy.cc ('k') | ppapi/proxy/ppp_instance_private_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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PPP_INSTANCE_PRIVATE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPP_INSTANCE_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPP_INSTANCE_PRIVATE_PROXY_H_ 6 #define PPAPI_PROXY_PPP_INSTANCE_PRIVATE_PROXY_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 #include "ppapi/c/private/ppp_instance_private.h" 11 #include "ppapi/c/private/ppp_instance_private.h"
12 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/shared_impl/host_resource.h" 13 #include "ppapi/shared_impl/host_resource.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 namespace proxy { 16 namespace proxy {
17 17
18 class SerializedVarReturnValue; 18 class SerializedVarReturnValue;
19 19
20 class PPP_Instance_Private_Proxy : public InterfaceProxy { 20 class PPP_Instance_Private_Proxy : public InterfaceProxy {
21 public: 21 public:
22 PPP_Instance_Private_Proxy(Dispatcher* dispatcher); 22 PPP_Instance_Private_Proxy(Dispatcher* dispatcher);
23 virtual ~PPP_Instance_Private_Proxy(); 23 virtual ~PPP_Instance_Private_Proxy();
24 24
25 static const Info* GetInfo(); 25 static const PPP_Instance_Private* GetProxyInterface();
26 26
27 private: 27 private:
28 // InterfaceProxy implementation. 28 // InterfaceProxy implementation.
29 virtual bool OnMessageReceived(const IPC::Message& msg); 29 virtual bool OnMessageReceived(const IPC::Message& msg);
30 30
31 // Message handlers. 31 // Message handlers.
32 void OnMsgGetInstanceObject(PP_Instance instance, 32 void OnMsgGetInstanceObject(PP_Instance instance,
33 SerializedVarReturnValue result); 33 SerializedVarReturnValue result);
34 34
35 // When this proxy is in the plugin side, this value caches the interface 35 // When this proxy is in the plugin side, this value caches the interface
36 // pointer so we don't have to retrieve it from the dispatcher each time. 36 // pointer so we don't have to retrieve it from the dispatcher each time.
37 // In the host, this value is always NULL. 37 // In the host, this value is always NULL.
38 const PPP_Instance_Private* ppp_instance_private_impl_; 38 const PPP_Instance_Private* ppp_instance_private_impl_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(PPP_Instance_Private_Proxy); 40 DISALLOW_COPY_AND_ASSIGN(PPP_Instance_Private_Proxy);
41 }; 41 };
42 42
43 } // namespace proxy 43 } // namespace proxy
44 } // namespace ppapi 44 } // namespace ppapi
45 45
46 #endif // PPAPI_PROXY_PPP_INSTANCE_PRIVATE_PROXY_H_ 46 #endif // PPAPI_PROXY_PPP_INSTANCE_PRIVATE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_input_event_proxy.cc ('k') | ppapi/proxy/ppp_instance_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698