diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 18:03:11 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 18:03:11 +0000 |
commit | 060574563cd537d137226d4e73f6211407e1fac1 (patch) | |
tree | da29294ee9e44225c76825b45a9c09e3b1f25d21 /chrome/browser/net/predictor.h | |
parent | 7371fff76ce7844f23994120714852ced26eaa5d (diff) | |
download | chromium_src-060574563cd537d137226d4e73f6211407e1fac1.zip chromium_src-060574563cd537d137226d4e73f6211407e1fac1.tar.gz chromium_src-060574563cd537d137226d4e73f6211407e1fac1.tar.bz2 |
Revert 54771 - Enable speculative preconnection by default
Added histogram to track utilization (vs waste).
[The stability bot was reporting problems, so I'm reverting]
r=mbelshe
Review URL: http://codereview.chromium.org/3026038
TBR=jar@chromium.org
Review URL: http://codereview.chromium.org/3090011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/predictor.h')
-rw-r--r-- | chrome/browser/net/predictor.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h index c613093..a5b71e7 100644 --- a/chrome/browser/net/predictor.h +++ b/chrome/browser/net/predictor.h @@ -83,11 +83,8 @@ class Predictor : public base::RefCountedThreadSafe<Predictor> { void Resolve(const GURL& url, UrlInfo::ResolutionMotivation motivation); - // Instigate pre-connection to any URLs, or pre-resolution of related host, - // that we predict will be needed after this navigation (typically - // more-embedded resources on a page). This method will actually post a task - // to do the actual work, so as not to jump ahead of the frame navigation that - // instigated this activity. + // Instigate pre-connection to any URLs we predict will be needed after this + // navigation (typically more-embedded resources on a page). void PredictFrameSubresources(const GURL& url); // Record details of a navigation so that we can preresolve the host name @@ -141,6 +138,8 @@ class Predictor : public base::RefCountedThreadSafe<Predictor> { FRIEND_TEST_ALL_PREFIXES(PredictorTest, PriorityQueueReorderTest); friend class WaitForResolutionHelper; // For testing. + ~Predictor(); + class LookupRequest; // A simple priority queue for handling host names. @@ -175,13 +174,6 @@ class Predictor : public base::RefCountedThreadSafe<Predictor> { // in a Referrer instance, which is a value in this map. typedef std::map<GURL, Referrer> Referrers; - ~Predictor(); - - // Perform actual resolution or preconnection to subresources now. This is - // an internal worker method that is reached via a post task from - // PredictFrameSubresources(). - void PrepareFrameSubresources(const GURL& url); - // Only for testing. Returns true if hostname has been successfully resolved // (name found). bool WasFound(const GURL& url) const { |