| Index: third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h b/third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h
|
| index 7fdddc55ebb0415465325ce0b2f66952d0fe2428..996fd3aad9a40a784c70ac446bf8f3ef6340e785 100644
|
| --- a/third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h
|
| +++ b/third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h
|
| @@ -11,17 +11,24 @@
|
|
|
| namespace blink {
|
|
|
| -class ResourceFetcher;
|
| -
|
| class CORE_EXPORT ClientHintsPreferences {
|
| DISALLOW_NEW();
|
|
|
| public:
|
| + class Context {
|
| + public:
|
| + virtual void countClientHintsDPR() = 0;
|
| + virtual void countClientHintsResourceWidth() = 0;
|
| + virtual void countClientHintsViewportWidth() = 0;
|
| +
|
| + protected:
|
| + virtual ~Context() {}
|
| + };
|
| +
|
| ClientHintsPreferences();
|
|
|
| void updateFrom(const ClientHintsPreferences&);
|
| - void updateFromAcceptClientHintsHeader(const String& headerValue,
|
| - ResourceFetcher*);
|
| + void updateFromAcceptClientHintsHeader(const String& headerValue, Context*);
|
|
|
| bool shouldSendDPR() const { return m_shouldSendDPR; }
|
| void setShouldSendDPR(bool should) { m_shouldSendDPR = should; }
|
|
|