| Index: third_party/WebKit/Source/platform/loader/fetch/ClientHintsPreferences.h
|
| diff --git a/third_party/WebKit/Source/platform/loader/fetch/ClientHintsPreferences.h b/third_party/WebKit/Source/platform/loader/fetch/ClientHintsPreferences.h
|
| index a25e21800c8622c6f90d00d8f1d599112482bf9f..72f96f4983082fe70d3ecd917df036634fcf8e52 100644
|
| --- a/third_party/WebKit/Source/platform/loader/fetch/ClientHintsPreferences.h
|
| +++ b/third_party/WebKit/Source/platform/loader/fetch/ClientHintsPreferences.h
|
| @@ -17,6 +17,7 @@ class PLATFORM_EXPORT ClientHintsPreferences {
|
| public:
|
| class Context {
|
| public:
|
| + virtual void CountClientHintsDeviceRam() = 0;
|
| virtual void CountClientHintsDPR() = 0;
|
| virtual void CountClientHintsResourceWidth() = 0;
|
| virtual void CountClientHintsViewportWidth() = 0;
|
| @@ -30,6 +31,9 @@ class PLATFORM_EXPORT ClientHintsPreferences {
|
| void UpdateFrom(const ClientHintsPreferences&);
|
| void UpdateFromAcceptClientHintsHeader(const String& header_value, Context*);
|
|
|
| + bool ShouldSendDeviceRam() const { return should_send_device_ram_; }
|
| + void SetShouldSendDeviceRam(bool should) { should_send_device_ram_ = should; }
|
| +
|
| bool ShouldSendDPR() const { return should_send_dpr_; }
|
| void SetShouldSendDPR(bool should) { should_send_dpr_ = should; }
|
|
|
| @@ -44,6 +48,7 @@ class PLATFORM_EXPORT ClientHintsPreferences {
|
| }
|
|
|
| private:
|
| + bool should_send_device_ram_;
|
| bool should_send_dpr_;
|
| bool should_send_resource_width_;
|
| bool should_send_viewport_width_;
|
|
|