diff options
Diffstat (limited to 'chrome/browser/net/predictor.h')
-rw-r--r-- | chrome/browser/net/predictor.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h index 710b8ae..1ed7007 100644 --- a/chrome/browser/net/predictor.h +++ b/chrome/browser/net/predictor.h @@ -43,6 +43,7 @@ class WaitableEvent; namespace net { class HostResolver; +class URLRequestContextGetter; } // namespace net class IOThread; @@ -106,7 +107,8 @@ class Predictor { virtual void InitNetworkPredictor(PrefService* user_prefs, PrefService* local_state, - IOThread* io_thread); + IOThread* io_thread, + net::URLRequestContextGetter* getter); // The Omnibox has proposed a given url to the user, and if it is a search // URL, then it also indicates that this is preconnectable (i.e., we could @@ -431,6 +433,10 @@ class Predictor { scoped_ptr<InitialObserver> initial_observer_; + // Reference to URLRequestContextGetter from the Profile which owns the + // predictor. Used by Preconnect. + scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; + // Status of speculative DNS resolution and speculative TCP/IP connection // feature. bool predictor_enabled_; @@ -505,7 +511,8 @@ class SimplePredictor : public Predictor { virtual ~SimplePredictor() {} virtual void InitNetworkPredictor(PrefService* user_prefs, PrefService* local_state, - IOThread* io_thread); + IOThread* io_thread, + net::URLRequestContextGetter* getter); virtual void ShutdownOnUIThread(PrefService* user_prefs); }; |