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

Unified Diff: third_party/WebKit/public/platform/resource_hints.mojom

Issue 2095303002: sendNavigationHint with mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sendNavigationHint mojo Created 4 years, 6 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 | « third_party/WebKit/Source/platform/network/NetworkHints.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/resource_hints.mojom
diff --git a/third_party/WebKit/public/platform/resource_hints.mojom b/third_party/WebKit/public/platform/resource_hints.mojom
index 2d241595d963db1e7356dc11d07713c88a5fb7f0..0212c3265209b72c50539fc8d57cb3fd79842c00 100644
--- a/third_party/WebKit/public/platform/resource_hints.mojom
+++ b/third_party/WebKit/public/platform/resource_hints.mojom
@@ -6,6 +6,12 @@ module blink.mojom;
import "url/mojo/url.mojom";
+enum NavigationHintType {
+ LINK_MOUSE_DOWN,
+ LINK_TAP_UNCONFIRMED,
+ LINK_TAP_DOWN,
+};
+
// The ResourceHintsHandler sends preconnect/preresolve requests based
// on link tags/headers. See the corresponding interface in
// content/public/resource_hints.h.
@@ -23,4 +29,7 @@ interface ResourceHintsHandler {
// Resolves the given URL's host, so subsequent requests will hit the host
// cache.
Preresolve(url.mojom.Url url);
+
+ // Send a hint that a navigation to |url| is likely to happen.
+ SendNavigationHint(url.mojom.Url url, NavigationHintType type);
};
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkHints.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698