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

Unified Diff: third_party/WebKit/Source/core/loader/private/FrameClientHintsPreferencesContext.cpp

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Minor fixes 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/private/FrameClientHintsPreferencesContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/private/FrameClientHintsPreferencesContext.cpp b/third_party/WebKit/Source/core/loader/private/FrameClientHintsPreferencesContext.cpp
index 9cfe94cbcc43631d45de9eb757424031fe2968db..47f5155bf379548ea5d813007d58067c20283589 100644
--- a/third_party/WebKit/Source/core/loader/private/FrameClientHintsPreferencesContext.cpp
+++ b/third_party/WebKit/Source/core/loader/private/FrameClientHintsPreferencesContext.cpp
@@ -12,6 +12,10 @@ FrameClientHintsPreferencesContext::FrameClientHintsPreferencesContext(
Frame* frame)
: frame_(frame) {}
+void FrameClientHintsPreferencesContext::CountClientHintsDeviceRAM() {
+ UseCounter::Count(frame_, UseCounter::kClientHintsDeviceRAM);
+}
+
void FrameClientHintsPreferencesContext::CountClientHintsDPR() {
UseCounter::Count(frame_, UseCounter::kClientHintsDPR);
}

Powered by Google App Engine
This is Rietveld 408576698