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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 1303833002: Add WebPageImportanceSignals::issuedNonGetFetchFromScript() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase fixes 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
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 75d76a9b20d39fa8306b9ddbd9849d641f01dcba..4b93ad32d30208a1d7021670191b080869f754a3 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -77,6 +77,7 @@
#include "public/web/WebInputEvent.h"
#include "public/web/WebKit.h"
#include "public/web/WebNode.h"
+#include "public/web/WebPageImportanceSignals.h"
#include "public/web/WebPlugin.h"
#include "public/web/WebPopupMenuInfo.h"
#include "public/web/WebSelection.h"
@@ -1006,4 +1007,10 @@ FloatSize ChromeClientImpl::elasticOverscroll() const
return m_webView->elasticOverscroll();
}
+void ChromeClientImpl::observedNonGetFetchFromScript() const
+{
+ if (m_webView->pageImportanceSignals())
+ m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698