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

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

Issue 2255833003: DO NOT COMMIT: hack hack hacking on preloading md-settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: to show dave Created 4 years, 4 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/browser/webui/url_data_manager_backend.cc ('k') | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « content/browser/webui/url_data_manager_backend.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