diff options
Diffstat (limited to 'chromium/content/browser/webui/web_ui_data_source_impl.h')
-rw-r--r-- | chromium/content/browser/webui/web_ui_data_source_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/content/browser/webui/web_ui_data_source_impl.h b/chromium/content/browser/webui/web_ui_data_source_impl.h index 18c48754437..06c1bd9af05 100644 --- a/chromium/content/browser/webui/web_ui_data_source_impl.h +++ b/chromium/content/browser/webui/web_ui_data_source_impl.h @@ -13,6 +13,7 @@ #include "base/callback.h" #include "base/compiler_specific.h" +#include "base/gtest_prod_util.h" #include "base/macros.h" #include "base/values.h" #include "content/browser/webui/url_data_manager.h" @@ -69,6 +70,8 @@ class CONTENT_EXPORT WebUIDataSourceImpl : public URLDataSourceImpl, friend class WebUIDataSource; friend class WebUIDataSourceTest; + FRIEND_TEST_ALL_PREFIXES(WebUIDataSourceTest, IsGzipped); + explicit WebUIDataSourceImpl(const std::string& source_name); // Methods that match URLDataSource which are called by @@ -85,6 +88,8 @@ class CONTENT_EXPORT WebUIDataSourceImpl : public URLDataSourceImpl, add_load_time_data_defaults_ = false; } + bool IsGzipped(const std::string& path) const; + // The name of this source. // E.g., for favicons, this could be "favicon", which results in paths for // specific resources like "favicon/34" getting sent to this source. |