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

Unified Diff: content/browser/webui/web_ui_data_source_impl.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/webrtc/webrtc_internals_ui.cc ('k') | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b92363e5ca75338987e2eea13a06242db7d3fe12..2ef7552fd3ad67f9500daba450f7e49b0683aa64 100644
--- a/content/browser/webui/web_ui_data_source_impl.h
+++ b/content/browser/webui/web_ui_data_source_impl.h
@@ -9,7 +9,6 @@
#include <map>
#include <string>
-#include <unordered_set>
#include "base/callback.h"
#include "base/compiler_specific.h"
@@ -49,15 +48,12 @@ class CONTENT_EXPORT WebUIDataSourceImpl
void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override;
void OverrideContentSecurityPolicyChildSrc(const std::string& data) override;
void DisableDenyXFrameOptions() override;
- void DisableI18nAndUseGzipForAllPaths() override;
+ void UseGzip(const std::unordered_set<std::string>& excluded_paths) override;
const ui::TemplateReplacements* GetReplacements() const override;
// Add the locale to the load time data defaults. May be called repeatedly.
void EnsureLoadTimeDataDefaultsAdded();
- // When DisableI18nAndUseGzipForAllPaths is enabled, exclude the given |path|.
- void ExcludePathFromGzip(const std::string& path);
-
bool IsWebUIDataSourceImpl() const override;
protected:
@@ -116,7 +112,7 @@ class CONTENT_EXPORT WebUIDataSourceImpl
bool deny_xframe_options_;
bool add_load_time_data_defaults_;
bool replace_existing_source_;
- bool use_gzip_for_all_paths_;
+ bool use_gzip_;
DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl);
};
« no previous file with comments | « content/browser/webrtc/webrtc_internals_ui.cc ('k') | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698