summaryrefslogtreecommitdiffstats
path: root/net/net.gyp
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-25 02:29:06 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-25 02:29:06 +0000
commit6b3f964f5de20d1d5d567bf67d16f5b246ac0299 (patch)
treedc0061b10ce3b9a3e52a2eb2e9784d1bad141da8 /net/net.gyp
parent9b41006d15b05b373724cce02c8b458cf173c9b9 (diff)
downloadchromium_src-6b3f964f5de20d1d5d567bf67d16f5b246ac0299.zip
chromium_src-6b3f964f5de20d1d5d567bf67d16f5b246ac0299.tar.gz
chromium_src-6b3f964f5de20d1d5d567bf67d16f5b246ac0299.tar.bz2
Implement exponential back-off mechanism.
Contributed by yzshen@google.com, original review http://codereview.chromium.org/4194001/ Implement exponential back-off mechanism. Enforce it at the URLRequestHttpJob level for all outgoing HTTP requests. The reason why to make this change is that we need back-off logic at a lower enough level to manage all outgoing HTTP traffic, so that the browser won't cause any DDoS attack. This change: 1) patches http://codereview.chromium.org/2487001/show, which is the exponential back-off implementation. 2) resolves conflicts with URLFetcher, by removing its own back-off logic: -- removes url_fetcher_protect.{h,cc}; -- integrates the sliding window mechanism of URLFetcherProtectEntry into RequestThrottlerEntry. 3) resolves conflicts with CloudPrintURLFetcher. 4) makes unit tests of CloudPrintURLFetcher, URLFetcher and URLRequest work. BUG=none TEST=pass all existing tests and also the newly-added request_throttler_unittest.cc Review URL: http://codereview.chromium.org/5276007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67375 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/net.gyp')
-rw-r--r--net/net.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/net.gyp b/net/net.gyp
index a5b1948..a5134da 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -685,6 +685,14 @@
'url_request/url_request_status.h',
'url_request/url_request_test_job.cc',
'url_request/url_request_test_job.h',
+ 'url_request/url_request_throttler_entry.cc',
+ 'url_request/url_request_throttler_entry.h',
+ 'url_request/url_request_throttler_entry_interface.h',
+ 'url_request/url_request_throttler_header_adapter.h',
+ 'url_request/url_request_throttler_header_adapter.cc',
+ 'url_request/url_request_throttler_header_interface.h',
+ 'url_request/url_request_throttler_manager.cc',
+ 'url_request/url_request_throttler_manager.h',
'url_request/view_cache_helper.cc',
'url_request/view_cache_helper.h',
'websockets/websocket.cc',
@@ -960,6 +968,7 @@
'tools/dump_cache/url_utilities.cc',
'tools/dump_cache/url_utilities_unittest.cc',
'url_request/url_request_job_tracker_unittest.cc',
+ 'url_request/url_request_throttler_unittest.cc',
'url_request/url_request_unittest.cc',
'url_request/url_request_unittest.h',
'url_request/view_cache_helper_unittest.cc',