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

Unified Diff: Source/core/html/shadow/PluginPlaceholderElement.h

Issue 516273002: Move plugin placeholder style to CSS, and allow it to bypass main world CSP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whitelist an explicit string Created 6 years, 3 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: Source/core/html/shadow/PluginPlaceholderElement.h
diff --git a/Source/core/html/shadow/PluginPlaceholderElement.h b/Source/core/html/shadow/PluginPlaceholderElement.h
index b65f1f65d27d5aaa0a0f407c19c9c0cfd044df49..6f426c7a7a6fdf96faeafec9567817c641ad4407 100644
--- a/Source/core/html/shadow/PluginPlaceholderElement.h
+++ b/Source/core/html/shadow/PluginPlaceholderElement.h
@@ -10,6 +10,8 @@
namespace blink {
+class HTMLStyleElement;
+
class PluginPlaceholderElement FINAL : public HTMLDivElement {
public:
// Returns a null pointer if the placeholder DOM could not be built.
@@ -17,6 +19,9 @@ public:
void setMessage(const String& htmlMessage);
+ // Exposed for private script.
+ PassRefPtrWillBeRawPtr<HTMLStyleElement> createStyleElement();
+
private:
explicit PluginPlaceholderElement(Document&);
};

Powered by Google App Engine
This is Rietveld 408576698