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

Unified Diff: content/browser/webui/web_ui_data_source_impl.h

Issue 2528903002: Allow the PDF extension for chrome://print pages. (Closed)
Patch Set: Created 4 years, 1 month 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/browser/webui/web_ui_data_source_impl.h
diff --git a/content/browser/webui/web_ui_data_source_impl.h b/content/browser/webui/web_ui_data_source_impl.h
index 387209ebc3d988694ba8f0b3b73100a7eaa7e1cb..4aad1e40e0955ea85fc1e8345b79a401dec7bc49 100644
--- a/content/browser/webui/web_ui_data_source_impl.h
+++ b/content/browser/webui/web_ui_data_source_impl.h
@@ -45,6 +45,7 @@ class CONTENT_EXPORT WebUIDataSourceImpl
const WebUIDataSource::HandleRequestCallback& callback) override;
void DisableReplaceExistingSource() override;
void DisableContentSecurityPolicy() override;
+ void OverrideContentSecurityPolicyScriptSrc(const std::string& data) override;
void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override;
void OverrideContentSecurityPolicyChildSrc(const std::string& data) override;
void DisableDenyXFrameOptions() override;
@@ -97,6 +98,8 @@ class CONTENT_EXPORT WebUIDataSourceImpl
base::DictionaryValue localized_strings_;
WebUIDataSource::HandleRequestCallback filter_callback_;
bool add_csp_;
+ bool script_src_set_;
+ std::string script_src_;
bool object_src_set_;
std::string object_src_;
bool frame_src_set_;
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.cc ('k') | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698