| Index: content/browser/webui/web_ui_data_source_impl.cc
|
| diff --git a/content/browser/webui/web_ui_data_source_impl.cc b/content/browser/webui/web_ui_data_source_impl.cc
|
| index 2c091282f99918187a41a59babd6507155453749..b3f2f7674d040cf9feb1e720ea1d1a55ea33d2a4 100644
|
| --- a/content/browser/webui/web_ui_data_source_impl.cc
|
| +++ b/content/browser/webui/web_ui_data_source_impl.cc
|
| @@ -74,6 +74,9 @@ class WebUIDataSourceImpl::InternalDataSource : public URLDataSource {
|
| bool ShouldDenyXFrameOptions() const override {
|
| return parent_->deny_xframe_options_;
|
| }
|
| + std::vector<std::string> GetPreloadHeaders() const override {
|
| + return parent_->preload_headers_;
|
| + }
|
|
|
| private:
|
| WebUIDataSourceImpl* parent_;
|
| @@ -155,6 +158,10 @@ void WebUIDataSourceImpl::SetRequestFilter(
|
| filter_callback_ = callback;
|
| }
|
|
|
| +void WebUIDataSourceImpl::AddPreloadHeader(const std::string& preload_header) {
|
| + preload_headers_.push_back(preload_header);
|
| +}
|
| +
|
| void WebUIDataSourceImpl::DisableReplaceExistingSource() {
|
| replace_existing_source_ = false;
|
| }
|
| @@ -179,6 +186,10 @@ void WebUIDataSourceImpl::DisableDenyXFrameOptions() {
|
| deny_xframe_options_ = false;
|
| }
|
|
|
| +const std::map<std::string, int>& WebUIDataSourceImpl::path_to_idr_map() const {
|
| + return path_to_idr_map_;
|
| +}
|
| +
|
| std::string WebUIDataSourceImpl::GetSource() const {
|
| return source_name_;
|
| }
|
|
|