summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Don't cancel outstanding connect jobs when "flushing" socket pool.eroman@chromium.org2010-07-291-1/+0
| | | | | | | BUG=50565 Review URL: http://codereview.chromium.org/3028034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54155 0039d316-1c4b-4281-b951-d872f2087c98
* I've refactored HttpStream, SpdyHttpStream and HttpBasicStream so thatrch@chromium.org2010-07-2913-113/+193
| | | | | | | | | | | | SpdyHttpStream now implements (a slightly wider) HttpStream interface. BUG=50268 TEST=none Review URL: http://codereview.chromium.org/3079002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54154 0039d316-1c4b-4281-b951-d872f2087c98
* Update the TLS False Start patch. Replace TABs by spaceswtc@chromium.org2010-07-293-35/+37
| | | | | | | | | | | | | in ssl.h. Add comments to ssl3con.c to make it clear that we call the handshakeCallback only once. Fix incorrect -h option in new test cases in sslstress.txt. R=agl BUG=none TEST=none Review URL: http://codereview.chromium.org/2808075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54146 0039d316-1c4b-4281-b951-d872f2087c98
* Net: Convert username and password to string16.thestig@chromium.org2010-07-2966-455/+554
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3040016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54101 0039d316-1c4b-4281-b951-d872f2087c98
* Support both preconnection, and pre-resolution for subresourcesjar@chromium.org2010-07-281-0/+9
| | | | | | | | | | | | | | | With this change, both preconnection and preresolution are enabled when the --enable-preconnection flag is turned on. I'm expecting to enable this feature by default soon, so as to better tune the parameters. BUG=42694 r=mbelshe Review URL: http://codereview.chromium.org/3032014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54044 0039d316-1c4b-4281-b951-d872f2087c98
* Update python sync server to support recursive deletion.rsimha@chromium.org2010-07-281-10/+44
| | | | | | | | | | | | | The python sync server does not support recursive deletion, as a result of which test cases that remove a directory of sync entries end up failing. This checkin updates the sync server to support recursive deletion of sync entries and all their childen. BUG=50306 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/3051019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54012 0039d316-1c4b-4281-b951-d872f2087c98
* TBR: rdsmithrdsmith@google.com2010-07-281-0/+0
| | | | | | Fixing execute permissions issue. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53975 0039d316-1c4b-4281-b951-d872f2087c98
* base/ header cleanup. Forward declaration instead of including.erg@google.com2010-07-282-0/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3068004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53969 0039d316-1c4b-4281-b951-d872f2087c98
* Split off the DNS reload timeragl@chromium.org2010-07-284-81/+117
| | | | | | | | | BUG=none TEST=none http://codereview.chromium.org/3053017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53967 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes targeting the unique creation times invariant in the CookieMonster:rdsmith@google.com2010-07-285-171/+405
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Make sure we don't import cookies with identical creation times. * DCHECK that duplicate cookie list insertion succeeds (it silently didn't when there were not unique creation times.) * Confirm that we eliminate all the duplicats we find on cookie import. * Make Methods allowing setting of creation time private. * Create performance test for import (involved refactoring backing store mock.) This change does increase the performance cost on import, and hence adds to startup time. However, the increase for importing 15000 cookies was only 5 ms, so I think that's acceptable to prevent crashes. rdsmith-macbookpro:~/tmp $ perfparse base_perf_import.txt new_perf_import.txt base_perf_import.txt new_perf_import.txt CookieMonsterTest.TestImport Cookie_monster_import_from_store 26.36 +/- 0.88 31.38 +/- 1.1 BUG=43188 TEST=net_unittest --gtest_filter=CookieMonsterTest.* (including two new tests.), Linux & Windows Review URL: http://codereview.chromium.org/3070001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53957 0039d316-1c4b-4281-b951-d872f2087c98
* Fix line ending with white spaces in some files.tfarina@chromium.org2010-07-281-13/+13
| | | | | | | | | | | BUG=50266 TEST=None Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/3046028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53956 0039d316-1c4b-4281-b951-d872f2087c98
* Recommit r53882 "FTP: fix navigation to systems with broken EPSV support."i"jeremy@chromium.org2010-07-281-0/+15
| | | | | | | | Original revert was an attempt to diagnose a build bustage, but this wasn't the cause. Review URL: http://codereview.chromium.org/3012028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53931 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "FTP: fix navigation to systems with broken EPSV support."ijeremy@chromium.org2010-07-281-15/+0
| | | | | | | | | | XP Perf test regression diagnostic - http://build.chromium.org/buildbot/waterfall/builders/XP%20Perf%20(1)/builds/9081 This reverts commit r53882. Review URL: http://codereview.chromium.org/2884043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53925 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: fix navigation to systems with broken EPSV support.phajdan.jr@chromium.org2010-07-281-0/+15
| | | | | | | | | | | | | Added error code check in DoDataConnectComplete, which falls back to PASV if the connection with EPSV has timed out, and stops the transaction in case of any other error. BUG=48285 TEST=navigate to ftp.apc.com, it should succeed and display a directory listing Review URL: http://codereview.chromium.org/3033028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53882 0039d316-1c4b-4281-b951-d872f2087c98
* Add URL filter to trigger punycode for Japanese homographic sequences.jschuh@google.com2010-07-272-2/+47
| | | | | | | | BUG=37201 TEST=net_unittests.exe --gtest_filter=NetUtilTest.IDNToUnicode* Review URL: http://codereview.chromium.org/3011012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53850 0039d316-1c4b-4281-b951-d872f2087c98
* Treat multiple extensions like .tar.gz as a single extension.estade@chromium.org2010-07-271-5/+5
| | | | | | | | | | | The logic is taken from firefox. BUG=48346 TEST=unit tests; downloading the same .tar.gz file multiple times (see bug) Review URL: http://codereview.chromium.org/3018011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53844 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Replace the backend pointer of the ChildrenDeleterrvargas@google.com2010-07-274-5/+68
| | | | | | | | | | | with a weak pointer to avoid crashing at shutdown. BUG=50082 TEST=net_unittests Review URL: http://codereview.chromium.org/3054012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53838 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid printing log errors during shutdown of HostResolverImpl when there are ↵eroman@chromium.org2010-07-271-1/+2
| | | | | | | | | still requests outstanding. BUG=49692 Review URL: http://codereview.chromium.org/3023011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53837 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY sends RST_STREAM upon cancelling request, or bad header parse data.erikchen@google.com2010-07-276-19/+81
| | | | | | | | | | | | Also fix tsan failure for spdy_http_stream_unittest. Attempted to commit in http://codereview.chromium.org/3014030/show, ran into different tsan failure. TEST=net_unittests, tsan on windows for SpdyHttpStreamTest. BUG=46589, 47478, 50198 Review URL: http://codereview.chromium.org/2811072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53829 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: turn off flow-control by defaultagayev@chromium.org2010-07-271-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3035032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53825 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for Proxy server authentication without credentials available.ahendrickson@google.com2010-07-271-5/+5
| | | | | | | | | | | | | | | | This covers the cases using GSSAPI for Negotiate to authenticate to a proxy, where: - The user does not have a TGT (Ticket Generating Ticket), or - The user is unable to get to the TGS (Ticket Granting Server). The bug was that the authentication system tried to reuse the Negotiate handler even though it was not possible for it to succeed, leading to infinite retries. BUG=33033 Test=None Review URL: http://codereview.chromium.org/3040015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53819 0039d316-1c4b-4281-b951-d872f2087c98
* Allow testserver to run without chromiumsync.pathorn@chromium.org2010-07-271-5/+7
| | | | | | | | | BUG=43624 TEST=Able to run 'PYTHONPATH=third_party/tlslite:third_party/pyftpdlib python net/tools/testserver/testserver.py --data-dir=chrome/test/data/' Review URL: http://codereview.chromium.org/3014036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53812 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: minor cleanups to the unit tests:phajdan.jr@chromium.org2010-07-271-6/+33
| | | | | | | | | | | | | | - remove obsolete workaround for us opening two data connections, we no longer do this - add comments explaining the 599 FTP error code BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/3057012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53806 0039d316-1c4b-4281-b951-d872f2087c98
* Add CHECKs to help track down the crash in http://crbug.com/49862.wtc@chromium.org2010-07-272-1/+6
| | | | | | | | | R=vandebo BUG=49862 TEST=none Review URL: http://codereview.chromium.org/3072003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53794 0039d316-1c4b-4281-b951-d872f2087c98
* Remove --testing-fixed-http-port and --testing-fixed-https-port.cbentzel@chromium.org2010-07-274-46/+0
| | | | | | | | | | | --host-rules seems like a reasonable enough substitute for these two command line flags, and removing them will simplifies the fairly complicated URL rewrite logic in HttpNetworkTransaction. BUG=None TEST=built and ran net_unittests Review URL: http://codereview.chromium.org/3041019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53790 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DeleteStream() being called twice per stream and CloseStream() reporting ↵agayev@chromium.org2010-07-271-7/+1
| | | | | | | | | | | a wrong stream number. BUG=49683 TEST=None Review URL: http://codereview.chromium.org/3035015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53784 0039d316-1c4b-4281-b951-d872f2087c98
* net: include the root label in DNSDomainFromDotagl@chromium.org2010-07-275-22/+34
| | | | | | | | | | | | | | I was previously sloppy with DNSDomainFromDot. Really it should have included a terminating NUL in the result string to represent the root label, but it actually omitted it because it was more convenient to test that way. This CL fixes that. BUG=none TEST=net_unittests http://codereview.chromium.org/3070002/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53782 0039d316-1c4b-4281-b951-d872f2087c98
* Follow-up to r53769 - forgot to add a new file to the CLtimurrrr@chromium.org2010-07-271-0/+3
| | | | | | | TBR=glider Review URL: http://codereview.chromium.org/3064010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53771 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run DiskCacheEntryTests.*HugeSparse* under ThreadSanitizertimurrrr@chromium.org2010-07-271-1/+0
| | | | | | | | BUG=50346 TBR=glider Review URL: http://codereview.chromium.org/2847077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53769 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug with parsing ftp directory listing lines.michaeln@chromium.org2010-07-272-3/+21
| | | | | | | | | BUG=49997 TEST=ftp_directory_listing_parser_windows_unittest.cc Review URL: http://codereview.chromium.org/3013029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53747 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-26302-0/+302
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* TBR:erikchen@google.com2010-07-266-70/+18
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53714 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY sends RST_STREAM upon cancelling request, or bad header parse data.erikchen@google.com2010-07-266-18/+70
| | | | | | | | | | Also fix spdy_http_stream_test errors. TEST=net_unittests BUG=46589, 47478, 50198 Review URL: http://codereview.chromium.org/3014030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53693 0039d316-1c4b-4281-b951-d872f2087c98
* Fix line ending on load_flags_list.hnsylvain@google.com2010-07-261-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53674 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some dead SPDY code.agl@chromium.org2010-07-261-14/+1
| | | | | | | | | (The string doesn't match the current NPN string for SPDY, so this wasn't triggering.) http://codereview.chromium.org/3060014/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53673 0039d316-1c4b-4281-b951-d872f2087c98
* STS: enable preloaded for www.noisebridge.netagl@chromium.org2010-07-262-0/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53645 0039d316-1c4b-4281-b951-d872f2087c98
* STS: enable preloaded for sunshinepress.orgagl@chromium.org2010-07-262-0/+7
| | | | | | (Patch from Jacob Appelbaum) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53644 0039d316-1c4b-4281-b951-d872f2087c98
* Fix style nits.wtc@chromium.org2010-07-261-5/+6
| | | | | | | | | R=rsleevi BUG=49887 TEST=net_unittests still passes on the Mac. Review URL: http://codereview.chromium.org/3020028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53633 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: implement basic handshake for remote debugging.pfeldman@chromium.org2010-07-263-27/+59
| | | | | | Review URL: http://codereview.chromium.org/2870062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53624 0039d316-1c4b-4281-b951-d872f2087c98
* Don'r run SpdyHttpStreamTest.SendRequest under TSan on Wintimurrrr@chromium.org2010-07-261-0/+3
| | | | | | | | | BUG=50198 TBR=glider,lzheng TEST=TSan/Win should become green Review URL: http://codereview.chromium.org/3061016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53612 0039d316-1c4b-4281-b951-d872f2087c98
* Use SpecForRequest to get rid of anchor in url for spdy.lzheng@chromium.org2010-07-262-21/+68
| | | | | | | | | TEST=spdy_http_stream_unittest.cc BUG=50058 Review URL: http://codereview.chromium.org/3061011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53610 0039d316-1c4b-4281-b951-d872f2087c98
* Put minimal appcache info in the netlog.michaeln@chromium.org2010-07-231-0/+14
| | | | | | | | | BUG=49854 TEST=manual Review URL: http://codereview.chromium.org/2847068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53551 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY now always uses http_network_transaction instead of ↵erikchen@google.com2010-07-2312-187/+281
| | | | | | | | | | | | | | | | spdy_network_transaction. It was previously possible to use spdy_network_transaction using the command line flags: --use-spdy=no-ssl --use-spdy=no-compress This does not affect instances of chrome that are not run with --use-spdy. Also changed spdy_network_transaction_unittest so that all tests are run with 3 different connection configurations: spdy over npn, spdy over ssl, and spdy without ssl. TEST=net_unittests BUG=49082 Review URL: http://codereview.chromium.org/3048003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53548 0039d316-1c4b-4281-b951-d872f2087c98
* Obtain the cipher suite from the Mac Secure Transport andwtc@chromium.org2010-07-232-1/+22
| | | | | | | | | | | | | | Windows SChannel. R=agl BUG=49699 TEST=Run Chrome with the --use-system-ssl command-line option on Mac and Windows. Visit an HTTPS site. Click the lock icon on the left of the location bar. The Security Information dialog should display the SSL cipher suite info. Review URL: http://codereview.chromium.org/3042015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53511 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: test server cleanup:phajdan.jr@chromium.org2010-07-2310-297/+124
| | | | | | | | | | | | | - simplify the public interface - remove unneeded methods - make it easier to understand TEST=none BUG=49680 Review URL: http://codereview.chromium.org/2881028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53509 0039d316-1c4b-4281-b951-d872f2087c98
* Add sunshinepress.org to the list of renegotiation extension required hosts.agl@chromium.org2010-07-231-1/+4
| | | | | | | | (Requested by a representative of Wikileaks.) http://codereview.chromium.org/3054010/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53508 0039d316-1c4b-4281-b951-d872f2087c98
* [Linux] Enable connecting to localhost when offline.vandebo@chromium.org2010-07-237-5/+78
| | | | | | | | | | | | | Add a utility function to determine if only loopback address are configured. Add a mechanism to add supplemental HostResolverFlags in the HostResolver. Change the resolver on Linux to not use AI_ADDRCONFIG if only loopback addresses are configured. BUG=41408 TEST=localhost works when offline Review URL: http://codereview.chromium.org/3036011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53487 0039d316-1c4b-4281-b951-d872f2087c98
* Fix FLAKY X509CertificateParseTest.CanParseFormat on OS X 10.5 when decoding ↵rsleevi@chromium.org2010-07-232-31/+37
| | | | | | | | | | | | | | PEM-encoded PKCS#7 certificates that are marked with PEM pre-encapsulation boundary of BEGIN CERTIFICATE. OS X ignores the caller-supplied format if it determines that the incoming data is PEM encoded, attempting to parse using an internal routine that determines the incoming format based on the PEM block header. On 10.5, this results in invalid certificate handles being returned, because the data is not actually a certificate, and this propagates into invalid X509Certificates. By sanity checking the returned handles using the same method as CreateOSCertHandleFromBytes, the problem can be caught and the data can be decoded by PEMTokenizer into a format that 10.5 will respect. R=wtc BUG=49887 TEST=X509CertificateParseTest.CanParseFormat no longer fails on OS X 10.5 for variations /5 and /11 Review URL: http://codereview.chromium.org/3019019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53467 0039d316-1c4b-4281-b951-d872f2087c98
* Change the ProxyConfigService interface to be asynchronous, and support ↵eroman@chromium.org2010-07-2316-302/+529
| | | | | | | | | | | | observers. The Windows implementation is still using a polling mechanism under the hood, however that polling has been moved to the worker pool so it won't block the IO thread in case WinHttpGetIEProxyConfigForCurrentUser is slow (crbug.com/12189). BUG=12189 Review URL: http://codereview.chromium.org/3056011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53442 0039d316-1c4b-4281-b951-d872f2087c98
* base: Add IsHexDigit function to string_util.htfarina@chromium.org2010-07-233-22/+5
| | | | | | | | | | | | | | | Removed duplicated IsHex functions and converted the callers along the way. (Note: this was a TODO for jungshik). BUG=None TEST=trybots Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/2870058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53428 0039d316-1c4b-4281-b951-d872f2087c98