summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Refactor WebSocket throttling feature.ukai@chromium.org2010-03-1711-417/+305
| | | | | | | | | Protocol specific handling should be done in SocketStreamJob subclasss, so websocket throttling should be handled in WebSocketJob. Review URL: http://codereview.chromium.org/669157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41818 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor WebSocketHandshake out of WebSocket.ukai@chromium.org2010-03-177-356/+546
| | | | | | | | | | | | Make similar code structure with WebKit. Add unittest for WebSocketHandshake. BUG=none TEST=none Review URL: http://codereview.chromium.org/783005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41810 0039d316-1c4b-4281-b951-d872f2087c98
* Move LoadTemporaryCert to the new files cert_test_util.{h,cc} andwtc@chromium.org2010-03-175-105/+135
| | | | | | | | | | | | rename it LoadTemporaryRootCert, so that it can be used by x509_certificate_unittest.cc. R=eroman BUG=none TEST=No compilation and test failures. Review URL: http://codereview.chromium.org/997006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41794 0039d316-1c4b-4281-b951-d872f2087c98
* Correct readability items from previous checkinjar@chromium.org2010-03-172-8/+9
| | | | | | | | | See http://src.chromium.org/viewvc/chrome?view=rev&revision=41743 r=wtc Review URL: http://codereview.chromium.org/1057001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41792 0039d316-1c4b-4281-b951-d872f2087c98
* Move over another legacy "LoadLog-style" event generator to routing its ↵eroman@chromium.org2010-03-163-51/+60
| | | | | | | | | | messages through the NetLog. BUG=37421 Review URL: http://codereview.chromium.org/1052002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41768 0039d316-1c4b-4281-b951-d872f2087c98
* Refine IPv6 probe to require that the client has an IPv6 address on an interfacejar@chromium.org2010-03-163-21/+205
| | | | | | | | | | | | | | | | | | | | This currently only works on Posix, not windows. Network changes are monitored, and the test is repeated each time interfaces change (which is a subset of any IP addresses changing). The test performed is performed on a worker thread, so latency should not be an issue (even if we created much slower tests). The current test appears to takes in the raneg of 50-100ms, and probably (under the covers) does some reading from files). BUG=25680 BUG=12754 r=wtc,eroman Review URL: http://codereview.chromium.org/1006001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41743 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Ignoring optional client-cert requests from serversnej@chromium.org2010-03-161-24/+76
| | | | | | | | | BUG=37765 TEST=none Review URL: http://codereview.chromium.org/746002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41742 0039d316-1c4b-4281-b951-d872f2087c98
* ssl_SecureSend should not do handshake when the handshake wait state iswtc@chromium.org2010-03-163-62/+104
| | | | | | | | | | | wait_finished and we are false starting. R=agl BUG=38103 TEST=SSLClientSocketTest.Read_FullDuplex should not hang on Ubuntu Karmic. Review URL: http://codereview.chromium.org/850008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41731 0039d316-1c4b-4281-b951-d872f2087c98
* Rename url_request_new_ftp_job -> url_request_ftp_jobphajdan.jr@chromium.org2010-03-164-41/+41
| | | | | | | | TEST=net_unittests BUG=none Review URL: http://codereview.chromium.org/960001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41713 0039d316-1c4b-4281-b951-d872f2087c98
* Try to fix some regressions after landing 41689.eroman@chromium.org2010-03-161-11/+4
| | | | | | | | | | The changes to passive_log_collector.cc are a speculative fix for crash seen in dom_perf. TBR=willchan Review URL: http://codereview.chromium.org/969004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41695 0039d316-1c4b-4281-b951-d872f2087c98
* Generalize the net module's LoadLog facility from a passive container, to an ↵eroman@chromium.org2010-03-16105-2208/+1682
| | | | | | | | | | | | | | | | event stream (NetLog). This makes it possible to associate a single NetLog with a URLRequestContext, and then attach observers to that log to watch the stream of events. This changelist attempts to do the most direct translation, so there will be subsequent iterations to clean up. The user-visible behavior should remain unchanged. BUG=37421 Review URL: http://codereview.chromium.org/848006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41689 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the mime sniffer's limit for searching for binary looking bytes fromabarth@chromium.org2010-03-163-65/+142
| | | | | | | | | | | | 512 to 1024 bytes. Contributed by tonyg@chromium.org BUG=15314 TEST=net_unittests --gtest_filter=MimeSnifferTest.LooksBinary git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41687 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Make sure that we don't oveload the IO messagervargas@google.com2010-03-152-3/+9
| | | | | | | | | | | | loop when there are (active) doomed entries that we want to remove from the "deleted" list. BUG=32119 TEST=unittests Review URL: http://codereview.chromium.org/969002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41657 0039d316-1c4b-4281-b951-d872f2087c98
* When connect takes too long for a new socket group, issue a singlembelshe@chromium.org2010-03-146-19/+283
| | | | | | | | | | | | backup socket request to retry the connect. This reduces latency in the presence of packet loss. BUG=36629 TEST=TCPClientSocketPoolTest.BackupSocket* Review URL: http://codereview.chromium.org/842004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41543 0039d316-1c4b-4281-b951-d872f2087c98
* Remove locks from StrictTransportSecurityState.abarth@chromium.org2010-03-142-14/+0
| | | | | | | | | | | | These locks can cause the IO thread to block on the FILE thread writing to disk, which is bad news bears. BUG=21518 TEST=No behavior change. Review URL: http://codereview.chromium.org/904005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41538 0039d316-1c4b-4281-b951-d872f2087c98
* We need to sniff from file:// URLs so that we don't do silly things like try toabarth@chromium.org2010-03-131-1/+2
| | | | | | | | | | download README files. BUG=18342 Review URL: http://codereview.chromium.org/916003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41530 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r41459:willchan@chromium.org2010-03-121-1/+3
| | | | | | | | | "Change Mac to DCHECK if NetworkChangeNotifier observer list is not empty by destruction time." Apparently NetworkChangeNotifierMac's observers are still getting leaked in ExtensionApiTest.ShowPageActionPopup. Review URL: http://codereview.chromium.org/871007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41464 0039d316-1c4b-4281-b951-d872f2087c98
* Change Mac to DCHECK if NetworkChangeNotifier observer list is not empty by ↵willchan@chromium.org2010-03-121-3/+1
| | | | | | | | destruction time. Review URL: http://codereview.chromium.org/870003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41459 0039d316-1c4b-4281-b951-d872f2087c98
* When using NSS for SSL on Windows, fall back on SSLClientSocketWinwtc@chromium.org2010-03-124-14/+102
| | | | | | | | | | | | | if the server requests a client certificate. This is an interim solution until we modify SSLClientSocketNSS to use CryptoAPI to do SSL client authentication. R=mbelshe BUG=37560 TEST=SSL client authentication should continue to work on Windows. Review URL: http://codereview.chromium.org/795006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41444 0039d316-1c4b-4281-b951-d872f2087c98
* NSS and NPN: send NextProtocol on resume and disable NPN without SPDY.agl@chromium.org2010-03-123-19/+41
| | | | | | | | | | | | | | | | | | | NPN on resume was broken symmetrically between OpenSSL and NSS (which is probably why we didn't notice for so long). OpenSSL wasn't expecting the message and NSS wasn't sending it. This change sends the NextProtocol message when resuming and disables NPN when not using SPDY. The reason for the latter is that we have GFEs deployed which don't expect NextProtocol when resuming and we have to wait some time before they get replaced. Because of this, we can't have NPN enabled by default. Instead, we'll use --host-resolver-rules to redirect everything to known-good GFEs in the mean time. http://codereview.chromium.org/841003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41433 0039d316-1c4b-4281-b951-d872f2087c98
* Do not call OnGetCookiesBlocked or OnSetCookieBlocked when cookies aredarin@chromium.org2010-03-122-9/+12
| | | | | | | | | | | | | restricted by load flags. Only issue those callbacks in response to the CookiePolicy's CanGetCookies / CanSetCookie methods. R=eroman BUG=37922 TEST=covered by url_request_unittest.cc Review URL: http://codereview.chromium.org/893004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41393 0039d316-1c4b-4281-b951-d872f2087c98
* win: string_util.h -> utf_string_conversions.h fix.jhawkins@google.com2010-03-115-2/+5
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/830002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41292 0039d316-1c4b-4281-b951-d872f2087c98
* Remove LOG(WARNING)s for when fails to parse proxy bypass rules.eroman@chromium.org2010-03-111-5/+3
| | | | | | | | | | This can pollute the log since it gets hit often (each time poll for checks). BUG=none Review URL: http://codereview.chromium.org/781001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41243 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Basic peer GoAway frame support.willchan@chromium.org2010-03-103-30/+130
| | | | | | | | | This only handles peer GoAway frames. Does not implement support for client GoAway frames. TODO: Cancel any streams that are past the GoAway frame's last_accepted_stream_id. Review URL: http://codereview.chromium.org/820002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41189 0039d316-1c4b-4281-b951-d872f2087c98
* Add paypal.com to the preloaded STS list.agl@chromium.org2010-03-103-74/+163
| | | | | | | | | TEST=Navigating to http://paypal.com should always be rewritten to https BUG=none http://codereview.chromium.org/815003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41180 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Alternate-Protocol changes.willchan@chromium.org2010-03-106-41/+122
| | | | | | | | | Add npn-spdy fallback support. Update protocol from spdy=>npn-spdy. Don't process Alternate-Protocol unless it we enabled NPN. Review URL: http://codereview.chromium.org/763001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41169 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Add basic support for Alternate-Protocol header.willchan@chromium.org2010-03-0911-18/+546
| | | | | | Review URL: http://codereview.chromium.org/668197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41032 0039d316-1c4b-4281-b951-d872f2087c98
* svn prop fixes. Applied to all files not in third_party.pkasting@chromium.org2010-03-092-49/+49
| | | | | | | | | | | | * Removed eol-style, executable and mergeinfo from BMP/GIF/ICO/JPEG files, and set correct mime-type. * Removed executable and mergeinfo from .c/.cc/.cpp/.h/.m/.mm and .gyp files, and set eol-style to LF. TBR=evanm BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40991 0039d316-1c4b-4281-b951-d872f2087c98
* Http cache: Reorder the files after the previous mess-up.rvargas@google.com2010-03-083-629/+630
| | | | | | | | | | | | No real code change. BUG=none TEST=none Review URL: http://codereview.chromium.org/669142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40967 0039d316-1c4b-4281-b951-d872f2087c98
* Use 0 for successful end of stream.vandebo@chromium.org2010-03-084-19/+13
| | | | | | | | | BUG=25032 TEST=none Review URL: http://codereview.chromium.org/669122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40938 0039d316-1c4b-4281-b951-d872f2087c98
* net: string_utils.h -> utf_string_conversions.h fix.jhawkins@chromium.org2010-03-0822-3/+25
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/668267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40935 0039d316-1c4b-4281-b951-d872f2087c98
* Add checks to track down bug 31096vandebo@chromium.org2010-03-082-0/+5
| | | | | | | | | BUG=31096 TEST=none Review URL: http://codereview.chromium.org/669226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40934 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly handle trailing dots in hostname blacklist. jschuh@google.com2010-03-082-0/+11
| | | | | | | | | | | Submitted for inferno@chromium.org BUG=35510 TEST=HostContentSettingsMapTest.HostTrimEndingDotCheck Review URL: http://codereview.chromium.org/669284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40921 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the problems with some FTP transactions taking a long time.phajdan.jr@chromium.org2010-03-062-74/+27
| | | | | | | | | | | | | | | | | | | | The root cause was not firing the completion callback at the first point the data could be read. This lead to a temporary deaadlock-like situation, where the browser was waiting for the server to send a response on the control connection, and the server was waiting for the browser to start reading from the data connection. This patch makes the completion callback fire as soon as data is ready. It also removes a broken test. We should get a coverage for that scenario from other tests. TEST=Covered by net_unittests. BUG=36116 Review URL: http://codereview.chromium.org/668162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40833 0039d316-1c4b-4281-b951-d872f2087c98
* Pulls the latest googleurl to get the fix forbrettw@chromium.org2010-03-062-10/+12
| | | | | | | | | | | | | | | | BUG=http://crbug.com/160 and integrates the update to IsStandard in that version. Adds several internal schemes as "standard" and initializes them at startup. Fixes a few hardcoded URL schemes I noticed. Make typing "//foo" into the URL bar treat slashes in "strict" mode on Windows, which means we'll only accept UNC if you use backslashes. This matches IE's behavior. BUG=http://crbug.com/33038 TEST=covered by unit tests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40818 0039d316-1c4b-4281-b951-d872f2087c98
* Thread-safety for X509Certificate's intermediate-certs list.snej@chromium.org2010-03-0510-89/+239
| | | | | | | | | BUG=32553,30001 TEST=none Review URL: http://codereview.chromium.org/661223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40797 0039d316-1c4b-4281-b951-d872f2087c98
* Always call SSLSetPeerDomainName. The SSLSetPeerDomainName call waswtc@chromium.org2010-03-051-8/+7
| | | | | | | | | | | put inside an if statement by mistake. R=snej BUG=30684 TEST=none Review URL: http://codereview.chromium.org/669207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40794 0039d316-1c4b-4281-b951-d872f2087c98
* SSLClientSocketNSS::ClientAuthHandler should return SECWouldBlockwtc@chromium.org2010-03-051-2/+4
| | | | | | | | | | | | | | instead of SECFailure when we want to abort the handshake, because SECWouldBlock causes NSS to suspend the client authentication, whereas SECFailure causes NSS to continue the handshake with an empty certificate (in TLS) or no_certificate alert (in SSL 3.0). R=agl BUG=16830 TEST=SSL client authentication on Linux should still work. Review URL: http://codereview.chromium.org/669198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40785 0039d316-1c4b-4281-b951-d872f2087c98
* Add command line option for changing the max number of SPDY sessions permbelshe@chromium.org2010-03-052-2/+12
| | | | | | | | | | | | | | | domain. The default remains at 1. Command line usage to set it to 13: chrome.exe --use-spdy --max-spdy-sessions-per-domain=13 BUG=none TEST=none Review URL: http://codereview.chromium.org/669169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40775 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Work around SSL renegotiation problems with client certs.snej@chromium.org2010-03-052-11/+15
| | | | | | | | | | I've gotten several sites (startcom and foaf.me) to work by aborting the connection on renegotiation, telling the caller to ask for a client cert, and then when a client cert is provided not enabling break-on-auth. BUG=36207 TEST=none Review URL: http://codereview.chromium.org/669110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40762 0039d316-1c4b-4281-b951-d872f2087c98
* Revert my last commit 'cause it breaks net unit tests on OS X 10.6 :(snej@chromium.org2010-03-0510-235/+88
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40743 0039d316-1c4b-4281-b951-d872f2087c98
* Thread-safety for X509Certificate's intermediate-certs list.snej@chromium.org2010-03-0510-88/+235
| | | | | | | | | BUG=32553,30001 TEST=none Review URL: http://codereview.chromium.org/661223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40742 0039d316-1c4b-4281-b951-d872f2087c98
* Add a UI test to make sure that each frame of a multiparttony@chromium.org2010-03-051-0/+23
| | | | | | | | | | | request does not generate a separate row in the history database. BUG=34350 Review URL: http://codereview.chromium.org/668051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40709 0039d316-1c4b-4281-b951-d872f2087c98
* More late binding cleanupvandebo@chromium.org2010-03-051-36/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/668106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40692 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a regression introduced in r40465.wtc@chromium.org2010-03-051-11/+18
| | | | | | | | | | | | | | | | | In DoSSLConnectComplete, we still need to set using_spdy_ if we get a certificate error. In HandleCertificateError, we need to ignore the error after adding the certificate to the allowed_bad_certs list. R=mbelshe BUG=37367 TEST=Connect to a SPDY server with a bad certificate. Clicking "Proceed anyway" in the SSL blocking page should not result in a download. Review URL: http://codereview.chromium.org/668111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40687 0039d316-1c4b-4281-b951-d872f2087c98
* Update spdy_protocol to support the GOAWAY message.mbelshe@chromium.org2010-03-046-68/+235
| | | | | | | | | | | | Update SpdyControlFrame to remove the stream_id. Update associated tests. BUG=none TEST=spdy_protocol_test.cc Review URL: http://codereview.chromium.org/668048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40643 0039d316-1c4b-4281-b951-d872f2087c98
* Annotate a harmless data race in TcpPingertimurrrr@chromium.org2010-03-041-1/+5
| | | | | | Review URL: http://codereview.chromium.org/668057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40622 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor: Move the code that handles "chrome://net-internals/*" from the net ↵eroman@chromium.org2010-03-043-826/+0
| | | | | | | | | | | | module to the chrome module. This is in preparation for making a javascript frontend to it, and merging in the functionality from about:network. There is no behavior change here, just moving code around. Review URL: http://codereview.chromium.org/668039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40608 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash when streams are cancelled and we have a BufferedRead taskmbelshe@chromium.org2010-03-042-3/+87
| | | | | | | | | | | outstanding. BUG=none TEST=SpdyNetworkTranscation.BufferedCancelled Review URL: http://codereview.chromium.org/667003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40602 0039d316-1c4b-4281-b951-d872f2087c98
* Remove debug info used to diagnose bug 31723.rvargas@google.com2010-03-032-24/+1
| | | | | | | | | BUG=31723 TEST=none Review URL: http://codereview.chromium.org/660431 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40570 0039d316-1c4b-4281-b951-d872f2087c98