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

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

Issue 1131293004: Add cross origin to Blink-driven preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove crossorigin logic Created 5 years, 6 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: 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.

Powered by Google App Engine
This is Rietveld 408576698