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

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

Issue 48743008: Pepper: specify the security origin when enumerating media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 5c41003d71f79660c32db9369c1605a3d8003665..2b8193ba0ecf06880c564330844ea1c5f7df4f25 100644
--- a/content/renderer/pepper/renderer_ppapi_host_impl.cc
+++ b/content/renderer/pepper/renderer_ppapi_host_impl.cc
@@ -245,6 +245,14 @@ void RendererPpapiHostImpl::CreateBrowserResourceHosts(
}
}
+GURL RendererPpapiHostImpl::GetDocumentURL(PP_Instance instance) const {
+ PepperPluginInstanceImpl* instance_object = GetAndValidateInstance(instance);
+ if (!instance_object)
+ return GURL();
+
+ return instance_object->container()->element().document().url();
+}
+
PepperPluginInstanceImpl* RendererPpapiHostImpl::GetAndValidateInstance(
PP_Instance pp_instance) const {
PepperPluginInstanceImpl* instance =

Powered by Google App Engine
This is Rietveld 408576698