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

Unified Diff: chrome/browser/io_thread.h

Issue 7467012: Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/io_thread.h
===================================================================
--- chrome/browser/io_thread.h (revision 96009)
+++ chrome/browser/io_thread.h (working copy)
@@ -14,6 +14,7 @@
#include "chrome/browser/browser_process_sub_thread.h"
#include "chrome/browser/net/ssl_config_service_manager.h"
#include "chrome/browser/prefs/pref_member.h"
+#include "chrome/browser/profiles/profile.h"
willchan no longer on Chromium 2011/08/10 16:10:35 I don't think this needs to be here.
rpetterson 2011/08/12 03:12:36 Done.
#include "chrome/common/net/predictor_common.h"
#include "net/base/network_change_notifier.h"
@@ -30,7 +31,6 @@
}
namespace chrome_browser_net {
-class ConnectInterceptor;
class Predictor;
} // namespace chrome_browser_net
@@ -109,23 +109,17 @@
// prefetching should be enabled, and |preconnect_enabled| controls whether
// TCP/IP preconnection is enabled. This should be called by the UI thread.
// It will post a task to the IO thread to perform the actual initialization.
- void InitNetworkPredictor(bool prefetching_enabled,
- base::TimeDelta max_dns_queue_delay,
- size_t max_speculative_parallel_resolves,
- const chrome_common_net::UrlList& startup_urls,
+ void InitNetworkPredictor(const chrome_common_net::UrlList& startup_urls,
base::ListValue* referral_list,
- bool preconnect_enabled);
+ chrome_browser_net::Predictor* predictor);
jar (doing other things) 2011/08/16 01:19:09 This method name is now confusing. It appears tha
- // Handles changing to On The Record mode, discarding confidential data.
- void ChangedToOnTheRecord();
-
// Returns a getter for the URLRequestContext. Only called on the UI thread.
net::URLRequestContextGetter* system_url_request_context_getter();
// Clear all network stack history, including the host cache, as well as
// speculative data about subresources of visited sites, and startup-time
// navigations.
- void ClearNetworkingHistory();
+ void ClearNetworkingHistory(chrome_browser_net::Predictor* predictor);
protected:
virtual void Init();
@@ -148,15 +142,10 @@
void InitSystemRequestContextOnIOThread();
void InitNetworkPredictorOnIOThread(
- bool prefetching_enabled,
- base::TimeDelta max_dns_queue_delay,
- size_t max_speculative_parallel_resolves,
const chrome_common_net::UrlList& startup_urls,
base::ListValue* referral_list,
- bool preconnect_enabled);
+ chrome_browser_net::Predictor* predictor);
- void ChangedToOnTheRecordOnIOThread();
-
// Clears the host cache. Intended to be used to prevent exposing recently
// visited sites on about:net-internals/#dns and about:dns pages. Must be
// called on the IO thread.
@@ -208,9 +197,6 @@
// explicit about destruction order, and ensure that there is no chance that
// these observers would be used accidentally after we have begun to tear
// down.
- chrome_browser_net::ConnectInterceptor* speculative_interceptor_;
- chrome_browser_net::Predictor* predictor_;
-
scoped_ptr<net::ProxyConfigService> system_proxy_config_service_;
scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;

Powered by Google App Engine
This is Rietveld 408576698