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

Unified Diff: content/renderer/pepper/renderer_ppapi_host_impl.cc

Issue 11416064: Convert URLLoader to the new proxy design (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments, merge Created 8 years 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 | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | ppapi/api/ppp_instance.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/renderer_ppapi_host_impl.cc
diff --git a/content/renderer/pepper/renderer_ppapi_host_impl.cc b/content/renderer/pepper/renderer_ppapi_host_impl.cc
index fff104e392f9e50193194b6c46d9ea79445c5f3a..b7b74f88e191166663921db128309544daec5985 100644
--- a/content/renderer/pepper/renderer_ppapi_host_impl.cc
+++ b/content/renderer/pepper/renderer_ppapi_host_impl.cc
@@ -53,7 +53,6 @@ RendererPpapiHost::CreateExternalPluginModule(
return renderer_ppapi_host;
}
-
// Out-of-process constructor.
RendererPpapiHostImpl::RendererPpapiHostImpl(
PluginModule* module,
@@ -185,6 +184,12 @@ WebKit::WebPluginContainer* RendererPpapiHostImpl::GetContainerForInstance(
return instance_object->container();
}
+base::ProcessId RendererPpapiHostImpl::GetPluginPID() const {
+ if (dispatcher_)
+ return dispatcher_->channel()->peer_pid();
+ return base::kNullProcessId;
+}
+
bool RendererPpapiHostImpl::HasUserGesture(PP_Instance instance) const {
PluginInstance* instance_object = GetAndValidateInstance(instance);
if (!instance_object)
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | ppapi/api/ppp_instance.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698