Index: webkit/plugins/ppapi/resource_tracker.h |
=================================================================== |
--- webkit/plugins/ppapi/resource_tracker.h (revision 74733) |
+++ webkit/plugins/ppapi/resource_tracker.h (working copy) |
@@ -87,8 +87,11 @@ |
// The given handle should be one generated by AddInstance. |
void InstanceDeleted(PP_Instance instance); |
+ void InstanceCrashed(PP_Instance instance); |
+ |
// Returns a pointer to the plugin instance object associated with the given |
- // instance handle. The return value will be NULL if the handle is invalid. |
+ // instance handle. The return value will be NULL if the handle is invalid or |
+ // if the instance has crashed. |
PluginInstance* GetInstance(PP_Instance instance); |
private: |
@@ -117,6 +120,11 @@ |
// The same as AddResource but for Var, and returns the new Var ID. |
int32 AddVar(Var* var); |
+ // Force frees all vars and resources associated with the given instance. |
+ // If delete_instance is true, the instance tracking information will also |
+ // be deleted. |
+ void CleanupInstanceData(PP_Instance instance, bool delete_instance); |
+ |
// Overrides the singleton object. This is used for tests which want to |
// specify their own tracker (otherwise, you can get cross-talk between |
// tests since the data will live into the subsequent tests). |