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

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: 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
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;
Mike West 2015/02/25 09:03:14 How many hints will we end up with? Might it make
+ bool m_shouldSendRWHint;
};
inline void LocalFrame::init()

Powered by Google App Engine
This is Rietveld 408576698