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

Unified Diff: chrome/browser/net/dns_global.h

Issue 38007: Tell DNS prefetch when search URL is likely so that prewarming can be done... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/net/dns_global.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/dns_global.h
===================================================================
--- chrome/browser/net/dns_global.h (revision 43988)
+++ chrome/browser/net/dns_global.h (working copy)
@@ -42,10 +42,15 @@
void EnableDnsPrefetch(bool enable);
void RegisterPrefs(PrefService* local_state);
void RegisterUserPrefs(PrefService* user_prefs);
+
// Renderer bundles up list and sends to this browser API via IPC.
void DnsPrefetchList(const NameList& hostnames);
+
// This API is used by the autocomplete popup box (as user types).
-void DnsPrefetchUrl(const GURL& url);
+// Search URL's may be "prewarmed" above and beyond the DNS resolution.
+void DnsPrefetchUrl(const GURL& url, bool is_search_url);
+
+// When displaying info in about:dns, the following API is called.
void DnsPrefetchGetHtmlInfo(std::string* output);
//------------------------------------------------------------------------------
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/net/dns_global.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698