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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use WebPrerenderingSupport instead of platform API / removed motivationId 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: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 8d3c7379d2b158d6e71b2ea15778ee6d0685fc28..728c41293b478fe8eb3ec3ff0a27cf63d2a8e5cf 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -15,6 +15,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityState.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebPreconnectMotivation.h"
#include "v8/include/v8.h"
class GURL;
@@ -213,6 +214,9 @@ class CONTENT_EXPORT ContentRendererClient {
size_t length);
virtual bool IsLinkVisited(unsigned long long link_hash);
virtual void PrefetchHostName(const char* hostname, size_t length) {}
+ virtual void Preconnect(const GURL& url,
+ WebKit::WebPreconnectMotivation motivation,
+ uint32_t motivationVariationId) {}
jam 2013/05/07 16:22:36 are changes to this file leftover?
kouhei (in TOK) 2013/05/07 16:30:47 Yes. This needs to be removed. Thank you for point
virtual bool ShouldOverridePageVisibilityState(
const RenderView* render_view,
WebKit::WebPageVisibilityState* override_state) const;

Powered by Google App Engine
This is Rietveld 408576698