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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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: content/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index de19386b53e1830b4fd3acc6fc5d21396a0fea27..60f78f1df2389d3ffc7c3c083ede7114e408b158 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -12,6 +12,7 @@
#include "content/common/webkitplatformsupport_impl.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebPreconnectMotivation.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerRepository.h"
namespace cc {
@@ -52,6 +53,9 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
virtual bool isLinkVisited(unsigned long long linkHash);
virtual WebKit::WebMessagePortChannel* createMessagePortChannel();
virtual void prefetchHostName(const WebKit::WebString&);
+ virtual void preconnect(const WebKit::WebURL& url,
jam 2013/05/01 14:58:11 this method and the above (prefetchHostName) are j
kouhei (in TOK) 2013/05/02 10:15:25 prefetchHostName was not a chrome specific feature
kouhei (in TOK) 2013/05/07 09:16:12 Updated the patch to use WebPrerenderingSupport in
+ WebKit::WebPreconnectMotivation motivation,
+ uint32_t motivationVariationId);
virtual void cacheMetadata(
const WebKit::WebURL&, double, const char*, size_t);
virtual WebKit::WebString defaultLocale();

Powered by Google App Engine
This is Rietveld 408576698