summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/preconnect.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/preconnect.h')
-rw-r--r--chrome/browser/net/preconnect.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/net/preconnect.h b/chrome/browser/net/preconnect.h
index 5251c05..8289625 100644
--- a/chrome/browser/net/preconnect.h
+++ b/chrome/browser/net/preconnect.h
@@ -23,6 +23,10 @@ class Preconnect : public net::CompletionCallback {
static void PreconnectOnIOThread(const GURL& url);
+ static void SetPreconnectDespiteProxy(bool status) {
+ preconnect_despite_proxy_ = status;
+ }
+
private:
Preconnect() {}
@@ -33,6 +37,12 @@ class Preconnect : public net::CompletionCallback {
// IO Callback which whould be performed when the connection is established.
virtual void RunWithParams(const Tuple1<int>& params);
+ // Preconnections are currently conservative, and do nothing if there is a
+ // chance that a proxy may be used. This boolean allows proxy settings to
+ // be ignored (presumably because a user knows that the proxy won't be doing
+ // much work anway).
+ static bool preconnect_despite_proxy_;
+
DISALLOW_COPY_AND_ASSIGN(Preconnect);
};
} // chrome_browser_net