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

Unified Diff: Source/core/fetch/FetchContext.h

Issue 1189523015: Add use-counters for Client-Hints features (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style Created 5 years, 6 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: Source/core/fetch/FetchContext.h
diff --git a/Source/core/fetch/FetchContext.h b/Source/core/fetch/FetchContext.h
index a5e31cd44fde712e2dc81b38daca178ac1e5bcab..82f9929cb5e88d773f01a1a2d0b0e0674df9b5b4 100644
--- a/Source/core/fetch/FetchContext.h
+++ b/Source/core/fetch/FetchContext.h
@@ -59,10 +59,18 @@ class CORE_EXPORT FetchContext : public NoBaseWillBeGarbageCollectedFinalized<Fe
public:
static FetchContext& nullInstance();
+ // To avoid a dependency on core/ we redefine fetch based UseCounter features here.
+ enum FetchUseCounterFeature {
Nate Chapin 2015/06/16 17:10:28 It seems unfortunate to have this enum essentially
+ ClientHintsDPR,
+ ClientHintsResourceWidth,
+ ClientHintsViewportWidth
+ };
+
virtual ~FetchContext() { }
DEFINE_INLINE_VIRTUAL_TRACE() { }
virtual bool isLiveContext() { return false; }
+ virtual void count(FetchUseCounterFeature) { }
virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType);
virtual void setFirstPartyForCookies(ResourceRequest&);

Powered by Google App Engine
This is Rietveld 408576698