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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2894063002: Expose UseCounter::Feature enum out of blink as WebFeature (Closed)
Patch Set: Initial check in Created 3 years, 7 months 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
Index: third_party/WebKit/Source/core/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index 54324cf402cd3a250b696d9d8aeca5548a8aa710..0702b1beddd22a0fe8ab5c22352e0f386fccb04e 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -179,8 +179,16 @@ class CORE_EXPORT FrameFetchContext final : public BaseFetchContext {
void ReportLocalLoadFailed(const KURL&) const override;
bool ShouldBypassMainWorldCSP() const override;
bool IsSVGImageChromeClient() const override;
+ // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature in
+ // CountDeprecation() and CountUsage().
void CountUsage(UseCounter::Feature) const override;
+ void CountUsage(WebFeature feature) const override {
+ return CountUsage(static_cast<UseCounter::Feature>(feature));
+ }
void CountDeprecation(UseCounter::Feature) const override;
+ void CountDeprecation(WebFeature feature) const override {
+ return CountDeprecation(static_cast<UseCounter::Feature>(feature));
+ }
bool ShouldBlockFetchByMixedContentCheck(
const ResourceRequest&,
const KURL&,

Powered by Google App Engine
This is Rietveld 408576698