| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Creates a proxied object in the browser process. This takes the browser's | 34 // Creates a proxied object in the browser process. This takes the browser's |
| 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; | |
| 44 virtual InterfaceID GetInterfaceId() const; | |
| 45 virtual bool OnMessageReceived(const IPC::Message& msg); | 43 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 46 | 44 |
| 47 private: | 45 private: |
| 48 // IPC message handlers. | 46 // IPC message handlers. |
| 49 void OnMsgHasProperty(int64 ppp_class, int64 object, | 47 void OnMsgHasProperty(int64 ppp_class, int64 object, |
| 50 SerializedVarReceiveInput property, | 48 SerializedVarReceiveInput property, |
| 51 SerializedVarOutParam exception, | 49 SerializedVarOutParam exception, |
| 52 bool* result); | 50 bool* result); |
| 53 void OnMsgHasMethod(int64 ppp_class, int64 object, | 51 void OnMsgHasMethod(int64 ppp_class, int64 object, |
| 54 SerializedVarReceiveInput property, | 52 SerializedVarReceiveInput property, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 80 SerializedVarReturnValue result); | 78 SerializedVarReturnValue result); |
| 81 void OnMsgDeallocate(int64 ppp_class, int64 object); | 79 void OnMsgDeallocate(int64 ppp_class, int64 object); |
| 82 | 80 |
| 83 DISALLOW_COPY_AND_ASSIGN(PPP_Class_Proxy); | 81 DISALLOW_COPY_AND_ASSIGN(PPP_Class_Proxy); |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 } // namespace proxy | 84 } // namespace proxy |
| 87 } // namespace pp | 85 } // namespace pp |
| 88 | 86 |
| 89 #endif // PPAPI_PROXY_PPP_CLASS_PROXY_H_ | 87 #endif // PPAPI_PROXY_PPP_CLASS_PROXY_H_ |
| OLD | NEW |