summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Merge 73189 - net: disable DNS lookup tests.agl@chromium.org2011-02-073-51/+1
| | | | | | | | | | | | | | | | These tests have yielded useful data and I'll probably tweak them for the future. However, I want a CL which disables them so that I can merge it into the release branch for M10. BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/6287023 TBR=agl@chromium.org Review URL: http://codereview.chromium.org/6368132 git-svn-id: svn://svn.chromium.org/chrome/branches/648/src@73997 0039d316-1c4b-4281-b951-d872f2087c98
* Merge 73402 - Disk cache: Disable the throttling experiment.rvargas@google.com2011-02-021-12/+1
| | | | | | | | | | | | | | | This is intended for the beta/stable channels. BUG=none TEST=none TBR=gavinp Review URL: http://codereview.chromium.org/6286036 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/6286039 git-svn-id: svn://svn.chromium.org/chrome/branches/648/src@73409 0039d316-1c4b-4281-b951-d872f2087c98
* More net/ header/implementation method reordering.erg@google.com2011-01-2114-878/+913
| | | | | | | | | | | (Contains some minor de-inlining.) BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6263010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72232 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the newly added OverrideUserAgent net test so that it works in ↵ananta@chromium.org2011-01-211-1/+5
| | | | | | | | | | | | | | ChromeFrame where the chromeframe suffix is added to the outgoing UA. BUG=none TEST=Existing OverideUserAgent test should pass in the regular and ChromeFrame case. R=wtc Review URL: http://codereview.chromium.org/6369008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72228 0039d316-1c4b-4281-b951-d872f2087c98
* Disable enforced throttling for URL requests.yzshen@chromium.org2011-01-211-9/+2
| | | | | | | | | | | | The throttling feature rejects outbound HTTP requests to a server for a period of time, when it finds that the server is returning 5XX. This change disables the feature. TEST=none BUG=70412 Review URL: http://codereview.chromium.org/6369007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72214 0039d316-1c4b-4281-b951-d872f2087c98
* The CertVerifierJob destructor should delete canceled requests.wtc@google.com2011-01-212-4/+42
| | | | | | | | | | | | | Add a job to inflight_ only after the job's worker has started successfully. R=agl BUG=63357,67289 TEST=net_unittests --gtest_filter=CertVerifierTest.CancelRequestThenQuit should not leak a CertVerifierRequest object under valgrind. Review URL: http://codereview.chromium.org/5973004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72203 0039d316-1c4b-4281-b951-d872f2087c98
* Enable session resumption in SSLServerSocketNSS and unit testshclam@chromium.org2011-01-215-22/+2
| | | | | | | | | | | | SSL_ConfigServerSessionIDCache() is being used in SSLServerSocketNSS and enabling session resumption since passes are now passing. BUG=67236 TEST=net_unittests, remoting_unittests Review URL: http://codereview.chromium.org/6370008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72186 0039d316-1c4b-4281-b951-d872f2087c98
* More net/ reordering.erg@google.com2011-01-2124-940/+1050
| | | | | | | | | | | | | | In addition to the normal method reordering, this patch also deinlines net/base/test_completion_callback.h and places the compiled code in the net_test_support target. Minimization of that header also required adding includes in a few unit tests. BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6341004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72162 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the check for the obsolete CERT_TRUST_IS_NOT_TIME_NESTEDwtc@google.com2011-01-211-3/+2
| | | | | | | | | | | error status. CertGetCertificateChain no longer detects the error. R=agl BUG=70210 TEST=none Review URL: http://codereview.chromium.org/6331009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72159 0039d316-1c4b-4281-b951-d872f2087c98
* Honor User-Agent header added by WebCorecaseq@google.com2011-01-215-13/+57
| | | | | | | | | | | | | - do not strip User-Agent while flattening headers in renderer - do not override User-Agent header in the network stack if one is already supplied by higher level; - added RequestHeaders::SetHeaderIfMissing TEST=URLRequestTestHTTP.OverrideUserAgent BUG=http://crbug.com/67063 Review URL=http://codereview.chromium.org/6065008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72131 0039d316-1c4b-4281-b951-d872f2087c98
* Remove obsolete base/lock.h and fix up callers to use the new header file andbrettw@chromium.org2011-01-2129-101/+101
| | | | | | | | | | | the base namespace. Fix several files including lock.h unnecessarily. BUG=none TEST=none Original review=http://codereview.chromium.org/6142009/ Patch by leviw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72106 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: More data files for unit tests.rvargas@google.com2011-01-2124-0/+776
| | | | | | | | | | | BUG=69135 TEST=none TBR=gavinp Review URL: http://codereview.chromium.org/6300009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72063 0039d316-1c4b-4281-b951-d872f2087c98
* Handle error case on SSL read which was not properly exiting.mbelshe@chromium.org2011-01-211-1/+1
| | | | | | | | | BUG=none TEST=<this is the test> Review URL: http://codereview.chromium.org/6338013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72059 0039d316-1c4b-4281-b951-d872f2087c98
* Memory leak fix, log file reopen, remote ip fix, connection idle timeout,mbelshe@chromium.org2011-01-212-104/+258
| | | | | | | | | | | | | | | | | | | | pidfile. SPDY frames were leaking when used with DataFrame and OutputList. HUP signal will now reopen the log file. Remote IP obtained for 'forward-ip-header' was incorrect. Added connection idle timeout. Fixed up pidfile handling. Flip server now creates and locks a pid file. Patch from Kevin Lindsay: kelindsay@gmail.com BUG=none TEST=self Review URL: http://codereview.chromium.org/6332010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72046 0039d316-1c4b-4281-b951-d872f2087c98
* Allow IO operations in destructor of net::NetworkConfigWatcherMacThreadrsimha@chromium.org2011-01-201-0/+9
| | | | | | | | | | | | | | | | | | | | The destructor of net::NetworkConfigWatcherMacThread ends up calling PlatformThread::Join(), an operation that needs to be done only from an IO thread. This currently causes a DCHECK to fire in base::ThreadRestrictions. The bug was discovered by running the sync integration tests on a mac trybot. The tests create Profile objects during setup, that indirectly call ~NetworkConfigWatcherMacThread() from their destructors. This patch allows IO operations in ~NetworkConfigWatcherMacThread() using a ScopedAllowIO. BUG=70190 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/6353008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72030 0039d316-1c4b-4281-b951-d872f2087c98
* URLRequest::PrepareToRestart() call job_->Kill() and OrphanJob(). rvargas@google.com2011-01-201-1/+0
| | | | | | | | | | | | | | | | | But OrphanJob() call job_->Kill() internally, so first Kill() call in PrepareToRestart() is not needed. This changelist remove the duplicated Kill() call. BUG=chromium:69937 TEST=pass net_unittests. Patch provided by toyoshim@google.com. Original review: http://codereview.chromium.org/6373002/ Review URL: http://codereview.chromium.org/6250021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72015 0039d316-1c4b-4281-b951-d872f2087c98
* Reorder the methods in net/url_request/.erg@google.com2011-01-2020-1248/+1247
| | | | | | | | | BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6382003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72013 0039d316-1c4b-4281-b951-d872f2087c98
* Add an OWNERS file to net.wtc@chromium.org2011-01-201-0/+10
| | | | | | | | | R=willchan BUG=none TEST=none Review URL: http://codereview.chromium.org/6368010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72008 0039d316-1c4b-4281-b951-d872f2087c98
* Add OWNERS file for net/ftpphajdan.jr@chromium.org2011-01-201-0/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6265012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71975 0039d316-1c4b-4281-b951-d872f2087c98
* Add a flag to the in-memory-server to force SPDY even if SSL-NPN didn'tmbelshe@chromium.org2011-01-201-15/+30
| | | | | | | | | | | negotiate it. This is used for debugging. BUG=none TEST=none Review URL: http://codereview.chromium.org/6291004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71891 0039d316-1c4b-4281-b951-d872f2087c98
* Even more reordering the methods in headers and implementation in net/.erg@google.com2011-01-2038-655/+657
| | | | | | | | | BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6314010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71880 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust comments for new Source/ location.dilmah@chromium.org2011-01-192-2/+2
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6279005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71825 0039d316-1c4b-4281-b951-d872f2087c98
* .c Feature to disable field trials in old versions of Chromium. Field trialsrtenneti@chromium.org2011-01-191-4/+7
| | | | | | | | | | | | | | tests are (usually) monitored for a fixed length of time. With this change field trial tests turn them selves off (will use the default group) after the expiration time (specified in the Field Trial constructor). BUG=13463 TEST=field_trial_unittests tests this code thorougly. spdy session and testing field_trials in renderer process would be very helpful. thanks much. Review URL: http://codereview.chromium.org/6317004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71820 0039d316-1c4b-4281-b951-d872f2087c98
* Remove wstring from TemplateURL and friends.avi@chromium.org2011-01-193-14/+14
| | | | | | | | | | | Re-landing r71485 (which was reverted in r71500). BUG=23581 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6278007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71814 0039d316-1c4b-4281-b951-d872f2087c98
* net: lookup OCSP cache function with dlsym.agl@chromium.org2011-01-191-20/+51
| | | | | | | | | | | | | | | Weak symbols are either broken or they don't work the way that we need. Either way, the current weak symbol based scheme is causing runtime-linker aborts on systems without NSS 3.12.6. This change switches to using dlsym to lookup the symbol at runtime. BUG=69345 TEST=Run chrome on systems with libnss.so < 3.12.6 http://codereview.chromium.org/6250008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71796 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove prefix net:: from some places that already are in namespace net.tfarina@chromium.org2011-01-1911-69/+69
| | | | | | | | | | | This should address the wtc review in http://codereview.chromium.org/6338002/ BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/6322003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71787 0039d316-1c4b-4281-b951-d872f2087c98
* Regkey functions return error code instead of boolamit@chromium.org2011-01-193-15/+13
| | | | | | | | | | | | | | | | | | | | | | Change the Regkey helper to consistently use and return LONG instead of bool. Fix RegKey usage all over the code base and get rid of workarounds due to lack of return value. Reviewers: brettw: everything (skip parts for other reviewers if you wish) robertshield,grt: chrome_frame, installer siggi: ceee BUG=none TEST=covered by existing tests Review URL: http://codereview.chromium.org/6090006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71768 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup for r71281: replace usage of "pk11" with "pkcs11" or "crypto ↵mattm@chromium.org2011-01-193-11/+13
| | | | | | | | | | | module", as appropriate. BUG=42073 TEST=manual,trybotss Review URL: http://codereview.chromium.org/6303004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71749 0039d316-1c4b-4281-b951-d872f2087c98
* The SSL server's RSA private key must be imported with thewtc@chromium.org2011-01-192-11/+11
| | | | | | | | | | | | | | | | | | KU_KEY_ENCIPHERMENT key usage to support the RSA key exchange algorithm. Remove the incorrect workarounds for this bug. In the SSLServerSocketTest.DataTransfer unit test, do not proceed to data transfer if the SSL connection cannot be established. Not required for fixing this bug: create an RSA private key with all applicable key usage bits to be future-proof. R=hclam BUG=67928 TEST=net_unittests --gtest_filter=SSLServerSocketTest.* Review URL: http://codereview.chromium.org/6297008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71739 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Increase the throttling threshold (100->460ms) forrvargas@google.com2011-01-181-1/+1
| | | | | | | | | | | | | the current experiment. BUG=54338 TEST=none TBR=gavinp Review URL: http://codereview.chromium.org/6376002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71717 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce the Spdy data frame sizes used. Attempt to make them fit within SSLmbelshe@chromium.org2011-01-151-13/+45
| | | | | | | | | | | Records, which should fit into MSS. BUG=none TEST=none Review URL: http://codereview.chromium.org/5966003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71545 0039d316-1c4b-4281-b951-d872f2087c98
* Suppress a ThreadAssertion warning when joining worker thread for PAC scripts.eroman@chromium.org2011-01-151-2/+8
| | | | | | | BUG=69710 Review URL: http://codereview.chromium.org/6295005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71540 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequestContext URLRequestContext;tfarina@chromium.org2011-01-1516-56/+53
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/6338002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71522 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 71485 - Remove wstring from TemplateURL and friends.avi@chromium.org2011-01-143-14/+14
| | | | | | | | | | | | BUG=23581 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6322001 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/6291003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71500 0039d316-1c4b-4281-b951-d872f2087c98
* Remove wstring from TemplateURL and friends.avi@chromium.org2011-01-143-14/+14
| | | | | | | | | BUG=23581 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6322001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71485 0039d316-1c4b-4281-b951-d872f2087c98
* Set TCP keep alive on Linux and Mac.willchan@chromium.org2011-01-141-0/+24
| | | | | | | | | | | On Linux, also set the timeouts. BUG=27400 TEST=Start wireshark and capture packets. Start chrome. Open www.facebook.com. Let it sit idle for awhile. Wait for TCP keep alive packets to be sent out after 45 seconds on Linux. Review URL: http://codereview.chromium.org/6162005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71482 0039d316-1c4b-4281-b951-d872f2087c98
* Fix preconnect crash on synchronous socket error.willchan@chromium.org2011-01-142-2/+13
| | | | | | | | | | | GetAdditionalErrorState() was being called, which stores the error state into the ClientSocketHandle. When we preconnect, we never have a ClientSocketHandle, so don't bother tryiing to store the error state nor get the error socket. BUG=69214 TEST=net_unittests Review URL: http://codereview.chromium.org/6293005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71481 0039d316-1c4b-4281-b951-d872f2087c98
* net: measure theoretical delay of waiting for DNS cert information.agl@chromium.org2011-01-143-2/+31
| | | | | | | | | | | | | This patch adds a histogram to measure what the delay would have been, had we waited for information from DNS in order to make a certificate verification decision. BUG=none TEST=none http://codereview.chromium.org/6329001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71445 0039d316-1c4b-4281-b951-d872f2087c98
* net: don't assume that we have an SSLHostInfo.agl@chromium.org2011-01-141-3/+3
| | | | | | | | | | | | sync doesn't run an HttpCache and therefore sync's requests don't pickup an SSLHostInfo. BUG=69522 TEST=don't crash on startup http://codereview.chromium.org/6355003/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71444 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes OpenSSL build following http://codereview.chromium.org/5686002/bulach@chromium.org2011-01-141-1/+8
| | | | | | | | | BUG=none TEST=compiles with use_openssl=1 Review URL: http://codereview.chromium.org/6307001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71433 0039d316-1c4b-4281-b951-d872f2087c98
* Clang: enable -Wbool-conversions and -Wunused-variables on Linux.hans@chromium.org2011-01-143-25/+23
| | | | | | | | | | | | | | | -Wbool-conversion warns about EXPECT_EQ(false, blah), so replace that with EXPECT_FALSE(blah). Do the same with EXPECT_EQ(true, blah) for good measure (even though that doesn't generate warnings). Also remove the one instance of an unused variable. BUG=69421 TEST=buildbots all compile and all tests pass Review URL: http://codereview.chromium.org/6300001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71431 0039d316-1c4b-4281-b951-d872f2087c98
* net: add a number of Brocade hosts to the False Start blacklist.agl@chromium.org2011-01-131-0/+12
| | | | | | | | | | These are new hosts, but Brocade should be issuing a fix soon (hopefully). Therefore I'm ok adding them to the blacklist. BUG=69379 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71378 0039d316-1c4b-4281-b951-d872f2087c98
* net: add cybs.rogers.com to the False Start blacklistagl@chromium.org2011-01-131-0/+1
| | | | | | | BUG=69440 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71354 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r71331 - it should never have been committed.agl@chromium.org2011-01-132-28/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71350 0039d316-1c4b-4281-b951-d872f2087c98
* net: enable DnsRRResolver on Windowsagl@chromium.org2011-01-133-11/+124
| | | | | | | | | | | | (Note that this code was developed by try-server so if something appears to be terribly wrong, it probably is.) BUG=none TEST=net_unittests http://codereview.chromium.org/6180001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71349 0039d316-1c4b-4281-b951-d872f2087c98
* ...agl@chromium.org2011-01-132-1/+28
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71331 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unnecessary const from HttpAuthCache to appease the clang gods.cbentzel@chromium.org2011-01-131-1/+1
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6303001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71321 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Use AUTH_SCHEME enum instead of a string.cbentzel@chromium.org2011-01-1320-165/+232
| | | | | | | | | BUG=None TEST=trybots Review URL: http://codereview.chromium.org/6191001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71318 0039d316-1c4b-4281-b951-d872f2087c98
* Fix and re-enable SSL renegotiation when using system SSL on OS X 10.5.x. ↵rsleevi@chromium.org2011-01-132-29/+58
| | | | | | | | | | | System SSL is only used when --use-system-ssl is specified as a command-line flag. BUG=66931 TEST=none Review URL: http://codereview.chromium.org/6080005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71291 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequestStatus URLRequestStatus;tfarina@chromium.org2011-01-135-33/+31
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/6166010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71285 0039d316-1c4b-4281-b951-d872f2087c98