Index: components/network_hints/renderer/renderer_preconnect.h |
diff --git a/components/network_hints/renderer/renderer_preconnect.h b/components/network_hints/renderer/renderer_preconnect.h |
index 39dac9312ba6fe4e4371ccb84a5456fd1b350430..710bf4ed6c080c8d19fd92cb5c332a49b4c628f2 100644 |
--- a/components/network_hints/renderer/renderer_preconnect.h |
+++ b/components/network_hints/renderer/renderer_preconnect.h |
@@ -20,6 +20,10 @@ |
#include "base/macros.h" |
#include "url/gurl.h" |
+namespace blink { |
+enum class WebNavigationHintType; |
+} |
+ |
namespace network_hints { |
// An internal interface to the network_hints component for efficiently sending |
@@ -32,6 +36,10 @@ class RendererPreconnect { |
// Submit a preconnect request for a single connection. |
void Preconnect(const GURL& url, bool allow_credentials); |
+ // Submit a navigation hint of mouse/touch events to speculatively launche |
+ // Service Workers. |
+ void NavigationHint(const GURL& url, blink::WebNavigationHintType type); |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(RendererPreconnect); |