summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_throttler_manager.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 13:21:15 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 13:21:15 +0000
commita1d4ab0736c3706165d284fa76c95d67f6ab3bf9 (patch)
treea2e9d0d10c021aee60ab59d2619750546785654b /net/url_request/url_request_throttler_manager.cc
parent54acdbf5115fb8ff7484a822ee98af1615977da0 (diff)
downloadchromium_src-a1d4ab0736c3706165d284fa76c95d67f6ab3bf9.zip
chromium_src-a1d4ab0736c3706165d284fa76c95d67f6ab3bf9.tar.gz
chromium_src-a1d4ab0736c3706165d284fa76c95d67f6ab3bf9.tar.bz2
Introduce a delegate to avoid hardcoding "chrome-extension" in net/.
Also, deal with a couple of TODOs in the throttling code, and remove metrics we no longer need since we are no longer running field trials for this code. BUG=119760 Review URL: https://chromiumcodereview.appspot.com/10440119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141000 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_throttler_manager.cc')
-rw-r--r--net/url_request/url_request_throttler_manager.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/net/url_request/url_request_throttler_manager.cc b/net/url_request/url_request_throttler_manager.cc
index 5c50558..6d26510 100644
--- a/net/url_request/url_request_throttler_manager.cc
+++ b/net/url_request/url_request_throttler_manager.cc
@@ -18,7 +18,6 @@ const unsigned int URLRequestThrottlerManager::kRequestsBetweenCollecting = 200;
URLRequestThrottlerManager::URLRequestThrottlerManager()
: requests_since_last_gc_(0),
- enforce_throttling_(true),
enable_thread_checks_(false),
logged_for_localhost_disabled_(false),
registered_from_thread_(base::kInvalidThreadId) {
@@ -35,10 +34,8 @@ URLRequestThrottlerManager::~URLRequestThrottlerManager() {
NetworkChangeNotifier::RemoveIPAddressObserver(this);
NetworkChangeNotifier::RemoveConnectionTypeObserver(this);
- // Since, for now, the manager object might conceivably go away before
- // the entries, detach the entries' back-pointer to the manager.
- //
- // TODO(joi): Revisit whether to make entries non-refcounted.
+ // Since the manager object might conceivably go away before the
+ // entries, detach the entries' back-pointer to the manager.
UrlEntryMap::iterator i = url_entries_.begin();
while (i != url_entries_.end()) {
if (i->second != NULL) {
@@ -144,14 +141,6 @@ bool URLRequestThrottlerManager::enable_thread_checks() const {
return enable_thread_checks_;
}
-void URLRequestThrottlerManager::set_enforce_throttling(bool enforce) {
- enforce_throttling_ = enforce;
-}
-
-bool URLRequestThrottlerManager::enforce_throttling() {
- return enforce_throttling_;
-}
-
void URLRequestThrottlerManager::set_net_log(NetLog* net_log) {
DCHECK(net_log);
net_log_ = BoundNetLog::Make(net_log,