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

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

Issue 1004803007: Pepper: Cache the document URL in PepperPluginInstanceImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 9 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/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index b34ab5b7269ddd3792c9b0486f59e76f12564285..bc1436abe1487e9b10de1525579250f0a78391ea 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -479,6 +479,8 @@ PepperPluginInstanceImpl::PepperPluginInstanceImpl(
layer_bound_to_fullscreen_(false),
layer_is_hardware_(false),
plugin_url_(plugin_url),
+ document_url_(container ? GURL(container->element().document().url())
+ : GURL()),
is_flash_plugin_(module->name() == kFlashPluginName),
has_been_clicked_(false),
javascript_used_(false),
@@ -564,7 +566,7 @@ PepperPluginInstanceImpl::PepperPluginInstanceImpl(
browser_connection->DidCreateInProcessInstance(
pp_instance(),
render_frame_->GetRoutingID(),
- container_->element().document().url(),
+ document_url_,
GetPluginURL());
}
}
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | content/renderer/pepper/renderer_ppapi_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698