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

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..69084cf3ed2be0af716c117b7819246ceb141a00 100644
--- a/content/public/browser/web_ui_data_source.h
+++ b/content/public/browser/web_ui_data_source.h
@@ -105,9 +105,11 @@ 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.
+ virtual void UseGzipForAllPaths() = 0;
+
+ // When UseGzipForAllPaths is enabled, exclude the given |path|.
+ virtual void ExcludePathFromGzip(const std::string& path) = 0;
jam 2016/12/21 21:18:31 do we really need two methods? can't UseGzipForAll
Dan Beam 2016/12/21 22:22:05 how does virtual void UseGzip(const std::vector<s
Dan Beam 2016/12/21 23:06:34 Done. (*except that I forgot excluded_paths_ was i
};
} // 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