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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 2003963004: Enable CSP on more WebUI pages (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: fix typo in comments Created 4 years, 7 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/browser/ui/webui/ntp/new_tab_ui.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.h b/chrome/browser/ui/webui/ntp/new_tab_ui.h
index 9124574be5ecdd2d144ce211f89b4d440f15c84b..79db8c3dbf7dddae0b2e5e506ed43ab9d2f50a54 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.h
@@ -68,7 +68,10 @@ class NewTabUI : public content::WebUIController {
const content::URLDataSource::GotDataCallback& callback) override;
std::string GetMimeType(const std::string&) const override;
bool ShouldReplaceExistingSource() const override;
- bool ShouldAddContentSecurityPolicy() const override;
+ std::string GetContentSecurityPolicyScriptSrc() const override;
+ std::string GetContentSecurityPolicyStyleSrc() const override;
+ std::string GetContentSecurityPolicyImgSrc() const override;
+ std::string GetContentSecurityPolicyFrameSrc() const override;
// Adds |resource| to the source. |resource_id| is resource id or 0,
// which means return empty data set. |mime_type| is mime type of the

Powered by Google App Engine
This is Rietveld 408576698