[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 1 | // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 5 | // A Predictor object is instantiated once in the browser process, and manages |
| 6 | // both preresolution of hostnames, as well as TCP/IP preconnection to expected |
| 7 | // subresources. |
| 8 | // Most hostname lists are provided by the renderer processes, and include URLs |
| 9 | // that *might* be used in the near future by the browsing user. One goal of |
| 10 | // this class is to cause the underlying DNS structure to lookup a hostname |
| 11 | // before it is really needed, and hence reduce latency in the standard lookup |
| 12 | // paths. |
| 13 | // Subresource relationships are usually acquired from the referrer field in a |
| 14 | // navigation. A subresource URL may be associated with a referrer URL. Later |
| 15 | // navigations may, if the likelihood of needing the subresource is high enough, |
[email protected] | f4ef861ba | 2010-07-28 22:37:23 | [diff] [blame^] | 16 | // cause this module to speculatively create a TCP/IP connection. If there is |
| 17 | // only a low likelihood, then a DNS pre-resolution operation may be performed. |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 18 | |
[email protected] | 3530cd9 | 2010-06-27 06:22:01 | [diff] [blame] | 19 | #ifndef CHROME_BROWSER_NET_PREDICTOR_H_ |
| 20 | #define CHROME_BROWSER_NET_PREDICTOR_H_ |
[email protected] | 32b76ef | 2010-07-26 23:08:24 | [diff] [blame] | 21 | #pragma once |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 22 | |
| 23 | #include <map> |
| 24 | #include <queue> |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 25 | #include <set> |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 26 | #include <string> |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 27 | #include <vector> |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 28 | |
[email protected] | a918f87 | 2010-06-01 14:30:51 | [diff] [blame] | 29 | #include "base/gtest_prod_util.h" |
[email protected] | fd2f8afe | 2009-06-11 21:53:55 | [diff] [blame] | 30 | #include "base/ref_counted.h" |
[email protected] | 3530cd9 | 2010-06-27 06:22:01 | [diff] [blame] | 31 | #include "chrome/browser/net/url_info.h" |
[email protected] | 21dae9b | 2008-11-06 23:32:53 | [diff] [blame] | 32 | #include "chrome/browser/net/referrer.h" |
[email protected] | 3530cd9 | 2010-06-27 06:22:01 | [diff] [blame] | 33 | #include "chrome/common/net/predictor_common.h" |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 34 | #include "net/base/host_port_pair.h" |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 35 | |
[email protected] | fd2f8afe | 2009-06-11 21:53:55 | [diff] [blame] | 36 | namespace net { |
| 37 | class HostResolver; |
[email protected] | 0ac8368 | 2010-01-22 17:46:27 | [diff] [blame] | 38 | } // namespace net |
[email protected] | fd2f8afe | 2009-06-11 21:53:55 | [diff] [blame] | 39 | |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 40 | namespace chrome_browser_net { |
| 41 | |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 42 | typedef chrome_common_net::UrlList UrlList; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 43 | typedef chrome_common_net::NameList NameList; |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 44 | typedef std::map<GURL, UrlInfo> Results; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 45 | |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 46 | // Note that Predictor is not thread safe, and must only be called from |
[email protected] | ec86bea | 2009-12-08 18:35:14 | [diff] [blame] | 47 | // the IO thread. Failure to do so will result in a DCHECK at runtime. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 48 | class Predictor : public base::RefCountedThreadSafe<Predictor> { |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 49 | public: |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 50 | // A version number for prefs that are saved. This should be incremented when |
| 51 | // we change the format so that we discard old data. |
[email protected] | f4ef861ba | 2010-07-28 22:37:23 | [diff] [blame^] | 52 | enum { PREDICTOR_REFERRER_VERSION = 2 }; |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 53 | |
[email protected] | f4ef861ba | 2010-07-28 22:37:23 | [diff] [blame^] | 54 | // Depending on the expected_subresource_use_, we may either make a TCP/IP |
| 55 | // preconnection, or merely pre-resolve the hostname via DNS (or even do |
| 56 | // nothing). The following are the threasholds for taking those actions. |
| 57 | static const double kPreconnectWorthyExpectedValue; |
| 58 | static const double kDNSPreresolutionWorthyExpectedValue; |
| 59 | // Values of expected_subresource_use_ that are less than the following |
| 60 | // threshold will be discarded when we Trim() the values, such as is done when |
| 61 | // the process ends, and some values are persisted. |
| 62 | static const double kPersistWorthyExpectedValue; |
| 63 | |
| 64 | // |max_concurrent| specifies how many concurrent (parallel) prefetches will |
[email protected] | ec86bea | 2009-12-08 18:35:14 | [diff] [blame] | 65 | // be performed. Host lookups will be issued through |host_resolver|. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 66 | Predictor(net::HostResolver* host_resolver, |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 67 | base::TimeDelta max_queue_delay_ms, size_t max_concurrent, |
| 68 | bool preconnect_enabled); |
[email protected] | b2b8b83 | 2009-02-06 19:03:29 | [diff] [blame] | 69 | |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 70 | // Cancel pending requests and prevent new ones from being made. |
| 71 | void Shutdown(); |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 72 | |
| 73 | // In some circumstances, for privacy reasons, all results should be |
| 74 | // discarded. This method gracefully handles that activity. |
| 75 | // Destroy all our internal state, which shows what names we've looked up, and |
| 76 | // how long each has taken, etc. etc. We also destroy records of suggesses |
| 77 | // (cache hits etc.). |
| 78 | void DiscardAllResults(); |
| 79 | |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 80 | // Add hostname(s) to the queue for processing. |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 81 | void ResolveList(const UrlList& urls, |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 82 | UrlInfo::ResolutionMotivation motivation); |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 83 | void Resolve(const GURL& url, |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 84 | UrlInfo::ResolutionMotivation motivation); |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 85 | |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 86 | // Instigate pre-connection to any URLs we predict will be needed after this |
| 87 | // navigation (typically more-embedded resources on a page). |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 88 | void PredictFrameSubresources(const GURL& url); |
[email protected] | 21dae9b | 2008-11-06 23:32:53 | [diff] [blame] | 89 | |
| 90 | // Record details of a navigation so that we can preresolve the host name |
| 91 | // ahead of time the next time the users navigates to the indicated host. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 92 | void LearnFromNavigation(const GURL& referring_url, const GURL& target_url); |
[email protected] | 21dae9b | 2008-11-06 23:32:53 | [diff] [blame] | 93 | |
| 94 | // Dump HTML table containing list of referrers for about:dns. |
| 95 | void GetHtmlReferrerLists(std::string* output); |
| 96 | |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 97 | // Dump the list of currently known referrer domains and related prefetchable |
[email protected] | 21dae9b | 2008-11-06 23:32:53 | [diff] [blame] | 98 | // domains. |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 99 | void GetHtmlInfo(std::string* output); |
| 100 | |
[email protected] | 03c5e86 | 2009-02-17 22:50:14 | [diff] [blame] | 101 | // Discard any referrer for which all the suggested host names are currently |
| 102 | // annotated with no user latency reduction. Also scale down (diminish) the |
| 103 | // total benefit of those that did help, so that their reported contribution |
| 104 | // wll go done by a factor of 2 each time we trim (moving the referrer closer |
| 105 | // to being discarded at a future Trim). |
| 106 | void TrimReferrers(); |
| 107 | |
| 108 | // Construct a ListValue object that contains all the data in the referrers_ |
| 109 | // so that it can be persisted in a pref. |
| 110 | void SerializeReferrers(ListValue* referral_list); |
| 111 | |
| 112 | // Process a ListValue that contains all the data from a previous reference |
| 113 | // list, as constructed by SerializeReferrers(), and add all the identified |
| 114 | // values into the current referrer list. |
| 115 | void DeserializeReferrers(const ListValue& referral_list); |
| 116 | |
[email protected] | ec86bea | 2009-12-08 18:35:14 | [diff] [blame] | 117 | void DeserializeReferrersThenDelete(ListValue* referral_list) { |
| 118 | DeserializeReferrers(*referral_list); |
| 119 | delete referral_list; |
| 120 | } |
| 121 | |
[email protected] | e695fbd6 | 2009-06-30 16:31:54 | [diff] [blame] | 122 | // For unit test code only. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 123 | size_t max_concurrent_dns_lookups() const { |
| 124 | return max_concurrent_dns_lookups_; |
| 125 | } |
[email protected] | e695fbd6 | 2009-06-30 16:31:54 | [diff] [blame] | 126 | |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 127 | // Flag setting to use preconnection instead of just DNS pre-fetching. |
| 128 | bool preconnect_enabled() const { return preconnect_enabled_; } |
| 129 | |
[email protected] | b2b8b83 | 2009-02-06 19:03:29 | [diff] [blame] | 130 | private: |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 131 | friend class base::RefCountedThreadSafe<Predictor>; |
| 132 | FRIEND_TEST_ALL_PREFIXES(PredictorTest, BenefitLookupTest); |
| 133 | FRIEND_TEST_ALL_PREFIXES(PredictorTest, ShutdownWhenResolutionIsPendingTest); |
| 134 | FRIEND_TEST_ALL_PREFIXES(PredictorTest, SingleLookupTest); |
| 135 | FRIEND_TEST_ALL_PREFIXES(PredictorTest, ConcurrentLookupTest); |
| 136 | FRIEND_TEST_ALL_PREFIXES(PredictorTest, MassiveConcurrentLookupTest); |
| 137 | FRIEND_TEST_ALL_PREFIXES(PredictorTest, PriorityQueuePushPopTest); |
| 138 | FRIEND_TEST_ALL_PREFIXES(PredictorTest, PriorityQueueReorderTest); |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 139 | friend class WaitForResolutionHelper; // For testing. |
| 140 | |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 141 | ~Predictor(); |
[email protected] | 7991a23 | 2009-11-06 01:55:48 | [diff] [blame] | 142 | |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 143 | class LookupRequest; |
| 144 | |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 145 | // A simple priority queue for handling host names. |
| 146 | // Some names that are queued up have |motivation| that requires very rapid |
| 147 | // handling. For example, a sub-resource name lookup MUST be done before the |
| 148 | // actual sub-resource is fetched. In contrast, a name that was speculatively |
| 149 | // noted in a page has to be resolved before the user "gets around to" |
| 150 | // clicking on a link. By tagging (with a motivation) each push we make into |
| 151 | // this FIFO queue, the queue can re-order the more important names to service |
| 152 | // them sooner (relative to some low priority background resolutions). |
| 153 | class HostNameQueue { |
| 154 | public: |
| 155 | HostNameQueue(); |
| 156 | ~HostNameQueue(); |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 157 | void Push(const GURL& url, |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 158 | UrlInfo::ResolutionMotivation motivation); |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 159 | bool IsEmpty() const; |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 160 | GURL Pop(); |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 161 | |
| 162 | private: |
| 163 | // The names in the queue that should be serviced (popped) ASAP. |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 164 | std::queue<GURL> rush_queue_; |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 165 | // The names in the queue that should only be serviced when rush_queue is |
| 166 | // empty. |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 167 | std::queue<GURL> background_queue_; |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 168 | |
| 169 | DISALLOW_COPY_AND_ASSIGN(HostNameQueue); |
| 170 | }; |
| 171 | |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 172 | // A map that is keyed with the host/port that we've learned were the cause |
| 173 | // of loading additional URLs. The list of additional targets is held |
| 174 | // in a Referrer instance, which is a value in this map. |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 175 | typedef std::map<GURL, Referrer> Referrers; |
[email protected] | 7c19b87b0 | 2009-01-26 16:19:44 | [diff] [blame] | 176 | |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 177 | // Only for testing. Returns true if hostname has been successfully resolved |
| 178 | // (name found). |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 179 | bool WasFound(const GURL& url) const { |
| 180 | Results::const_iterator it(results_.find(url)); |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 181 | return (it != results_.end()) && |
| 182 | it->second.was_found(); |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 183 | } |
| 184 | |
| 185 | // Only for testing. Return how long was the resolution |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 186 | // or UrlInfo::kNullDuration if it hasn't been resolved yet. |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 187 | base::TimeDelta GetResolutionDuration(const GURL& url) { |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 188 | if (results_.find(url) == results_.end()) |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 189 | return UrlInfo::kNullDuration; |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 190 | return results_[url].resolve_duration(); |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | // Only for testing; |
| 194 | size_t peak_pending_lookups() const { return peak_pending_lookups_; } |
| 195 | |
[email protected] | 8539853 | 2009-06-16 21:32:18 | [diff] [blame] | 196 | // Access method for use by async lookup request to pass resolution result. |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 197 | void OnLookupFinished(LookupRequest* request, const GURL& url, bool found); |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 198 | |
[email protected] | 8539853 | 2009-06-16 21:32:18 | [diff] [blame] | 199 | // Underlying method for both async and synchronous lookup to update state. |
[email protected] | ec86bea | 2009-12-08 18:35:14 | [diff] [blame] | 200 | void LookupFinished(LookupRequest* request, |
[email protected] | c5629c3 | 2010-06-23 01:22:43 | [diff] [blame] | 201 | const GURL& url, bool found); |
[email protected] | 8539853 | 2009-06-16 21:32:18 | [diff] [blame] | 202 | |
[email protected] | 21dae9b | 2008-11-06 23:32:53 | [diff] [blame] | 203 | // Queue hostname for resolution. If queueing was done, return the pointer |
| 204 | // to the queued instance, otherwise return NULL. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 205 | UrlInfo* AppendToResolutionQueue(const GURL& url, |
| 206 | UrlInfo::ResolutionMotivation motivation); |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 207 | |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 208 | // Check to see if too much queuing delay has been noted for the given info, |
| 209 | // which indicates that there is "congestion" or growing delay in handling the |
| 210 | // resolution of names. Rather than letting this congestion potentially grow |
| 211 | // without bounds, we abandon our queued efforts at pre-resolutions in such a |
| 212 | // case. |
| 213 | // To do this, we will recycle |info|, as well as all queued items, back to |
| 214 | // the state they had before they were queued up. We can't do anything about |
| 215 | // the resolutions we've already sent off for processing on another thread, so |
| 216 | // we just let them complete. On a slow system, subject to congestion, this |
| 217 | // will greatly reduce the number of resolutions done, but it will assure that |
| 218 | // any resolutions that are done, are in a timely and hence potentially |
| 219 | // helpful manner. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 220 | bool CongestionControlPerformed(UrlInfo* info); |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 221 | |
| 222 | // Take lookup requests from work_queue_ and tell HostResolver to look them up |
| 223 | // asynchronously, provided we don't exceed concurrent resolution limit. |
[email protected] | ec86bea | 2009-12-08 18:35:14 | [diff] [blame] | 224 | void StartSomeQueuedResolutions(); |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 225 | |
[email protected] | a20bc09 | 2009-06-05 01:34:20 | [diff] [blame] | 226 | // work_queue_ holds a list of names we need to look up. |
| 227 | HostNameQueue work_queue_; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 228 | |
[email protected] | 21dae9b | 2008-11-06 23:32:53 | [diff] [blame] | 229 | // results_ contains information for existing/prior prefetches. |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 230 | Results results_; |
| 231 | |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 232 | // For each URL that we might navigate to (that we've "learned about") |
[email protected] | 21dae9b | 2008-11-06 23:32:53 | [diff] [blame] | 233 | // we have a Referrer list. Each Referrer list has all hostnames we need to |
| 234 | // pre-resolve when there is a navigation to the orginial hostname. |
| 235 | Referrers referrers_; |
| 236 | |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 237 | std::set<LookupRequest*> pending_lookups_; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 238 | |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 239 | // For testing, to verify that we don't exceed the limit. |
| 240 | size_t peak_pending_lookups_; |
[email protected] | b2b8b83 | 2009-02-06 19:03:29 | [diff] [blame] | 241 | |
[email protected] | 1933eb20 | 2009-02-19 18:23:25 | [diff] [blame] | 242 | // When true, we don't make new lookup requests. |
[email protected] | b2b8b83 | 2009-02-06 19:03:29 | [diff] [blame] | 243 | bool shutdown_; |
| 244 | |
[email protected] | e085c30 | 2009-06-01 18:31:36 | [diff] [blame] | 245 | // The number of concurrent lookups currently allowed. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 246 | const size_t max_concurrent_dns_lookups_; |
[email protected] | e085c30 | 2009-06-01 18:31:36 | [diff] [blame] | 247 | |
[email protected] | 602faf3c | 2009-06-27 14:35:44 | [diff] [blame] | 248 | // The maximum queueing delay that is acceptable before we enter congestion |
| 249 | // reduction mode, and discard all queued (but not yet assigned) resolutions. |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 250 | const base::TimeDelta max_dns_queue_delay_; |
[email protected] | 602faf3c | 2009-06-27 14:35:44 | [diff] [blame] | 251 | |
[email protected] | ec86bea | 2009-12-08 18:35:14 | [diff] [blame] | 252 | // The host resovler we warm DNS entries for. |
[email protected] | 94a0d3d9 | 2009-06-27 01:50:14 | [diff] [blame] | 253 | scoped_refptr<net::HostResolver> host_resolver_; |
[email protected] | fd2f8afe | 2009-06-11 21:53:55 | [diff] [blame] | 254 | |
[email protected] | 760d970a | 2010-05-18 00:39:18 | [diff] [blame] | 255 | // Are we currently using preconnection, rather than just DNS resolution, for |
| 256 | // subresources and omni-box search URLs. |
| 257 | bool preconnect_enabled_; |
| 258 | |
[email protected] | 74be069e8 | 2010-06-25 00:12:49 | [diff] [blame] | 259 | DISALLOW_COPY_AND_ASSIGN(Predictor); |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 260 | }; |
| 261 | |
| 262 | } // namespace chrome_browser_net |
| 263 | |
[email protected] | 3530cd9 | 2010-06-27 06:22:01 | [diff] [blame] | 264 | #endif // CHROME_BROWSER_NET_PREDICTOR_H_ |