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

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

Issue 14371021: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add DocumentLoader class to record document load events. Created 7 years, 7 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
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 4971d5188e525aa2dd7c23802783ac114eaf26b9..d9eac94a0e7584154e15fdb2d36eb414e62fef0d 100644
--- a/content/renderer/pepper/renderer_ppapi_host_impl.cc
+++ b/content/renderer/pepper/renderer_ppapi_host_impl.cc
@@ -198,6 +198,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)

Powered by Google App Engine
This is Rietveld 408576698