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

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: 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/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 653d38cecace3987bc813b8c8071628f84cf0578..401570fc1f16531be68c62199be93efdb89be500 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/WebKit/chromium/public/WebPreconnectMotivation.h"
#include "v8/include/v8.h"
class GURL;
@@ -205,6 +206,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/01 14:58:11 nit: google c++ naming style (i.e. motivation_vari
virtual bool ShouldOverridePageVisibilityState(
const RenderView* render_view,
WebKit::WebPageVisibilityState* override_state) const;

Powered by Google App Engine
This is Rietveld 408576698