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

Unified Diff: third_party/WebKit/Source/core/fetch/ClientHintsPreferences.h

Issue 2544933003: Split methods for ClientHintsPreferences from FrameFetchContext (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ClientHintsPreferences.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ClientHintsPreferences.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698