Chromium Code Reviews| 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 64515feeff5f4e0d0665a1d18b9dc24ce18ac94d..3e51331e0b867abe01e4be442f034afdf46fe319 100644 |
| --- a/content/browser/webui/web_ui_data_source_impl.h |
| +++ b/content/browser/webui/web_ui_data_source_impl.h |
| @@ -9,6 +9,7 @@ |
| #include <map> |
| #include <string> |
| +#include <unordered_set> |
| #include "base/callback.h" |
| #include "base/compiler_specific.h" |
| @@ -49,6 +50,8 @@ class CONTENT_EXPORT WebUIDataSourceImpl |
| void DisableDenyXFrameOptions() override; |
| void DisableI18nAndUseGzipForAllPaths() override; |
| + void ExcludePathFromGzip(const std::string& path); |
|
Charlie Reis
2016/10/13 19:40:12
nit: Please add a comment, since it's not obvious
Dan Beam
2016/10/13 21:49:47
Done.
|
| + |
| protected: |
| ~WebUIDataSourceImpl() override; |
| @@ -85,6 +88,7 @@ class CONTENT_EXPORT WebUIDataSourceImpl |
| int default_resource_; |
| std::string json_path_; |
| std::map<std::string, int> path_to_idr_map_; |
| + std::unordered_set<std::string> excluded_paths_; |
| // 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). |