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

Unified Diff: components/network_hints/renderer/prescient_networking_dispatcher.h

Issue 2043083002: Speculatively launch Service Workers on mouse/touch events. [2/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert BUILD.gn Created 4 years, 5 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: components/network_hints/renderer/prescient_networking_dispatcher.h
diff --git a/components/network_hints/renderer/prescient_networking_dispatcher.h b/components/network_hints/renderer/prescient_networking_dispatcher.h
index a4e7ecd88028a6a5c1a88a1d14311236a0ee3d3c..c7f68ec437427ac1bda75daef3cf5f5861caf2cd 100644
--- a/components/network_hints/renderer/prescient_networking_dispatcher.h
+++ b/components/network_hints/renderer/prescient_networking_dispatcher.h
@@ -10,6 +10,10 @@
#include "components/network_hints/renderer/renderer_preconnect.h"
#include "third_party/WebKit/public/platform/WebPrescientNetworking.h"
+namespace blink {
+enum class WebNavigationHintType;
+}
+
namespace network_hints {
// The main entry point from blink for sending DNS prefetch requests to the
@@ -22,6 +26,8 @@ class PrescientNetworkingDispatcher : public blink::WebPrescientNetworking {
void prefetchDNS(const blink::WebString& hostname) override;
void preconnect(const blink::WebURL& url,
const bool allow_credentials) override;
+ void sendNavigationHint(const blink::WebURL& url,
+ blink::WebNavigationHintType type) override;
private:
network_hints::RendererDnsPrefetch dns_prefetch_;

Powered by Google App Engine
This is Rietveld 408576698