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

Unified Diff: content/public/browser/web_ui_controller_factory.h

Issue 10080018: Don't allow sending data URLs to WebUI, unless in a ChromeOS BalloonHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors and crash in tests. Created 8 years, 8 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
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_ui_controller_factory.h
diff --git a/content/public/browser/web_ui_controller_factory.h b/content/public/browser/web_ui_controller_factory.h
index 412006efbf0933bc928471c2e9ac4c7e88574545..871bea1eaf003b38250190823050f65b772c9dbc 100644
--- a/content/public/browser/web_ui_controller_factory.h
+++ b/content/public/browser/web_ui_controller_factory.h
@@ -48,7 +48,8 @@ class CONTENT_EXPORT WebUIControllerFactory {
// URLs with WebUI types (as above) and also URLs that can be loaded by
// normal tabs such as javascript: URLs or about:hang.
virtual bool IsURLAcceptableForWebUI(BrowserContext* browser_context,
- const GURL& url) const = 0;
+ const GURL& url,
+ bool data_urls_allowed) const = 0;
};
} // namespace content
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698