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

Unified Diff: content/renderer/pepper/pepper_webplugin_impl.h

Issue 669703003: Plugin Power Saver: Restrict Power Saver to cross-origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/pepper_webplugin_impl.h
diff --git a/content/renderer/pepper/pepper_webplugin_impl.h b/content/renderer/pepper/pepper_webplugin_impl.h
index c11bcebce3befe1d1ba3b0f8a97e97ce1e7bc6d2..67cdd1642f13ef1eeb94a7392758158e8ddde4b6 100644
--- a/content/renderer/pepper/pepper_webplugin_impl.h
+++ b/content/renderer/pepper/pepper_webplugin_impl.h
@@ -12,6 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner_helpers.h"
#include "ppapi/c/pp_var.h"
+#include "third_party/WebKit/public/platform/WebURL.h"
#include "third_party/WebKit/public/web/WebPlugin.h"
#include "ui/gfx/rect.h"
@@ -33,7 +34,8 @@ class PepperWebPluginImpl : public blink::WebPlugin {
public:
PepperWebPluginImpl(PluginModule* module,
const blink::WebPluginParams& params,
- RenderFrameImpl* render_frame);
+ RenderFrameImpl* render_frame,
+ const blink::WebURL& top_frame_url);
PepperPluginInstanceImpl* instance() { return instance_.get(); }
@@ -99,6 +101,7 @@ class PepperWebPluginImpl : public blink::WebPlugin {
gfx::Rect plugin_rect_;
PP_Var instance_object_;
blink::WebPluginContainer* container_;
+ blink::WebURL top_frame_url_;
DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl);
};

Powered by Google App Engine
This is Rietveld 408576698