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

Unified Diff: Source/core/frame/LocalFrame.h

Issue 951303003: Added basic client hints support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed expected files Created 5 years, 10 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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalFrame.h
diff --git a/Source/core/frame/LocalFrame.h b/Source/core/frame/LocalFrame.h
index c9e2193a7600891d7f30a5f22753319478e0a6e1..54df8d9493c8f8408a35b8e52707f3cd53e2e275 100644
--- a/Source/core/frame/LocalFrame.h
+++ b/Source/core/frame/LocalFrame.h
@@ -175,6 +175,11 @@ namespace blink {
#endif
DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
+ void setShouldSendDPRHint() { m_shouldSendDPRHint = true; }
+ void setShouldSendRWHint() { m_shouldSendRWHint = true; }
+ bool shouldSendDPRHint() { return m_shouldSendDPRHint; }
+ bool shouldSendRWHint() { return m_shouldSendRWHint; }
+
// ========
private:
@@ -228,6 +233,9 @@ namespace blink {
bool m_inViewSourceMode;
RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
+
+ bool m_shouldSendDPRHint;
+ bool m_shouldSendRWHint;
};
inline void LocalFrame::init()
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698