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

Unified Diff: components/network_hints/renderer/prescient_networking_dispatcher.h

Issue 899883004: Added chrome-side support for link rel=preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed formatting nit Created 5 years, 10 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: components/network_hints/renderer/prescient_networking_dispatcher.h
diff --git a/components/network_hints/renderer/prescient_networking_dispatcher.h b/components/network_hints/renderer/prescient_networking_dispatcher.h
index 9b107390df79edf1febe4ebbfea8974439d34266..3b2219e48d5a58f4234cd005579329bb2369f353 100644
--- a/components/network_hints/renderer/prescient_networking_dispatcher.h
+++ b/components/network_hints/renderer/prescient_networking_dispatcher.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "components/network_hints/renderer/renderer_dns_prefetch.h"
+#include "components/network_hints/renderer/renderer_preconnect.h"
#include "third_party/WebKit/public/platform/WebPrescientNetworking.h"
namespace network_hints {
@@ -19,9 +20,11 @@ class PrescientNetworkingDispatcher : public blink::WebPrescientNetworking {
~PrescientNetworkingDispatcher() override;
void prefetchDNS(const blink::WebString& hostname) override;
+ void preconnect(const blink::WebURL& url) override;
private:
network_hints::RendererDnsPrefetch dns_prefetch_;
+ network_hints::RendererPreconnect preconnect_;
DISALLOW_COPY_AND_ASSIGN(PrescientNetworkingDispatcher);
};
« no previous file with comments | « components/network_hints/renderer/BUILD.gn ('k') | components/network_hints/renderer/prescient_networking_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698