OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_PPB_VAR_PROXY_H_ | 5 #ifndef PPAPI_PPB_VAR_PROXY_H_ |
6 #define PPAPI_PPB_VAR_PROXY_H_ | 6 #define PPAPI_PPB_VAR_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class SerializedVarVectorReceiveInput; | 22 class SerializedVarVectorReceiveInput; |
23 class SerializedVarOutParam; | 23 class SerializedVarOutParam; |
24 class SerializedVarReturnValue; | 24 class SerializedVarReturnValue; |
25 | 25 |
26 class PPB_Var_Deprecated_Proxy : public InterfaceProxy { | 26 class PPB_Var_Deprecated_Proxy : public InterfaceProxy { |
27 public: | 27 public: |
28 PPB_Var_Deprecated_Proxy(Dispatcher* dispatcher, | 28 PPB_Var_Deprecated_Proxy(Dispatcher* dispatcher, |
29 const void* target_interface); | 29 const void* target_interface); |
30 virtual ~PPB_Var_Deprecated_Proxy(); | 30 virtual ~PPB_Var_Deprecated_Proxy(); |
31 | 31 |
| 32 static const Info* GetInfo(); |
| 33 |
32 const PPB_Var_Deprecated* ppb_var_target() const { | 34 const PPB_Var_Deprecated* ppb_var_target() const { |
33 return reinterpret_cast<const PPB_Var_Deprecated*>(target_interface()); | 35 return reinterpret_cast<const PPB_Var_Deprecated*>(target_interface()); |
34 } | 36 } |
35 | 37 |
36 // InterfaceProxy implementation. | 38 // InterfaceProxy implementation. |
37 virtual const void* GetSourceInterface() const; | |
38 virtual InterfaceID GetInterfaceId() const; | |
39 virtual bool OnMessageReceived(const IPC::Message& msg); | 39 virtual bool OnMessageReceived(const IPC::Message& msg); |
40 | 40 |
41 private: | 41 private: |
42 // Message handlers. | 42 // Message handlers. |
43 void OnMsgHasProperty(SerializedVarReceiveInput var, | 43 void OnMsgHasProperty(SerializedVarReceiveInput var, |
44 SerializedVarReceiveInput name, | 44 SerializedVarReceiveInput name, |
45 SerializedVarOutParam exception, | 45 SerializedVarOutParam exception, |
46 PP_Bool* result); | 46 PP_Bool* result); |
47 void OnMsgHasMethodDeprecated(SerializedVarReceiveInput var, | 47 void OnMsgHasMethodDeprecated(SerializedVarReceiveInput var, |
48 SerializedVarReceiveInput name, | 48 SerializedVarReceiveInput name, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void OnMsgCreateObjectDeprecated(PP_Instance instance, | 86 void OnMsgCreateObjectDeprecated(PP_Instance instance, |
87 int64 ppp_class, | 87 int64 ppp_class, |
88 int64 ppp_class_data, | 88 int64 ppp_class_data, |
89 SerializedVarReturnValue result); | 89 SerializedVarReturnValue result); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace proxy | 92 } // namespace proxy |
93 } // namespace pp | 93 } // namespace pp |
94 | 94 |
95 #endif // PPAPI_PPB_VAR_PROXY_H_ | 95 #endif // PPAPI_PPB_VAR_PROXY_H_ |
OLD | NEW |