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

Unified Diff: components/network_hints/renderer/renderer_dns_prefetch.cc

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/renderer_dns_prefetch.cc
diff --git a/components/network_hints/renderer/renderer_dns_prefetch.cc b/components/network_hints/renderer/renderer_dns_prefetch.cc
index 70980371dbbe817eb051e10a4214ffb96bbda621..a9326b67cdf2e8494edc7cd6c2eed4ffe7c9ceaa 100644
--- a/components/network_hints/renderer/renderer_dns_prefetch.cc
+++ b/components/network_hints/renderer/renderer_dns_prefetch.cc
@@ -9,6 +9,7 @@
#include <ctype.h>
#include "base/bind.h"
+#include "base/location.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "components/network_hints/common/network_hints_common.h"
@@ -146,7 +147,7 @@ void RendererDnsPrefetch::DnsPrefetchNames(size_t max_count) {
network_hints::LookupRequest request;
request.hostname_list = names;
- RenderThread::Get()->Send(new DnsPrefetchMsg_RequestPrefetch(request));
+ RenderThread::Get()->Send(new NetworkHintsMsg_DNSPrefetch(request));
}
// is_numeric_ip() checks to see if all characters in name are either numeric,
@@ -162,4 +163,4 @@ bool RendererDnsPrefetch::is_numeric_ip(const char* name, size_t length) {
return true;
}
-} // namespcae predictor
+} // namespace predictor

Powered by Google App Engine
This is Rietveld 408576698