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

Unified Diff: content/public/browser/web_ui_data_source.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/public/browser/url_data_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/public/browser/url_data_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698