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

Unified Diff: ppapi/proxy/ppp_instance_proxy.cc

Issue 6334016: Refactor PPAPI proxy resource handling to maintain which host they came from,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « ppapi/proxy/ppp_instance_proxy.h ('k') | ppapi/proxy/serialized_structs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_instance_proxy.cc
===================================================================
--- ppapi/proxy/ppp_instance_proxy.cc (revision 72840)
+++ ppapi/proxy/ppp_instance_proxy.cc (working copy)
@@ -66,9 +66,11 @@
PP_Bool HandleDocumentLoad(PP_Instance instance,
PP_Resource url_loader) {
PP_Bool result = PP_FALSE;
+ HostResource serialized_loader;
+ serialized_loader.SetHostResource(instance, url_loader);
HostDispatcher::GetForInstance(instance)->Send(
new PpapiMsg_PPPInstance_HandleDocumentLoad(INTERFACE_ID_PPP_INSTANCE,
- instance, url_loader,
+ instance, serialized_loader,
&result));
return result;
}
@@ -180,11 +182,12 @@
}
void PPP_Instance_Proxy::OnMsgHandleDocumentLoad(PP_Instance instance,
- PP_Resource url_loader,
+ const HostResource& url_loader,
PP_Bool* result) {
- PPB_URLLoader_Proxy::TrackPluginResource(instance, url_loader);
+ PP_Resource plugin_loader =
+ PPB_URLLoader_Proxy::TrackPluginResource(url_loader);
*result = ppp_instance_target()->HandleDocumentLoad(
- instance, url_loader);
+ instance, plugin_loader);
}
void PPP_Instance_Proxy::OnMsgGetInstanceObject(
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.h ('k') | ppapi/proxy/serialized_structs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698