Make PP_Resources associated with the Instance rather than the module. This
adds PP_Instance to the necessary places in the API to make this possible.
String and Object vars used to be PP_Resources. But it is not practical to
assocaited strings with an instance since then we can't have implicit var
constructors and have to litter every string with an instance. So this changes
vars to use their own tracking system associated with the module (i.e. keeping
the current semantics) and making it no longer a resource. I made the internal
Var IDs 32 bits since Neb is about to land his 64->32 change.
Now it force-deletes resources associated with an instance when that instance
goes away. I added some additional code and tracking in ResourceTracker to do
this. I could then remove the Instance::Observer class since the resource can
use the (now renamed) StoppedTracking to know that it's being deleted in
response to the instance being destroyed.
TEST=ppapi ui tests
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71544 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ppapi/proxy/ppb_flash_proxy.h b/ppapi/proxy/ppb_flash_proxy.h
index 629761f..cbe30bdb 100644
--- a/ppapi/proxy/ppb_flash_proxy.h
+++ b/ppapi/proxy/ppb_flash_proxy.h
@@ -43,31 +43,31 @@
bool on_top);
void OnMsgDrawGlyphs(const pp::proxy::PPBFlash_DrawGlyphs_Params& params,
bool* result);
- void OnMsgGetProxyForURL(PP_Module module,
+ void OnMsgGetProxyForURL(PP_Instance instance,
const std::string& url,
SerializedVarReturnValue result);
- void OnMsgOpenModuleLocalFile(PP_Module module,
+ void OnMsgOpenModuleLocalFile(PP_Instance instance,
const std::string& path,
int32_t mode,
IPC::PlatformFileForTransit* file_handle,
int32_t* result);
- void OnMsgRenameModuleLocalFile(PP_Module module,
+ void OnMsgRenameModuleLocalFile(PP_Instance instance,
const std::string& path_from,
const std::string& path_to,
int32_t* result);
- void OnMsgDeleteModuleLocalFileOrDir(PP_Module module,
+ void OnMsgDeleteModuleLocalFileOrDir(PP_Instance instance,
const std::string& path,
bool recursive,
int32_t* result);
- void OnMsgCreateModuleLocalDir(PP_Module module,
+ void OnMsgCreateModuleLocalDir(PP_Instance instance,
const std::string& path,
int32_t* result);
- void OnMsgQueryModuleLocalFile(PP_Module module,
+ void OnMsgQueryModuleLocalFile(PP_Instance instance,
const std::string& path,
PP_FileInfo_Dev* info,
int32_t* result);
void OnMsgGetModuleLocalDirContents(
- PP_Module module,
+ PP_Instance instance,
const std::string& path,
std::vector<pp::proxy::SerializedDirEntry>* entries,
int32_t* result);