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

Unified Diff: content/public/browser/web_ui_data_source.h

Issue 2590793004: MD Downloads: gzip vulcanized resources via compress="gzip" (Closed)
Patch Set: . Created 4 years 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/browser/webui/web_ui_data_source_impl.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 bf2db3b3139b69adbdbd4adb49e1a82a80a6a3b1..228245ac6ea1495af6acc137983cd332e1bde005 100644
--- a/content/public/browser/web_ui_data_source.h
+++ b/content/public/browser/web_ui_data_source.h
@@ -8,6 +8,8 @@
#include <stdint.h>
#include <memory>
+#include <string>
+#include <unordered_set>
#include "base/callback.h"
#include "base/strings/string16.h"
@@ -105,9 +107,10 @@ class WebUIDataSource {
const std::string& data) = 0;
virtual void DisableDenyXFrameOptions() = 0;
- // Tells the loading code that resources are gzipped on disk. TODO(dbeam):
- // write a streaming $i18n{} replacer and remove the "DisableI18n" part.
- virtual void DisableI18nAndUseGzipForAllPaths() = 0;
+ // Tells the loading code that resources are gzipped on disk. |excluded_paths|
+ // are uncompressed paths, and therefore should not be decompressed.
+ virtual void UseGzip(const std::unordered_set<std::string>& excluded_paths)
+ = 0;
};
} // namespace content
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698