Index: chrome/browser/net/predictor.h |
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h |
index d1983e36f486e844e31edfd0ec5453cd35796fae..9ff5934a4d3819a030986acf51a12cc6508b321a 100644 |
--- a/chrome/browser/net/predictor.h |
+++ b/chrome/browser/net/predictor.h |
@@ -115,6 +115,9 @@ class Predictor { |
// TODO(jar): We should do a persistent field trial to validate/optimize this. |
static const int kMaxUnusedSocketLifetimeSecondsWithoutAGet; |
+ // The default value of the credentials flag when preconnecting. |
+ static const bool kAllowCredentialsOnPreconnect; |
+ |
// |max_concurrent| specifies how many concurrent (parallel) prefetches will |
// be performed. Host lookups will be issued through |host_resolver|. |
explicit Predictor(bool preconnect_enabled, bool predictor_enabled); |
@@ -243,12 +246,14 @@ class Predictor { |
// May be called from either the IO or UI thread and will PostTask |
// to the IO thread if necessary. |
void PreconnectUrl(const GURL& url, const GURL& first_party_for_cookies, |
- UrlInfo::ResolutionMotivation motivation, int count); |
+ UrlInfo::ResolutionMotivation motivation, int count, |
+ bool allow_credentials); |
void PreconnectUrlOnIOThread(const GURL& url, |
const GURL& first_party_for_cookies, |
UrlInfo::ResolutionMotivation motivation, |
- int count); |
+ int count, |
+ bool allow_credentials); |
// ------------- End IO thread methods. |