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

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

Issue 4369001: Add proxies for Var deprecated and some additional tracking information. The... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_VAR_PROXY_H_
6 #define PPAPI_PPB_VAR_PROXY_H_
7
8 #include <vector>
9
10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_module.h"
12 #include "ppapi/proxy/interface_proxy.h"
13
14 struct PPB_Var_Deprecated;
15
16 namespace pp {
17 namespace proxy {
18
19 class SerializedVar;
20 class SerializedVarReceiveInput;
21 class SerializedVarVectorOutParam;
22 class SerializedVarVectorReceiveInput;
23 class SerializedVarOutParam;
24 class SerializedVarReturnValue;
25
26 class PPB_Var_Deprecated_Proxy : public InterfaceProxy {
27 public:
28 PPB_Var_Deprecated_Proxy(Dispatcher* dispatcher,
29 const void* target_interface);
30 virtual ~PPB_Var_Deprecated_Proxy();
31
32 const PPB_Var_Deprecated* ppb_var_target() const {
33 return reinterpret_cast<const PPB_Var_Deprecated*>(target_interface());
34 }
35
36 // InterfaceProxy implementation.
37 virtual const void* GetSourceInterface() const;
38 virtual InterfaceID GetInterfaceId() const;
39 virtual void OnMessageReceived(const IPC::Message& msg);
40
41 private:
42 // Message handlers.
43 void OnMsgHasProperty(SerializedVarReceiveInput var,
44 SerializedVarReceiveInput name,
45 SerializedVarOutParam exception,
46 bool* result);
47 void OnMsgHasMethodDeprecated(SerializedVarReceiveInput var,
48 SerializedVarReceiveInput name,
49 SerializedVarOutParam exception,
50 bool* result);
51 void OnMsgGetProperty(SerializedVarReceiveInput var,
52 SerializedVarReceiveInput name,
53 SerializedVarOutParam exception,
54 SerializedVarReturnValue result);
55 void OnMsgEnumerateProperties(
56 SerializedVarReceiveInput var,
57 SerializedVarVectorOutParam props,
58 SerializedVarOutParam exception);
59 void OnMsgSetPropertyDeprecated(SerializedVarReceiveInput var,
60 SerializedVarReceiveInput name,
61 SerializedVarReceiveInput value,
62 SerializedVarOutParam exception);
63 void OnMsgDeleteProperty(SerializedVarReceiveInput var,
64 SerializedVarReceiveInput name,
65 SerializedVarOutParam exception,
66 bool* result);
67 void OnMsgCall(SerializedVarReceiveInput object,
68 SerializedVarReceiveInput this_object,
69 SerializedVarReceiveInput method_name,
70 SerializedVarVectorReceiveInput arg_vector,
71 SerializedVarOutParam exception,
72 SerializedVarReturnValue result);
73 void OnMsgCallDeprecated(SerializedVarReceiveInput object,
74 SerializedVarReceiveInput method_name,
75 SerializedVarVectorReceiveInput arg_vector,
76 SerializedVarOutParam exception,
77 SerializedVarReturnValue result);
78 void OnMsgConstruct(SerializedVarReceiveInput var,
79 SerializedVarVectorReceiveInput arg_vector,
80 SerializedVarOutParam exception,
81 SerializedVarReturnValue result);
82 void OnMsgIsInstanceOfDeprecated(pp::proxy::SerializedVarReceiveInput var,
83 int64 ppp_class,
84 int64* ppp_class_data,
85 bool* result);
86 void OnMsgCreateObjectDeprecated(PP_Module module_id,
87 int64 ppp_class,
88 int64 ppp_class_data,
89 SerializedVarReturnValue result);
90 };
91
92 } // namespace proxy
93 } // namespace pp
94
95 #endif // PPAPI_PPB_VAR_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698