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

Unified Diff: chrome/renderer/chrome_render_view_observer.h

Issue 10332169: Enable Shadow DOM and scoped stylesheet for extensions and Web UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enable the API only if the experimental permission is given Created 8 years, 6 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: chrome/renderer/chrome_render_view_observer.h
diff --git a/chrome/renderer/chrome_render_view_observer.h b/chrome/renderer/chrome_render_view_observer.h
index 923e0067ce4b8a312a955749e508f06dc38ad176..9ba86ca59b11f33c284de504afcf4d081cc64a3f 100644
--- a/chrome/renderer/chrome_render_view_observer.h
+++ b/chrome/renderer/chrome_render_view_observer.h
@@ -104,6 +104,7 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
bool default_value) OVERRIDE;
virtual bool allowWriteToClipboard(WebKit::WebFrame* frame,
bool default_value) OVERRIDE;
+ virtual bool allowWebComponents(const WebKit::WebDocument&, bool) OVERRIDE;
virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE;
virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE;
virtual bool allowDisplayingInsecureContent(
@@ -182,6 +183,9 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
// Determines if a host is in the strict security host set.
bool IsStrictSecurityHost(const std::string& host);
+ // Determines if the document has a permission to use experimental Web API
+ bool IsExperimentalWebFeatureAllowed(const WebKit::WebDocument& document);
+
// Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received.
scoped_ptr<WebUIJavaScript> webui_javascript_;
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_view_observer.cc » ('j') | chrome/renderer/chrome_render_view_observer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698