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 2cc738cfd25e23e5cb0e466cd04bf74faf8c0cbe..c83a55da5a1132309f8481f6fe6f7a5d343d13db 100644 |
--- a/content/browser/webui/web_ui_data_source_impl.h |
+++ b/content/browser/webui/web_ui_data_source_impl.h |
@@ -44,6 +44,7 @@ class CONTENT_EXPORT WebUIDataSourceImpl |
void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override; |
void OverrideContentSecurityPolicyChildSrc(const std::string& data) override; |
void DisableDenyXFrameOptions() override; |
+ void AddPreloadHeader(const std::string& preload_header) override; |
protected: |
~WebUIDataSourceImpl() override; |
@@ -82,6 +83,9 @@ class CONTENT_EXPORT WebUIDataSourceImpl |
int default_resource_; |
std::string json_path_; |
std::map<std::string, int> path_to_idr_map_; |
+ |
+ const std::map<std::string, int>& path_to_idr_map() const override; |
+ |
// The |replacements_| is intended to replace |localized_strings_|. |
// TODO(dschuyler): phase out |localized_strings_| in Q1 2016. (Or rename |
// to |load_time_flags_| if the usage is reduced to storing flags only). |
@@ -96,6 +100,7 @@ class CONTENT_EXPORT WebUIDataSourceImpl |
bool deny_xframe_options_; |
bool add_load_time_data_defaults_; |
bool replace_existing_source_; |
+ std::vector<std::string> preload_headers_; |
DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); |
}; |