Update the Preconnect logic to use the new HttpStreamFactory for
creating connections rather than doing it manually.

With this update, I believe we no longer need to avoid preconnects
through proxies.  The new logic can handle that case.

Also updated the predictor_api slightly for the next wave of work.

BUG=none
TEST=existing

Review URL: http://codereview.chromium.org/3226011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58464 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index f2bb2bda..c840a00 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -96,6 +96,9 @@
   // preconnect to the search server).
   void AnticipateOmniboxUrl(const GURL& url, bool preconnectable);
 
+  // Preconnect a URL and all of its subresource domains.
+  void PreconnectUrlAndSubresources(const GURL& url);
+
   // Record details of a navigation so that we can preresolve the host name
   // ahead of time the next time the users navigates to the indicated host.
   // Should only be called when urls are distinct, and they should already be