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

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

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Rebase UseCounter.h 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 2f2ec6e97f09287273d934bd10da354d738c3ddf..cca8ec2c09d09986b52ef604ca168296b0d91632 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(
LocalFrame* 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