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

Unified Diff: Source/Platform/chromium/public/WebPrerenderingSupport.h

Issue 14746002: Add WebPrescientNetworking to trigger preconnect from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 'use static_cast / no pure virtual Created 7 years, 7 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: Source/Platform/chromium/public/WebPrerenderingSupport.h
diff --git a/Source/Platform/chromium/public/WebPrerenderingSupport.h b/Source/Platform/chromium/public/WebPrerenderingSupport.h
index a2672911fa50a83358d2bf4b0996fd5493806ba2..479d882215656ace95f74cbaae9cf78ee5865ec8 100644
--- a/Source/Platform/chromium/public/WebPrerenderingSupport.h
+++ b/Source/Platform/chromium/public/WebPrerenderingSupport.h
@@ -32,10 +32,12 @@
#define WebPrerenderingSupport_h
#include "WebCommon.h"
+#include "WebPreconnectMotivation.h"
namespace WebKit {
class WebPrerender;
+class WebURL;
class WebPrerenderingSupport {
public:
@@ -43,6 +45,11 @@ public:
WEBKIT_EXPORT static void shutdown();
WEBKIT_EXPORT static WebPrerenderingSupport* current();
+ // When a page navigation is speculated, preconnect is triggered to hide
+ // session initialization latency to the server providing the page resource.
+ virtual void preconnect(const WebURL& url,
+ WebPreconnectMotivation motivation) {}
kouhei (in TOK) 2013/05/09 03:19:29 This is to enable Chromium to be compiled before t
tkent 2013/05/09 03:31:16 It's a common way. However you should put "{ }" (s
kouhei (in TOK) 2013/05/09 03:42:55 Done.
+
// A prerender link element is added when it is inserted into a document.
virtual void add(const WebPrerender&) = 0;

Powered by Google App Engine
This is Rietveld 408576698