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

Unified Diff: public/web/WebPageImportanceSignals.h

Issue 1345023002: Expose WebPageImportanceSignals to embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: issue pageImportanceSignalsUpdated from itself Created 5 years, 3 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/web/WebViewImpl.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698