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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2535483002: Plumb site engagement to the renderer process. (Closed)
Patch Set: Address comments Created 4 years, 1 month 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/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index a650b6fdd511425e6de5ed50782712bd0fdb9a69..944d8a711d4710e7b88fc6e99bbd75f933c71c85 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -11,6 +11,7 @@
#include "WebHistoryItem.h"
#include "public/platform/WebCachePolicy.h"
#include "public/platform/WebURLError.h"
+#include "public/platform/site_engagement.mojom-shared.h"
namespace blink {
@@ -433,6 +434,11 @@ class WebLocalFrame : public WebFrame {
// coordinates.
virtual void saveImageAt(const WebPoint&) = 0;
+ // Site engagement --------------------------------------------------------
+
+ // Sets the site engagement level for this frame's document.
+ virtual void setEngagementLevel(mojom::EngagementLevel) = 0;
+
// TEMP: Usage count for chrome.loadtimes deprecation.
// This will be removed following the deprecation.
virtual void usageCountChromeLoadTimes(const WebString& metric) = 0;

Powered by Google App Engine
This is Rietveld 408576698