summaryrefslogtreecommitdiff
path: root/chromium/components/previews/content/previews_hints.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/previews/content/previews_hints.h')
-rw-r--r--chromium/components/previews/content/previews_hints.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/chromium/components/previews/content/previews_hints.h b/chromium/components/previews/content/previews_hints.h
index aa01f64a046..997a40732ab 100644
--- a/chromium/components/previews/content/previews_hints.h
+++ b/chromium/components/previews/content/previews_hints.h
@@ -13,7 +13,7 @@
#include "base/sequence_checker.h"
#include "components/optimization_guide/hint_cache.h"
#include "components/optimization_guide/hints_processing_util.h"
-#include "components/optimization_guide/host_filter.h"
+#include "components/optimization_guide/optimization_filter.h"
#include "components/optimization_guide/proto/hints.pb.h"
#include "components/previews/content/previews_user_data.h"
#include "net/nqe/effective_connection_type.h"
@@ -85,11 +85,9 @@ class PreviewsHints {
std::vector<std::string>* out_resource_patterns_to_block) const;
// Logs UMA for whether the HintCache has a matching Hint and also a matching
- // PageHint for |url|. Records the client's current |ect| as well. This is
- // useful for measuring the effectiveness of the page hints provided by Cacao.
- void LogHintCacheMatch(const GURL& url,
- bool is_committed,
- net::EffectiveConnectionType ect) const;
+ // PageHint for |url|. This is useful for measuring the effectiveness of the
+ // page hints provided by Cacao.
+ void LogHintCacheMatch(const GURL& url, bool is_committed) const;
private:
friend class PreviewsHintsTest;
@@ -114,7 +112,8 @@ class PreviewsHints {
std::unique_ptr<optimization_guide::HintUpdateData> component_update_data_;
// Blacklist of host suffixes for LITE_PAGE_REDIRECT Previews.
- std::unique_ptr<optimization_guide::HostFilter> lite_page_redirect_blacklist_;
+ std::unique_ptr<optimization_guide::OptimizationFilter>
+ lite_page_redirect_blacklist_;
SEQUENCE_CHECKER(sequence_checker_);