summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Move EnvironmentVariableGetter from base/linux_util.h to base/env_var.h and ↵thestig@chromium.org2010-04-033-36/+31
| | | | | | | | | | rename it EnvVarGetter. Label base::SysInfo::{Get,Has}EnvVar as deprecated. BUG=none TEST=none Review URL: http://codereview.chromium.org/1606007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43559 0039d316-1c4b-4281-b951-d872f2087c98
* Implement protocol definitions for the SPDY SETTINGS frame (previouslymbelshe@chromium.org2010-04-025-22/+200
| | | | | | | | | | | | labeled the HELLO frame). BUG=none TEST=SpdyProtocolTest. Review URL: http://codereview.chromium.org/1569018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43535 0039d316-1c4b-4281-b951-d872f2087c98
* We should delete the underlying persistent public key onlywtc@chromium.org2010-04-023-9/+9
| | | | | | | | | | | | | | when we cannot sign the challenge. This matches what Mozilla does. Fix nits. R=snej BUG=148 TEST=No compilation errors. Review URL: http://codereview.chromium.org/1535016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43524 0039d316-1c4b-4281-b951-d872f2087c98
* Added command-line whitelist data to UrlSecurityManager. These are used by ↵ahendrickson@chromium.org2010-04-029-545/+55
| | | | | | | | | | | | | all platforms; Windows will use IInternetSecurityManager if they are not present. Removed registry code from HttpAuthFilterWhitelist, as we're now using a different method of authentication on Windows. BUG=29596 TEST=None. Review URL: http://codereview.chromium.org/1569010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43493 0039d316-1c4b-4281-b951-d872f2087c98
* With SPDY, when a proxy is set via automatic settings, we had a crash.mbelshe@chromium.org2010-04-021-0/+2
| | | | | | | | | | | | | | | This turned out to be due to the HttpNetworkTransaction leaving the response_ in tact, and accidentally tripping a condition check in the SPDY code. Fix is to properly clear out the response after the tunnel is established. BUG=40159 TEST=none Review URL: http://codereview.chromium.org/1572015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43479 0039d316-1c4b-4281-b951-d872f2087c98
* Change NOTREACHED for a LOG(WARNING) when we can't deletensylvain@chromium.org2010-04-021-4/+8
| | | | | | | | | the cache. This should help the unit tests. BUG:38562 Review URL: http://codereview.chromium.org/1594002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43446 0039d316-1c4b-4281-b951-d872f2087c98
* Implement closing handshake described in draft-hixie-thewebsocketprotocol-76.ukai@chromium.org2010-04-022-4/+126
| | | | | | | | | | | | | | | | exchange closing frame (0xFF 0x00) to close the WebSocket connection cleanly. Land it again with eliminating LOG(ERROR), because it got arm build fail by relocation overflow in relocation 10 at line 167 (LOG(ERROR) line) in net/base/keygen_handler_nss.cc TBR=rohitrao,jar BUG=none TEST=none Review URL: http://codereview.chromium.org/1605007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43442 0039d316-1c4b-4281-b951-d872f2087c98
* Patch the XSS in Net-internal viewcache by html encoding "key"inferno@chromium.org2010-04-011-1/+1
| | | | | | | | BUG=40137 Test=None Review URL: http://codereview.chromium.org/1543009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43398 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a dead line of code.eroman@chromium.org2010-04-011-3/+0
| | | | | | | | | BUG=None Test=None Review URL: http://codereview.chromium.org/1541010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43386 0039d316-1c4b-4281-b951-d872f2087c98
* Notify all active login prompts when one login prompt is submitted. This allows tonyg@chromium.org2010-04-011-0/+11
| | | | | | | | | | | | | | | | | | | identical login prompts to dismiss themselves. This was originally submitted as r42770 but had to be rolled back because I copied from a FLAKY test. Now that r43266 fixed the flakiness, this should be good to go. The code is exactly the same as r42770 with one exception. I added a WaitForNavigation guard to the tab the other tab in the new test cases. This could have also caused flakiness in the initial revision. BUG=8914 TEST=ui_tests --gtest_filter=LoginPromptTest.* Review URL: http://codereview.chromium.org/1528012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43374 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support for the <keygen> element to Windows, matchingwtc@chromium.org2010-04-0112-43/+632
| | | | | | | | | | | | | | | support present on Linux and Mac OS X. Contributed by Ryan Sleevi <ryan.sleevi@gmail.com>. Original review URL: http://codereview.chromium.org/843005 R=wtc BUG=148 TEST=KeygenHandler.SmokeTest Review URL: http://codereview.chromium.org/1591006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43365 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 43331 - Implement closing handshake described in ↵jar@chromium.org2010-04-012-128/+4
| | | | | | | | | | | | | | | | | | drafthixiethewebsocketprotocol76. [Arm build was seemingly broken by this change.] exchange closing frame (0xFF 0x00) to close the WebSocket connection cleanly. BUG=none TEST=none Review URL: http://codereview.chromium.org/1374004 TBR=ukai@chromium.org Review URL: http://codereview.chromium.org/1549010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43351 0039d316-1c4b-4281-b951-d872f2087c98
* Implement closing handshake described in draft-hixie-thewebsocketprotocol-76.ukai@chromium.org2010-04-012-4/+128
| | | | | | | | | | | exchange closing frame (0xFF 0x00) to close the WebSocket connection cleanly. BUG=none TEST=none Review URL: http://codereview.chromium.org/1374004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43331 0039d316-1c4b-4281-b951-d872f2087c98
* Fix leak in WebSocketThrottleTest::Throttleukai@chromium.org2010-04-011-4/+10
| | | | | | | | | | | | chromium r43192 add check of next_state_ to call DoLoop in SocketStream::Close(), so if next_state_ is STATE_NONE, we don't need socket->AddRef() to balance Release() in SocketStream::Finish(). BUG=39979 TEST=valgrind passes WebSocketThrottleTest Review URL: http://codereview.chromium.org/1517010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43328 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash when calling a PAC binding from the global scope.eroman@chromium.org2010-03-313-14/+48
| | | | | | | | | BUG=40026 TEST=ProxyResolverV8Test.BindingCalledDuringInitialization Review URL: http://codereview.chromium.org/1520009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43268 0039d316-1c4b-4281-b951-d872f2087c98
* Removing a clock dependent behavior in testserver which causedtonyg@chromium.org2010-03-311-17/+24
| | | | | | | | | | | | | | | | | | | TestTwoAuths and TestDigestAuth to fail when they take more than 10 seconds to send auth (which happens sometimes under valgrind). Now the unittest can control whether it wants to receive a stale nonce reply by requesting /auth-digest/stale. I plan to add a test for the stale flow in a subsequent patch. Also, this patch cleans up NavigateToURL calls in LoginPromptTest so that they are all in-place ASSERTs. This makes the messages more useful. BUG=36163,25794,38580 TEST=sh tools/valgrind/chrome_tests.sh -t ui --gtest_filter=LoginPromptTest.* Review URL: http://codereview.chromium.org/1508001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43266 0039d316-1c4b-4281-b951-d872f2087c98
* Disable more DiskCacheBackendTest's as the crash on Linux/shlibtimurrrr@chromium.org2010-03-311-2/+4
| | | | | | | | TBR=rvargas,amit BUG=38562 Review URL: http://codereview.chromium.org/1546007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43213 0039d316-1c4b-4281-b951-d872f2087c98
* Removed filter checks in windows implementations of Negotiate and NTLM HTTP ↵cbentzel@chromium.org2010-03-314-369/+0
| | | | | | | | | | | Authentication handler creation. BUG=29596 TEST=None Review URL: http://codereview.chromium.org/1564002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43212 0039d316-1c4b-4281-b951-d872f2087c98
* Move the suppression landed in r43208 to the right file.rsesek@chromium.org2010-03-311-7/+0
| | | | | | | | | | TBR=ukai BUG=39979 TEST=Valgrind Net Unit Review URL: http://codereview.chromium.org/1559009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43210 0039d316-1c4b-4281-b951-d872f2087c98
* Suppress a leak from r43192 in WebSocketThrottleTest.Throttle.rsesek@chromium.org2010-03-311-0/+7
| | | | | | | | | | TBR=ukai BUG=39979 TEST=Valgrind Net Unit Review URL: http://codereview.chromium.org/1601001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43208 0039d316-1c4b-4281-b951-d872f2087c98
* Remove wrong-placed file.timurrrr@chromium.org2010-03-311-0/+3
| | | | | | | Moving the filter to exclude the test to the proper file. Review URL: http://codereview.chromium.org/1416001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43193 0039d316-1c4b-4281-b951-d872f2087c98
* Fix race condition in SocketStream::Close().ukai@chromium.org2010-03-311-0/+6
| | | | | | | | | | | | | it must not run DoLoop if next_state_ is already STATE_NONE. If next_state_ is already STATE_NONE, it means Finish() was already called, so it had called Release() for AddRef() in Connect(). BUG=none TEST=none Review URL: http://codereview.chromium.org/1579003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43192 0039d316-1c4b-4281-b951-d872f2087c98
* Gracefully recover from malformed auth challenge.jochen@chromium.org2010-03-312-5/+84
| | | | | | | | | BUG=39836 TEST=try to log in to an allnet webcam Review URL: http://codereview.chromium.org/1567008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43182 0039d316-1c4b-4281-b951-d872f2087c98
* Remove packet split experiment, and add coalescing histogramjar@chromium.org2010-03-311-22/+28
| | | | | | | | | | | | | | | | The effort to split the packet proved to not work (presumably showing that the RTO was reasonably set by a SYN packet reception). The test did show that splitting the first packet had a negative consequence, and so the question is: How often can we coalesce 2 packets in a request into 1 packet? The most common cause would be a login, using a POST method to send a body, where the body is small. This change creates a histogram to show percentages of requests that can be coalesced. r=wtc Review URL: http://codereview.chromium.org/1539003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43180 0039d316-1c4b-4281-b951-d872f2087c98
* memio_SetPeerName implicitly assumes that struct sockaddr is the same as ↵pvalchev@google.com2010-03-313-14/+19
| | | | | | | | | PRNetAddr, but this isn't true on *BSD patch from sprewell@jaggeri.com Review URL: http://codereview.chromium.org/1589001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43179 0039d316-1c4b-4281-b951-d872f2087c98
* Preparing Roberto's change for landing:mbelshe@chromium.org2010-03-314-223/+256
| | | | | | | | | | | | http://codereview.chromium.org/1128007/show Integrated changes for the spdy-in-memory-server from the google server side. BUG=none TEST=none Review URL: http://codereview.chromium.org/1526005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43165 0039d316-1c4b-4281-b951-d872f2087c98
* Remove bug 31096 checks (resolved).vandebo@chromium.org2010-03-302-5/+0
| | | | | | | | | TEST=none BUG=31096 Review URL: http://codereview.chromium.org/1562003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43145 0039d316-1c4b-4281-b951-d872f2087c98
* Mac SSL fix: Go back to not enabling break-on-auth when we have a client ↵snej@chromium.org2010-03-301-14/+26
| | | | | | | | | | | cert to send. BUG=38905 TEST=None (don't have a way for me to reproduce this yet) Review URL: http://codereview.chromium.org/1514004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43131 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Improve logging messages for SpdySession.willchan@chromium.org2010-03-301-3/+9
| | | | | | Review URL: http://codereview.chromium.org/1582001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43087 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling the DiskCacheBackendTest.NewEvictionDisableFailure2 as it crashes ↵timurrrr@chromium.org2010-03-301-1/+2
| | | | | | | | | | on Linux/shlib BUG=38562 TBR=amit Review URL: http://codereview.chromium.org/1593001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43077 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling the DiskCacheBackendTest.DisableFailure2 as it crashes at times on ↵timurrrr@chromium.org2010-03-301-1/+2
| | | | | | | | | | Linux TBR=amit BUG=38562 Review URL: http://codereview.chromium.org/1592002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43074 0039d316-1c4b-4281-b951-d872f2087c98
* Fix WebSocketJob to pass /key_3/ after handshake request header.ukai@chromium.org2010-03-302-5/+54
| | | | | | | | | BUG=none TEST=WebSocketJob::SimpleHandshakeDraft76 passes Review URL: http://codereview.chromium.org/1256001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43054 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r42300: "HttpRequestHeaders refactor."willchan@chromium.org2010-03-298-68/+506
| | | | | | | | | Adds a fix and tests for empty header values. The particular bug happened when the value was non-empty, but was all LWS, so it was effectively empty. BUG=22588 Review URL: http://codereview.chromium.org/1370001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43000 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable the ConnectFailure case. Previously, this test casembelshe@chromium.org2010-03-293-6/+14
| | | | | | | | | | | | reported valgrind warnings; the warnings are legit; we were leaking the sessions in this case through two different leaks BUG=29471 TEST=SpdyNetworkTransactionTest.ConnectFailure Review URL: http://codereview.chromium.org/1553005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42995 0039d316-1c4b-4281-b951-d872f2087c98
* Report unreadable files as size zero when uploading.vandebo@chromium.org2010-03-296-62/+269
| | | | | | | | | | | Upload zero bytes if the file size shrinks. BUG=30850 TEST=uploading an unreadable file works Review URL: http://codereview.chromium.org/1250002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42981 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling the DiskCacheBackendTest.DisableSuccess2 as it crashes at times on ↵ananta@chromium.org2010-03-291-1/+2
| | | | | | | | | | | Linux Bug=38562 TBR=amit Review URL: http://codereview.chromium.org/1530007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42978 0039d316-1c4b-4281-b951-d872f2087c98
* On Windows, use IInternetSecurityManager to determine if it's OKwtc@chromium.org2010-03-2916-104/+321
| | | | | | | | | | | | | | | | | | | | | | | to send the default credentials to a server, without prompting the user for permission, for HTTP NTLM or Negotiate authentication. It is always OK to send the default credentials to a proxy without prompting the user. Rename the AllowDefaultCredentials method of HttpAuthHandler to SupportsDefaultCredentials and redefine it to simply return if the authentication scheme supports the use of default credentials, as opposed to whether we may use the default credentials for a particular server or proxy. This CL contains the changes by cbentzel in http://codereview.chromium.org/1082001. R=cbentzel,cpu,stoyan BUG=29596 TEST=none Review URL: http://codereview.chromium.org/1343003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42960 0039d316-1c4b-4281-b951-d872f2087c98
* A basic implementation of information about appcache. Lists manifest files, ↵kkanetkar@chromium.org2010-03-271-1/+2
| | | | | | | | | | | time and size information. BUG=38463 TEST=Run chrome, navigate to about:appcache-internals. Review URL: http://codereview.chromium.org/1109009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42888 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Make client-cert picker only show certs the server will accept.snej@chromium.org2010-03-269-235/+1023
| | | | | | | | | | | BUG=38691 TEST=manual testing with various sites Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42822 Review URL: http://codereview.chromium.org/1128008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42859 0039d316-1c4b-4281-b951-d872f2087c98
* Remove memory leak from the SpdyNetworkTransactionTest:ServerPushahendrickson@google.com2010-03-261-4/+3
| | | | | | | | | | | | | unit test, and its suppression. Another issue's (1321002) CL accidentally checked in a preliminary fix; this cleans it up. BUG=39378 TEST=Valgrind Review URL: http://codereview.chromium.org/1378009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42833 0039d316-1c4b-4281-b951-d872f2087c98
* Revert due to compile failuresamit@chromium.org2010-03-269-1022/+235
| | | | | | | | | | | | | Revert 42822 - Mac: Make clientcert picker only show certs the server will accept. BUG=38691 TEST=manual testing with various sites Review URL: http://codereview.chromium.org/1128008 TBR=snej@chromium.org Review URL: http://codereview.chromium.org/1417003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42830 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Make client-cert picker only show certs the server will accept.snej@chromium.org2010-03-269-235/+1022
| | | | | | | | | BUG=38691 TEST=manual testing with various sites Review URL: http://codereview.chromium.org/1128008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42822 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Turn on the GTK+ integration by default.erg@chromium.org2010-03-261-0/+1
| | | | | | | | | | | | | | This will regress default startup time for users by 50ms. This doesn't matter because this is what the users want--I've lost count of the number bloggers, people on twitter, and people in our IRC channel complaining about the lack of GTK+ integration...when it's just not on by default. BUG=none TEST=none Review URL: http://codereview.chromium.org/1442001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42804 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 42770 - Notify all active login prompts when one login prompt is ↵tonyg@chromium.org2010-03-261-11/+0
| | | | | | | | | | | | | | | submitted. This allows identical login prompts to dismiss themselves. BUG=8914 TEST=ui_tests gtest_filter=LoginPromptTest* Review URL: http://codereview.chromium.org/1039004 TBR=tonyg@chromium.org Review URL: http://codereview.chromium.org/1410002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42776 0039d316-1c4b-4281-b951-d872f2087c98
* Notify all active login prompts when one login prompt is submitted. This allowstonyg@chromium.org2010-03-261-0/+11
| | | | | | | | | | identical login prompts to dismiss themselves. BUG=8914 TEST=ui_tests --gtest_filter=LoginPromptTest* Review URL: http://codereview.chromium.org/1039004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42770 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run some tests under TSan on Windowstimurrrr@chromium.org2010-03-261-0/+12
| | | | | | | TBR=glider Review URL: http://codereview.chromium.org/1343006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42763 0039d316-1c4b-4281-b951-d872f2087c98
* Implement new websocket handshake based on draft-hixie-thewebsocketprotocol-76ukai@chromium.org2010-03-2610-216/+903
| | | | | | | | | BUG=none TEST=net_unittests passes Review URL: http://codereview.chromium.org/1108002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42736 0039d316-1c4b-4281-b951-d872f2087c98
* Update table of blocked ports according to upstream ↵dimich@chromium.org2010-03-261-0/+7
| | | | | | | | | | | http://trac.webkit.org/changeset/56489 BUG=none TEST=block-test.html Review URL: http://codereview.chromium.org/1398002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42723 0039d316-1c4b-4281-b951-d872f2087c98
* Reducing the debug output spam.ahendrickson@google.com2010-03-254-34/+22
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/1321002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42694 0039d316-1c4b-4281-b951-d872f2087c98
* SpdySession now sets the following fields in HttpResponseInfo: ahendrickson@google.com2010-03-2510-133/+1128
| | | | | | | | | | | | | | | | | | | | | | | request_time response_time vary_data There is also a unit test to exercise the new functionality. - Changed CreateSpdyHeadersFromHttpRequest() to use std::string::append() rather than std::string::operator+() to append a single '\0' character to the string, as the former does nothing. - Now using SpdyFramer. - The unit tests now include all server push cases. BUG=34505 TEST=Run netunittests.exe --gtest_filter=SpdyNetworkTransactionTest.* Review URL: http://codereview.chromium.org/634002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42660 0039d316-1c4b-4281-b951-d872f2087c98