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_PROXY_PPP_CLASS_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPP_CLASS_PROXY_H_ |
6 #define PPAPI_PROXY_PPP_CLASS_PROXY_H_ | 6 #define PPAPI_PROXY_PPP_CLASS_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // PPB_Var_Deprecated interface to use to create the object. The class and | 35 // PPB_Var_Deprecated interface to use to create the object. The class and |
36 static PP_Var CreateProxiedObject(const PPB_Var_Deprecated* var, | 36 static PP_Var CreateProxiedObject(const PPB_Var_Deprecated* var, |
37 Dispatcher* dispatcher, | 37 Dispatcher* dispatcher, |
38 PP_Module module_id, | 38 PP_Module module_id, |
39 int64 ppp_class, | 39 int64 ppp_class, |
40 int64 class_data); | 40 int64 class_data); |
41 | 41 |
42 // InterfaceProxy implementation. | 42 // InterfaceProxy implementation. |
43 virtual const void* GetSourceInterface() const; | 43 virtual const void* GetSourceInterface() const; |
44 virtual InterfaceID GetInterfaceId() const; | 44 virtual InterfaceID GetInterfaceId() const; |
45 virtual void OnMessageReceived(const IPC::Message& msg); | 45 virtual bool OnMessageReceived(const IPC::Message& msg); |
46 | 46 |
47 private: | 47 private: |
48 // IPC message handlers. | 48 // IPC message handlers. |
49 void OnMsgHasProperty(int64 ppp_class, int64 object, | 49 void OnMsgHasProperty(int64 ppp_class, int64 object, |
50 SerializedVarReceiveInput property, | 50 SerializedVarReceiveInput property, |
51 SerializedVarOutParam exception, | 51 SerializedVarOutParam exception, |
52 bool* result); | 52 bool* result); |
53 void OnMsgHasMethod(int64 ppp_class, int64 object, | 53 void OnMsgHasMethod(int64 ppp_class, int64 object, |
54 SerializedVarReceiveInput property, | 54 SerializedVarReceiveInput property, |
55 SerializedVarOutParam exception, | 55 SerializedVarOutParam exception, |
(...skipping 24 matching lines...) Expand all Loading... |
80 SerializedVarReturnValue result); | 80 SerializedVarReturnValue result); |
81 void OnMsgDeallocate(int64 ppp_class, int64 object); | 81 void OnMsgDeallocate(int64 ppp_class, int64 object); |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(PPP_Class_Proxy); | 83 DISALLOW_COPY_AND_ASSIGN(PPP_Class_Proxy); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace proxy | 86 } // namespace proxy |
87 } // namespace pp | 87 } // namespace pp |
88 | 88 |
89 #endif // PPAPI_PROXY_PPP_CLASS_PROXY_H_ | 89 #endif // PPAPI_PROXY_PPP_CLASS_PROXY_H_ |
OLD | NEW |