OLD | NEW |
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_C_PRIVATE_PROXY_PRIVATE_H_ | 5 #ifndef PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |
6 #define PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ | 6 #define PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |
7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" |
8 #include "ppapi/c/pp_module.h" | 9 #include "ppapi/c/pp_module.h" |
| 10 #include "ppapi/c/pp_resource.h" |
9 | 11 |
10 #define PPB_PROXY_PRIVATE_INTERFACE "PPB_Proxy_Private;1" | 12 #define PPB_PROXY_PRIVATE_INTERFACE "PPB_Proxy_Private;2" |
11 | 13 |
12 // Exposes functions needed by the out-of-process proxy to call into the | 14 // Exposes functions needed by the out-of-process proxy to call into the |
13 // renderer PPAPI implementation. | 15 // renderer PPAPI implementation. |
14 struct PPB_Proxy_Private { | 16 struct PPB_Proxy_Private { |
15 // Called when the given plugin process has crashed. | 17 // Called when the given plugin process has crashed. |
16 void (*PluginCrashed)(PP_Module module); | 18 void (*PluginCrashed)(PP_Module module); |
| 19 |
| 20 // Returns the instance for the given resource, or 0 on failure. |
| 21 PP_Instance (*GetInstanceForResource)(PP_Resource resource); |
17 }; | 22 }; |
18 | 23 |
19 #endif // PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ | 24 #endif // PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |
OLD | NEW |