Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: webkit/plugins/ppapi/resource_tracker.h

Issue 6493004: Implement basic crash detection and shutdown handling for out of process PPAP... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_proxy_impl.cc ('k') | webkit/plugins/ppapi/resource_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « webkit/plugins/ppapi/ppb_proxy_impl.cc ('k') | webkit/plugins/ppapi/resource_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698