| Index: content/public/browser/web_ui_data_source.h
|
| diff --git a/content/public/browser/web_ui_data_source.h b/content/public/browser/web_ui_data_source.h
|
| index 515146bd20c267f34a783e9b637b39199fe0a666..db659c36871604eb1e3b874f2bb84ea05307ab0a 100644
|
| --- a/content/public/browser/web_ui_data_source.h
|
| +++ b/content/public/browser/web_ui_data_source.h
|
| @@ -5,6 +5,9 @@
|
| #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_
|
| #define CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_
|
|
|
| +#include <map>
|
| +#include <string>
|
| +
|
| #include "base/callback.h"
|
| #include "base/strings/string16.h"
|
| #include "content/common/content_export.h"
|
| @@ -72,6 +75,8 @@ class WebUIDataSource {
|
| // Allows a caller to add a filter for URL requests.
|
| virtual void SetRequestFilter(const HandleRequestCallback& callback) = 0;
|
|
|
| + virtual const std::map<std::string, int>& path_to_idr_map() const = 0;
|
| +
|
| // The following map to methods on URLDataSource. See the documentation there.
|
| // NOTE: it's not acceptable to call DisableContentSecurityPolicy for new
|
| // pages, see URLDataSource::ShouldAddContentSecurityPolicy and talk to
|
| @@ -85,6 +90,8 @@ class WebUIDataSource {
|
| virtual void OverrideContentSecurityPolicyChildSrc(
|
| const std::string& data) = 0;
|
| virtual void DisableDenyXFrameOptions() = 0;
|
| +
|
| + virtual void AddPreloadHeader(const std::string& preload_header) = 0;
|
| };
|
|
|
| } // namespace content
|
|
|