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

Unified Diff: content/browser/webui/shared_resources_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
Index: content/browser/webui/shared_resources_data_source.h
diff --git a/content/browser/webui/shared_resources_data_source.h b/content/browser/webui/shared_resources_data_source.h
index 002bbd244cb2b06c507aaaef9242b3ffb52ac784..5e14505837733978e095ac0beeb7d5cbef769a27 100644
--- a/content/browser/webui/shared_resources_data_source.h
+++ b/content/browser/webui/shared_resources_data_source.h
@@ -5,17 +5,24 @@
#ifndef CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_
#define CONTENT_BROWSER_WEBUI_SHARED_RESOURCES_DATA_SOURCE_H_
+#include <string>
+
#include "base/compiler_specific.h"
+#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "content/public/browser/url_data_source.h"
+#include "content/common/content_export.h"
namespace content {
// A DataSource for chrome://resources/ URLs.
-class SharedResourcesDataSource : public URLDataSource {
+class CONTENT_EXPORT SharedResourcesDataSource : public URLDataSource {
public:
SharedResourcesDataSource();
+ using ResourcesMap = base::hash_map<std::string, int>;
+ static const ResourcesMap& GetResourcesMap();
+
// URLDataSource implementation.
std::string GetSource() const override;
void StartDataRequest(
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | content/browser/webui/shared_resources_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698