Index: public/web/WebPageImportanceSignals.h |
diff --git a/public/web/WebPageImportanceSignals.h b/public/web/WebPageImportanceSignals.h |
index 6e50ff9d9f7b044d8ab1b44250ac5df630683c98..7328c435c5ed62da1968b88d21559bad6e60437d 100644 |
--- a/public/web/WebPageImportanceSignals.h |
+++ b/public/web/WebPageImportanceSignals.h |
@@ -9,6 +9,8 @@ |
namespace blink { |
+class WebViewClient; |
+ |
// WebPageImportanceSignals indicate the importance of the page state to user. |
// This signal is propagated to embedder so that it can prioritize preserving |
// state of certain page over the others. |
@@ -17,15 +19,18 @@ public: |
WebPageImportanceSignals() { reset(); } |
bool hadFormInteraction() const { return m_hadFormInteraction; } |
- void setHadFormInteraction() { m_hadFormInteraction = true; } |
+ void setHadFormInteraction(); |
BLINK_EXPORT void reset(); |
#if BLINK_IMPLEMENTATION |
void onCommitLoad(); |
#endif |
+ void setObserver(WebViewClient* observer) { m_observer = observer; } |
+ |
private: |
bool m_hadFormInteraction : 1; |
+ WebViewClient* m_observer = nullptr; |
}; |
} // namespace blink |